Skip to content

Commit 524472e

Browse files
committed
tine20drive-6.0.0 configs
1 parent c8b8488 commit 524472e

File tree

77 files changed

+21324
-151
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+21324
-151
lines changed

.craft.ini

Lines changed: 26 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ Packager/UseCache = ${Variables:UseCache}
4444
Packager/CreateCache = ${Variables:CreateCache}
4545
Packager/CacheVersion = ${Variables:ownCloudVersion}/Qt_${Variables:QtVersion}_${Variables:CachePatchLvl}
4646
Packager/PackageDebugSymbols = False
47+
;Packager/PackageType = MacPkgPackager
4748
; Packager/RepositoryUrl = https://files.kde.org/craft/
4849
Packager/RepositoryUrl = https://download.owncloud.com/desktop/craft/cache/
4950
Compile/BuildType = RelWithDebInfo
@@ -52,9 +53,15 @@ ContinuousIntegration/UpdateRepository = True
5253
CodeSigning/Enabled = ${Env:SIGN_PACKAGE}
5354
CodeSigning/Protected = True
5455
CodeSigning/Certificate = ${Env:CRAFT_CODESIGN_CERTIFICATE}
55-
CodeSigning/CommonName =
56-
CodeSigning/MacDeveloperId = ownCloud GmbH (4AP2STM4H5)
57-
CodeSigning/MacKeychainPath = sign-${Env:DRONE_BUILD_NUMBER}.keychain
56+
CodeSigning/CommonName = com.tine20.desktopclient
57+
CodeSigning/MacDeveloperId = Metaways Infosystems GmbH (TC62G4GBN8)
58+
CodeSigning/Country = DE
59+
CodeSigning/Organization = Metaways Infosystems GmbH
60+
CodeSigning/State = Hamburg
61+
CodeSigning/MacCertificateApplication = /Users/ccheng/packaging-tinedrive/DeveloperID.p12
62+
CodeSigning/MacCertificateInstaller = /Users/ccheng/packaging-tinedrive/installerCertificates.p12
63+
64+
# CodeSigning/MacKeychainPath = signing_temp.keychain
5865

5966
[BlueprintSettings]
6067
# skip msys in normal builds its only needed for the cache
@@ -72,24 +79,24 @@ qt-libs/qtkeychain.buildWithQt6 = True
7279
[windows-cl-msvc2022-x86_64]
7380
General/ABI = windows-cl-msvc2022-x86_64
7481

75-
[windows-cl-msvc2022-x86_64-debug]
76-
General/ABI = windows-cl-msvc2022-x86_64
77-
Compile/BuildType = Debug
82+
;[windows-cl-msvc2022-x86_64-debug]
83+
;General/ABI = windows-cl-msvc2022-x86_64
84+
;Compile/BuildType = Debug
7885

7986
[macos-64-clang]
8087
General/ABI = macos-64-clang
81-
# Packager/PackageType = MacPkgPackager
88+
;Packager/PackageType = MacPkgPackager
8289

83-
[macos-64-clang-debug]
84-
General/ABI = macos-64-clang
85-
Compile/BuildType = Debug
90+
;[macos-64-clang-debug]
91+
;General/ABI = macos-64-clang
92+
;Compile/BuildType = Debug
8693

87-
[macos-clang-arm64]
88-
General/ABI = macos-clang-arm64
94+
;[macos-clang-arm64]
95+
;General/ABI = macos-clang-arm64
8996

90-
[macos-clang-arm64-debug]
91-
General/ABI = macos-clang-arm64
92-
Compile/BuildType = Debug
97+
;[macos-clang-arm64-debug]
98+
;General/ABI = macos-clang-arm64
99+
;Compile/BuildType = Debug
93100

94101
[linux-64-gcc]
95102
General/ABI = linux-64-gcc
@@ -99,9 +106,9 @@ libs/dbus.ignored = False
99106
libs/icu.ignored = False
100107
libs/qt6/qtbase.withDBus = True
101108

102-
[linux-64-gcc-debug]
103-
General/ABI = linux-64-gcc
104-
Compile/BuildType = Debug
109+
;[linux-64-gcc-debug]
110+
;General/ABI = linux-64-gcc
111+
;Compile/BuildType = Debug
105112

106113
[linux-64-gcc-debug-BlueprintSettings]
107114
libs/dbus.ignored = False
@@ -120,7 +127,7 @@ libs/qt6/qtbase.withDBus = True
120127

