Commit graph

695 commits

Author SHA1 Message Date
Claudio Cambra
bd7c78300a
Skip main executable during first binary codesign round
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-11-22 02:30:04 +08:00
Claudio Cambra
cc37aa14bc
Add ability to skip certain files in recursive codesign
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-11-22 02:29:49 +08:00
Claudio Cambra
07d6456d5b
Ensure we sign the app bundle's main executable last
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-11-22 00:36:25 +08:00
Claudio Cambra
d4b9405870
Only define enumeratedItemPath once
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-11-22 00:36:12 +08:00
Claudio Cambra
8d01462c80
Ensure path passed to codesigning is absolute when using mac-crafter codesign
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-11-21 23:09:13 +08:00
Claudio Cambra
119883965a
Do not take current dir pth for filemanager for recursive codesign executable path check
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-11-21 23:08:38 +08:00
Claudio Cambra
a8c0eca6ba
Do not do final bundle codesign
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-11-21 18:47:32 +08:00
Claudio Cambra
e8ac221769
Do not rely on FileManager's isExecutableFile, check manually for Mach-O executable type
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-11-21 18:47:32 +08:00
Claudio Cambra
92f0cd96ef
Allow using an external task for running commands in mac-crafter run command
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-11-21 18:46:59 +08:00
Claudio Cambra
da581e2b0e
Do not treat bundles as executables in codesign check
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-11-21 16:24:52 +08:00
Claudio Cambra
87a5b245fe Do a codesign of the app bundle itself as final step
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-11-21 13:18:20 +08:00
Claudio Cambra
2ea991228e Also sign executables during recursive codesign
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-11-21 13:18:20 +08:00
Claudio Cambra
16c177cf4d Do not do deep codesign as default
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-11-21 13:18:20 +08:00
Claudio Cambra
0239ee3eae Escape code sign entitlement paths in mac crafter
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-11-20 18:16:51 +08:00
Claudio Cambra
4d15f47e09
Fix codesign path for app bundle main binaries
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-11-20 18:03:33 +08:00
Claudio Cambra
f5d91953bf
Use recursive codesign instead of broken wildcard path for sparkle Autoupdate app
Broken when we starting escaping paths in codesign arguments

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-11-20 16:34:09 +08:00
Claudio Cambra
7c171b8e20
Also add options to recursive codesign function
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-11-20 16:33:36 +08:00
Claudio Cambra
f6eb3f9b79
Also escape codesign call with saving entitlements
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-11-20 16:11:32 +08:00
Claudio Cambra
533b04baf9 Ensure paths are passed properly escaped into codesign command in mac-crafter
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-11-20 12:13:25 +08:00
Camila Ayres
a82b0e96cc Update url to dowload linuxdeploy-plugin-qt tool latest version.
Fix https://github.com/linuxdeploy/linuxdeploy-plugin-qt/pull/186 for Qt6 has been released.

Signed-off-by: Camila Ayres <hello@camilasan.com>
2024-11-19 14:07:42 +01:00
Claudio Cambra
62bc088ea1 Add option to create developer builds of client via mac crafter
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-11-15 13:32:30 +08:00
Camila Ayres
817a161211 Update share link for AppImage tool.
Signed-off-by: Camila Ayres <hello@camilasan.com>
2024-10-31 11:23:39 +01:00
Camila Ayres
d24f3e1220
Fix the list of steps order.
Signed-off-by: Camila Ayres <hello@camilasan.com>
2024-10-08 14:35:01 +02:00
Claudio Cambra
aaa6dad3a5 Match the universal build instructions with what we actually do with mac-crafter and make_universal
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-10-08 14:32:37 +02:00
Claudio Cambra
a2f07866f8 Clarify architecture setting has automatic default in mac-crafter readme
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-10-08 14:32:37 +02:00
Claudio Cambra
7b53352969 Simplify build instructions in mac-crafter README
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-10-08 14:32:37 +02:00
Camila Ayres
6acdee0813 Add README about mac-crafter.
Signed-off-by: Camila Ayres <hello@camilasan.com>
2024-10-08 14:32:37 +02:00
Claudio Cambra
89b13285fe Codesign webengineprocess with correct entitlements on macOS with mac crafter
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-09-30 11:54:10 +08:00
Claudio Cambra
0fe925f978 Add support for the new craft blueprint options relating to override server urls
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-09-29 23:16:20 +08:00
Matthieu Gallien
22e5644bf9 remove obsolete not working docker image for windows compilation
that image was supposed to be usable for cross compilation from Linux to
build a Windows release

probably never worked

not working anymore but creating confusion

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2024-09-26 12:01:30 +02:00
Camila Ayres
ffc9cf2ab5 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 16:43:51 +02:00
Claudio Cambra
c405ce34d6 Add note about packaging tooling in mac crafter
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-09-23 16:30:10 +08:00
Claudio Cambra
a77aca3ab2 Add package command for mac crafter
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-09-23 16:30:10 +08:00
Claudio Cambra
facec09fa8 Make specific step functions for packaging fileprivate in mac crafter
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-09-23 16:30:10 +08:00
Claudio Cambra
0b588b8db4 Move packaging procedures into a single function in mac crafter
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-09-23 16:30:10 +08:00
Claudio Cambra
b1ad91d7cb Create convenience function to convert architecture string to craft target string
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-09-23 16:30:10 +08:00
Claudio Cambra
1e61986f17 Fix work build path used in mac crafter packaging stage
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-09-23 16:30:10 +08:00
Claudio Cambra
3b635c263b Remove unused sparkleFile var
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-09-23 16:30:10 +08:00
Claudio Cambra
b5ace6055b Use appName for packaging step in mac-crafter
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-09-23 16:30:10 +08:00
Claudio Cambra
d195186332 Add logging to packaging procedures in mac-crafter
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-09-23 16:30:10 +08:00
Claudio Cambra
d60f02ab0e Add ability to build and sign sparkle tbz from mac-crafter
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-09-23 16:30:10 +08:00
Claudio Cambra
7b76243290 Add ability to notarise package from mac-crafter
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-09-23 16:30:10 +08:00
Claudio Cambra
64e7d662ff Add ability to sign pkg from mac-crafter
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-09-23 16:30:10 +08:00
Claudio Cambra
8577a73b8e Add flag to build pkg in mac-crafter
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-09-23 16:30:10 +08:00
Claudio Cambra
9d8b27e829 Add buildPackage function to mac crafter
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-09-23 16:30:10 +08:00
Claudio Cambra
bc22272573 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 16:28:50 +08:00
Claudio Cambra
7f3b13718a
Move building into separate subcommand, add subcommand just for codesigning
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-09-12 03:54:01 +08:00
Claudio Cambra
8620ff5127
Always move final product to product path in mac crafter
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-09-12 03:53:41 +08:00
Claudio Cambra
dcd640a504
Fix codesigning of qtwebengine related helper app in mac crafter
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-09-11 23:26:51 +08:00
Claudio Cambra
ad428c759f
Use deep codesigning by default in mac crafter
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-09-11 23:26:30 +08:00