Commit graph

666 commits

Author SHA1 Message Date
Claudio Cambra
e5bb65759b Codesign webengineprocess with correct entitlements on macOS with mac crafter
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-09-30 07:28:57 +00:00
Camila Ayres
f965c7cffe Use version of linuxdeploy-plugin-qt from PR in the project.
Fix for #7128.

See https://github.com/linuxdeploy/linuxdeploy-plugin-qt/pull/186.

Signed-off-by: Camila Ayres <hello@camilasan.com>
2024-09-25 17:53:40 +02:00
Claudio Cambra
48c991d2e5
Add note about packaging tooling in mac crafter
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-09-24 10:17:46 +08:00
Claudio Cambra
7de3d54d90
Add package command for mac crafter
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-09-24 10:17:46 +08:00
Claudio Cambra
6a6c53cb8d
Make specific step functions for packaging fileprivate in mac crafter
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-09-24 10:17:46 +08:00
Claudio Cambra
8a50024b54
Move packaging procedures into a single function in mac crafter
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-09-24 10:17:45 +08:00
Claudio Cambra
a73e26a70b
Create convenience function to convert architecture string to craft target string
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-09-24 10:17:45 +08:00
Claudio Cambra
5d21a294ad
Fix work build path used in mac crafter packaging stage
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-09-24 10:17:45 +08:00
Claudio Cambra
57b1e12c16
Remove unused sparkleFile var
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-09-24 10:17:45 +08:00
Claudio Cambra
1e4edd39fc
Use appName for packaging step in mac-crafter
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-09-24 10:17:45 +08:00
Claudio Cambra
1e7328d25e
Add logging to packaging procedures in mac-crafter
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-09-24 10:17:45 +08:00
Claudio Cambra
4ca57e10bc
Add ability to build and sign sparkle tbz from mac-crafter
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-09-24 10:17:45 +08:00
Claudio Cambra
8f2061da95
Add ability to notarise package from mac-crafter
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-09-24 10:17:45 +08:00
Claudio Cambra
1b747fa134
Add ability to sign pkg from mac-crafter
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-09-24 10:17:44 +08:00
Claudio Cambra
4438836ade
Add flag to build pkg in mac-crafter
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-09-24 10:17:43 +08:00
Claudio Cambra
1c8b2ac4b5
Add buildPackage function to mac crafter
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-09-24 10:16:59 +08:00
Claudio Cambra
149e7d8676 Add option to set product path in mac-crafter
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-09-24 10:10:25 +08:00
Claudio Cambra
b6def1176f Correctly kill processes spawned by mac-crafter if mac-crafter quits/is killed/etc
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-09-23 08:37:36 +00:00
Claudio Cambra
7afa393844 Move building into separate subcommand, add subcommand just for codesigning
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-09-12 05:17:36 +00:00
Claudio Cambra
a5c208a453 Always move final product to product path in mac crafter
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-09-12 05:17:36 +00:00
Claudio Cambra
f5ed1f29a7 Fix codesigning of qtwebengine related helper app in mac crafter
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-09-12 05:17:36 +00:00
Claudio Cambra
12ba22f5c6 Use deep codesigning by default in mac crafter
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-09-12 05:17:36 +00:00
Claudio Cambra
0c8ffdb49f Make sure to code-sign all binaries in app bundle
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-09-12 05:17:36 +00:00
Claudio Cambra
be7e3e7c19 Remove get-task-allow entitlement when code-signing app extensions
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-09-12 05:17:36 +00:00
Claudio Cambra
355f5f9237 Fix notarisation issues for Sparkle in mac-crafter
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-09-12 05:17:36 +00:00
Claudio Cambra
e3ffc3d43a Add convenience method to save the entitlements of a bundle to a file as XML
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-09-12 05:17:36 +00:00
Claudio Cambra
ea47502365 Fix issue with placing app bundle in product directory if an existing build is there
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-09-12 05:17:36 +00:00
Claudio Cambra
4cdf0d7446 Fix make_universal.py not taking into account 64-bit bundle dylibs
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-09-09 16:00:43 +02:00
István Váradi
a274651f4d Fix release kind detection
Signed-off-by: István Váradi <ivaradi@varadiistvan.hu>
2024-08-27 20:05:45 +02:00
Claudio Cambra
f8bde40ea9 Add mac-crafter Package.resolved to gitignore
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-08-06 11:05:16 +02:00
Claudio Cambra
a3081f2177 Add default product folder to gitignore
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-08-06 11:05:16 +02:00
Claudio Cambra
d1cb170d9d Only create product path's directory if it doesn't exist already
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-08-06 11:05:16 +02:00
Claudio Cambra
3588c139b8 Fix final path that app is copied to in mac crafter
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-08-06 11:05:16 +02:00
Claudio Cambra
73432d1dac Add option to set product path in mac-crafter
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-07-19 16:57:23 +08:00
Claudio Cambra
b539861fcc Use default long arg type for build path
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-07-19 16:57:23 +08:00
Claudio Cambra
9fa27752f3 Allow setting of osx archs craft option in mac-crafter
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-07-19 16:57:23 +08:00
István Váradi
07f69133e4 Use a single OBS package for all Debian distributions
Signed-off-by: István Váradi <ivaradi@varadiistvan.hu>
2024-07-12 01:02:36 +08:00
István Váradi
5312d9a251 Determine the base version and build kind using the Debian build branch
Signed-off-by: István Váradi <ivaradi@varadiistvan.hu>
2024-07-12 01:02:36 +08:00
István Váradi
70873d19c3 Remove Ubuntu Mantic, add Oracular
Signed-off-by: István Váradi <ivaradi@varadiistvan.hu>
2024-07-11 23:20:11 +08:00
Claudio Cambra
db0c577321 Add offline flag to mac crafter
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-07-08 15:41:45 +08:00
Claudio Cambra
f0166b29ee Replace bool options with flags in mac crafter
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-07-08 15:41:45 +08:00
Claudio Cambra
942cc09e16 Add option to build tests or not in mac crafter
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-07-08 15:41:45 +08:00
Claudio Cambra
9025be29a4 When doing a full rebuild in mac crafter, delete old build folder
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-07-08 15:41:45 +08:00
Claudio Cambra
6a0fbaff1c Simplify dylib signing process and ensure resource libs are signed in mac crafter
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-07-08 15:41:45 +08:00
Claudio Cambra
099648825e Improve build mode flag handling in mac crafter
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-07-08 15:41:45 +08:00
Claudio Cambra
5ad1a60b9e Make mac-related build options configurable in mac crafter
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-07-08 15:41:45 +08:00
Claudio Cambra
6bca337321 Throw on failure of any shell commands to complete successfully in ma crafter
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-07-08 15:41:45 +08:00
Claudio Cambra
a1e3474743 Compile and install instead of full clean rebuild of client in mac crafter
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-07-08 15:41:45 +08:00
Claudio Cambra
d8afa2b36b Allow setting custom git clone command in mac crafter
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-07-08 15:41:45 +08:00
Claudio Cambra
7a74f68eb9 Always configure craft if first download and set to not reconfigure by default in mac crafter
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-07-08 15:41:45 +08:00