121128
[Env]
122129
CRAFT_CODESIGN_CERTIFICATE =
123-
SIGN_PACKAGE = False
130+
SIGN_PACKAGE = false
124131
# double fallback
125132
DRONE_BUILD_NUMBER = ${Env:APPVEYOR_BUILD_NUMBER}
126133
APPVEYOR_BUILD_NUMBER = 0

.craft.shelf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[General]
22
version = 2
3-
blueprintrepositories = https://invent.kde.org/packaging/craft-blueprints-kde.git|master|;https://github.com/owncloud/craft-blueprints-owncloud.git|6|
3+
blueprintrepositories = https://invent.kde.org/packaging/craft-blueprints-kde.git|master|;https://github.com/tine20/craft-blueprints-tineDrive.git|6.0.0-tineDrive|
44

55
[core/cacert]
66
version = 2023-12-12
@@ -9,9 +9,9 @@ version = 2023-12-12
99
version = master
1010
revision = 4a6f0200
1111

12-
[craft/craft-blueprints-owncloud]
13-
version = 6
14-
revision = ba6feae525ff8f7115b9a094d2b574e2b21221dd
12+
[craft/craft-blueprints-tineDrive]
13+
version = 6.0.0-tineDrive
14+
revision = 0de8b2769bf4642d27bc745a2da710acb3e9e2ba
1515

1616
[craft/craft-core]
1717
version = master

.github/release_template_MW.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
### The packages we provide :
2+
- MacOS version with .pkg format (see the assets below)
3+
- Windows version with .exe format (see the assets below)
4+
5+
## Changelog
6+
7+
### Features
8+
---
9+
10+
11+
12+
### Bug fix
13+
14+
---

.github/workflows/main.yml

Lines changed: 20 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
1-
name: ownCloud CI
1+
name: tineDrive CI
22

3-
on:
4-
push:
5-
branches:
6-
- master
7-
- '[0-9]+'
8-
pull_request:
9-
workflow_dispatch:
3+
on: [push]
104

115
concurrency:
126
group: ${{ github.head_ref || github.run_id }}
@@ -97,8 +91,8 @@ jobs:
9791
- name: Prepare
9892
run: |
9993
New-Item -ItemType Directory "${env:GITHUB_WORKSPACE}/binaries/"
100-
& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --set forceAsserts=true owncloud/owncloud-client
101-
& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --set srcDir="${env:GITHUB_WORKSPACE}" owncloud/owncloud-client
94+
& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --set forceAsserts=true tineDrive/tineDrive-client
95+
& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --set srcDir="${env:GITHUB_WORKSPACE}" tineDrive/tineDrive-client
10296
if ($IsWindows) {
10397
& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c dev-utils/nsis
10498
} elseif($IsLinux) {
@@ -109,11 +103,11 @@ jobs:
109103
run: |
110104
if ("${{ matrix.target }}" -eq "linux-64-gcc" ) {
111105
# build with appimage updater and others
112-
& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --set enableAppImageUpdater=true owncloud-client
113-
& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --set enableCrashReporter=true owncloud/owncloud-client
114-
& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --set enableAutoUpdater=true owncloud/owncloud-client
106+
& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --set enableAppImageUpdater=true tineDrive-client
107+
& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --set enableCrashReporter=true tineDrive/tineDrive-client
108+
& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --set enableAutoUpdater=true tineDrive/tineDrive-client
115109
}
116-
& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --install-deps owncloud/owncloud-client
110+
& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --install-deps tineDrive/tineDrive-client
117111
118112
- name: QML format lint
119113
if: matrix.name == 'linux-gcc-x86_64'
@@ -144,45 +138,45 @@ jobs:
144138
# https://api.kde.org/ecm/module/ECMEnableSanitizers.html
145139
# address;leak;undefined
146140
# clang: error: unsupported option '-fsanitize=leak' for target 'x86_64-apple-darwin21.6.0'
147-
& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --set args="-DECM_ENABLE_SANITIZERS='address;undefined'" owncloud/owncloud-client
141+
& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --set args="-DECM_ENABLE_SANITIZERS='address;undefined'" tineDrive/tineDrive-client
148142
}
149143
if ("${{ matrix.target }}" -eq "linux-64-gcc" ) {
150144
# build with appimage updater and others
151-
& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --set enableAppImageUpdater=true owncloud-client
152-
& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --set enableCrashReporter=true owncloud/owncloud-client
153-
& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --set enableAutoUpdater=true owncloud/owncloud-client
145+
& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --set enableAppImageUpdater=true tineDrive-client
146+
& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --set enableCrashReporter=true tineDrive/tineDrive-client
147+
& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --set enableAutoUpdater=true tineDrive/tineDrive-client
154148
}
155-
& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --no-cache owncloud/owncloud-client
149+
& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --no-cache tineDrive/tineDrive-client
156150
157151
- name: Build for SonarCloud
158152
if: ${{ matrix.useSonarCloud }}
159153
run: |
160-
& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --no-cache --configure owncloud/owncloud-client
161-
$env:BUILD_DIR = $(& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --get buildDir -q owncloud-client)
154+
& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --no-cache --configure tineDrive/tineDrive-client
155+
$env:BUILD_DIR = $(& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --get buildDir -q tineDrive-client)
162156
& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --run pwsh "${env:GITHUB_WORKSPACE}/.github/workflows/.sonar.ps1" --build
163-
& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --no-cache --install --qmerge owncloud/owncloud-client
157+
& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --no-cache --install --qmerge tineDrive/tineDrive-client
164158
& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --run pwsh "${env:GITHUB_WORKSPACE}/.github/workflows/.sonar.ps1" --analyze
165159
166160
- name: Run tests
167161
run: |
168-
& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --no-cache --test owncloud/owncloud-client
162+
& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --no-cache --test tineDrive/tineDrive-client
169163
170164
- name: Clang tidy
171165
if: github.event_name != 'pull_request'
172166
run: |
173167
& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c libs/llvm python-modules/pip
174168
& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --run python3 -m pip install clang-html
175-
$env:BUILD_DIR = $(& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --get buildDir -q owncloud-client)
169+
$env:BUILD_DIR = $(& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --get buildDir -q tineDrive-client)
176170
& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --run pwsh "${env:GITHUB_WORKSPACE}/.github/workflows/.run-clang-tidy.ps1"
177171
& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --run python3 -m clang_html "${env:TMPDIR}/clang-tidy.log" -o "${env:GITHUB_WORKSPACE}/binaries/clang-tidy.html"
178172
179173
- name: Package
180174
run: |
181175
if ("${{ matrix.target }}" -eq "linux-64-gcc" ) {
182176
# package without crash reporter
183-
& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --set enableCrashReporter=false owncloud/owncloud-client
177+
& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --set enableCrashReporter=false tineDrive/tineDrive-client
184178
}
185-
& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --no-cache --package owncloud/owncloud-client
179+
& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --no-cache --package tineDrive/tineDrive-client
186180
187181
- name: Prepare artifacts
188182
run: |

admin/osx/craft_build_local.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
2+
app_name=@APPLICATION_SHORTNAME@
3+
github_repo_dir="/Users/ccheng/$app_name/"
4+
5+
cd
6+
7+
git clone --depth=1 https://invent.kde.org/kde/craftmaster.git CraftMaster/CraftMaster
8+
9+
python3 CraftMaster/CraftMaster/CraftMaster.py --config "./$app_name/.craft.ini" --variables "WORKSPACE=$github_repo_dir"
10+
11+
python3 CraftMaster/macos-64-clang/craft/bin/craft.py --unshelve "$github_repo_dir.craft.shelf"
12+
13+
python3 CraftMaster/macos-64-clang/craft/bin/craft.py --install-deps $app_name
14+
# make sure remove owap before build
15+
python3 CraftMaster/macos-64-clang/craft/bin/craft.py --no-cache --src-dir "$github_repo_dir" $app_name
16+
# need to create complete app first
17+
sudo python3 CraftMaster/macos-64-clang/craft/bin/craft.py --no-cache --src-dir "$github_repo_dir" --package "$app_name"

admin/osx/create_mac.sh

Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
#!/bin/bash
2+
3+
# Script to create the Mac installer using the packages tool from
4+
# http://s.sudre.free.fr/Software/Packages/about.html
5+
#
6+
7+
[ "$#" -lt 2 ] && echo "Usage: create_mac_pkg.sh <CMAKE_INSTALL_DIR> <build dir> <installer sign identity> <APPLE_ID_MAIL> <APPLE_APP_PASSWORD> <ASC_PROVIDER>" && exit
8+
9+
# the path of installation must be given as parameter
10+
if [ -z "$1" ]; then
11+
echo "ERROR: Provide the path to CMAKE_INSTALL_DIR to this script as first parameter."
12+
exit 1
13+
fi
14+
15+
if [ -z "$2" ]; then
16+
echo "ERROR: Provide the path to build directory as second parameter."
17+
exit 1
18+
fi
19+
20+
21+
if [ -z "$4" ]; then
22+
echo "ERROR: Provide the apple developer account , ex: [email protected]"
23+
exit 1
24+
fi
25+
26+
if [ -z "$5" ]; then
27+
echo "ERROR: Provide the app password generated from apple website."
28+
exit 1
29+
fi
30+
31+
if [ -z "$6" ]; then
32+
echo "ERROR: Provide the provider ID with 10 characters, ex: A1B3H5J6K7."
33+
exit 1
34+
fi
35+
36+
install_path="$1"
37+
build_path="$2"
38+
identity="$3"
39+
apple_id="$4"
40+
apple_app_password="$5"
41+
provider="$6"
42+
43+
prjfile=$build_path/admin/osx/macosx.pkgproj
44+
45+
# The name of the installer package
46+
installer="tineDrive-2.7.6"
47+
installer_file="$installer.pkg"
48+
installer_file_tar="$installer.pkg.tar"
49+
installer_file_tar_bz2="$installer.pkg.tar.bz2"
50+
installer_file_tbz="$installer.pkg.tbz"
51+
52+
# set the installer name to the copied prj config file
53+
/usr/local/bin/packagesutil --file $prjfile set project name "$installer"
54+
55+
# The command line tool of the "Packages" tool, see link above.
56+
pkgbuild=/usr/local/bin/packagesbuild
57+
58+
$pkgbuild -F $install_path $prjfile
59+
rc=$?
60+
61+
if [ $rc == 0 ]; then
62+
cp /Users/runner/work/tineDrive/tineDrive/CraftMaster/macos-64-clang/*.pkg $install_path/
63+
echo "Successfully created $installer_file"
64+
else
65+
echo "Failed to create $installer_file"
66+
exit 3
67+
fi
68+
69+
# Sign the finished package if desired.
70+
if [ ! -z "$identity" ]; then
71+
echo "Will try to sign the installer"
72+
pushd $install_path
73+
productsign --sign "$identity" "$installer_file" "$installer_file.new"
74+
mv "$installer_file".new "$installer_file"
75+
popd
76+
else
77+
echo "No certificate given, will not sign the pkg"
78+
fi
79+
80+
# FIXME: OEMs?
81+
# they will need to do their own signing..
82+
83+
cd $install_path
84+
rc=$?
85+
if [ $rc == 0 ]; then
86+
echo "Successfully created $installer_file"
87+
else
88+
echo "Failed to create $installer_file"
89+
exit 3
90+
fi
91+
92+
cd $install_path
93+
94+
xcrun altool --notarize-app --primary-bundle-id "com.tine20.desktopclient" --username "$apple_id" --password "$apple_app_password" --asc-provider "$provider" --file "$installer_file" &> tmp
95+
uuid=`cat tmp | grep -Eo '\\w{8}-(\\w{4}-){3}\\w{12}$'`
96+
while true; do
97+
echo "checking for notarization..."
98+
xcrun altool --notarization-info "$uuid" --username "$apple_id" --password "$apple_app_password" &> tmp
99+
r=`cat tmp`
100+
t=`echo "$r" | grep "success"`
101+
f=`echo "$r" | grep "invalid"`
102+
p=`echo "$r" | grep "in progess"`
103+
if [[ "$t" != "" ]]; then
104+
echo "notarization done!"
105+
xcrun stapler staple "$installer_file"
106+
echo "stapler done!"
107+
spctl -a -v --type install "$installer_file"
108+
break
109+
fi
110+
if [[ "$f" != "" ]]; then
111+
echo "$r"
112+
return 1
113+
fi
114+
if [[ "$p" != "" ]]; then
115+
echo "in progess"
116+
fi
117+
echo "not finish yet, sleep 30sec then check again..."
118+
sleep 30
119+
done
120+
121+
# Sparkle wants a tbz, it cannot install raw pkg
122+
tar cf "$installer_file_tar" "$installer_file"
123+
bzip2 -9 "$installer_file_tar"
124+
mv "$installer_file_tar_bz2" "$installer_file_tbz"

0 commit comments

Comments
 (0)