Commit graph

610 commits

Author SHA1 Message Date
Claudio Cambra
11ebcca277 Add relevant files to mac crafter gitignore
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-07-08 15:41:45 +08:00
Claudio Cambra
503bd966f8 Add option to skip craft configuration in mac crafter
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-07-08 15:41:45 +08:00
Claudio Cambra
b0e167a4d0 Divide client app dir path construction in mac crafter
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-07-08 15:41:45 +08:00
Claudio Cambra
c47435150b Fix unused codesignidentity warning in mac crafter
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-07-08 15:41:45 +08:00
Claudio Cambra
495c85905e Throw if codesign binary not found in mac crafter
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-07-08 15:41:45 +08:00
Claudio Cambra
cec60201fb Fix buildtype argument for craft in mac crafter
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-07-08 15:41:45 +08:00
Claudio Cambra
a9196609b0 Add procedure to codesign app bundle in mac crafter
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-07-08 15:41:45 +08:00
Claudio Cambra
a73877cece Allow explicitly skipping code-signing of dependencies in mac crafter
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-07-08 15:41:45 +08:00
Claudio Cambra
9f88eb0376 Allow setting of build type in mac crafter
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-07-08 15:41:45 +08:00
Claudio Cambra
6c82430553 Remove previous craft client builder
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-07-08 15:41:45 +08:00
Claudio Cambra
fb582c4394 Fix paths in mac crafter
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-07-08 15:41:45 +08:00
Claudio Cambra
902a551e61 Fix mac-crafter abstract
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-07-08 15:41:45 +08:00
Claudio Cambra
11eb2bd714 Adjust arguments for mac crafter
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-07-08 15:41:45 +08:00
Claudio Cambra
0a699d6c3f Fix dependencies for mac-crafter
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-07-08 15:41:45 +08:00
Claudio Cambra
42c68082ab Make URLs adjustable in mac crafter
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-07-08 15:41:45 +08:00
Claudio Cambra
375020fa79 Make build path adjustable in mac crafter
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-07-08 15:41:45 +08:00
Claudio Cambra
4e37ec8b4c Move library check to separate file in mac crafter
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-07-08 15:41:45 +08:00
Claudio Cambra
82c46b7539 Codesign all crafted plugins in mac crafter
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-07-08 15:41:45 +08:00
Claudio Cambra
1dbde98598 Codesign all the crafted libraries with mac crafter
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-07-08 15:41:45 +08:00
Claudio Cambra
1ec7d0bb87 Make codesigning throw in mac crafter
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-07-08 15:41:45 +08:00
Claudio Cambra
41b62e2677 Make installIfMissing throwing in mac crafter
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-07-08 15:41:45 +08:00
Claudio Cambra
fc9c5650e0 Implement basic argumentparser in mac crafter
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-07-08 15:41:45 +08:00
Claudio Cambra
1bc7054fab Move functions of mac crafter into different files
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-07-08 15:41:45 +08:00
Claudio Cambra
01eba19d8d Add copyright header to main.swift
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-07-08 15:41:45 +08:00
Claudio Cambra
7b439967d3 Move build script into dedicated package
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-07-08 15:41:45 +08:00
Claudio Cambra
f45c30d3ff Add codesign function to macos builder
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-07-08 15:41:45 +08:00
Claudio Cambra
d15dd26bda Craft the desktop client in the mac builder script
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-07-08 15:41:45 +08:00
Claudio Cambra
156b082594 Clone craft master to craftdir in mac builder script
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-07-08 15:41:45 +08:00
Claudio Cambra
84cc6f8ada Clone craft in mac builder script
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-07-08 15:41:45 +08:00
Claudio Cambra
1942bcf8d8 Deduplicate installation of required tools in macos builder
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-07-08 15:41:45 +08:00
Claudio Cambra
283c1c3ba0 Set up python if missing in mac builder script
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-07-08 15:41:45 +08:00
Claudio Cambra
dd496bfcc7 Configure xcode command line tools if missing in mac builder
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-07-08 15:41:45 +08:00
Claudio Cambra
eb7929ace6 Install inkscape via mac builder script if not present
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-07-08 15:41:45 +08:00
Claudio Cambra
705cb09d8d Install brew through builder if not present
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-07-08 15:41:45 +08:00
Claudio Cambra
9e198a4546 Add convenience func to check if command exists
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-07-08 15:41:45 +08:00
Claudio Cambra
f961db3e05 Add convenience func to run shell command
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-07-08 15:41:45 +08:00
Claudio Cambra
e6d0f80465 Start working on mac builder script
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-07-08 15:41:45 +08:00
Camila Ayres
d07f131576 Update build-appimage.sh to use $VERSION_SUFFIX
Make sure that we can pass the value of MIRALL_VERSION_SUFFIX via parameter.

Signed-off-by: Camila Ayres <hello@camilasan.com>
2024-06-04 23:00:09 +02:00
Claudio Cambra
9eb8645b95 Do not open client on install as this breaks MDM deployments
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-05-15 14:28:49 +02:00
Matthieu Gallien
64d54a17b6
as far as I can tell icon name is always Nextcloud.png
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2024-04-29 11:13:56 +02:00
Matthieu Gallien
2ba242527c
makes Qt path and openssl path depend on environment variable
provide default value that may work outside our docker build images

will get sensible value when run inside our official docker build images

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2024-04-29 09:52:54 +02:00
Matthieu Gallien
07c2554eb3 AppImage build tool for Qt needs to know our qml files
gives the path to qml files such that needed Qt qml modules are deployed
correctly inside the AppImage package

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2024-04-26 09:05:12 +02:00
Matthieu Gallien
794db304f9 fix compilation of AppImage packages
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2024-04-26 09:05:12 +02:00
Matthieu Gallien
ced6d3274c build appimage
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2024-04-26 09:05:12 +02:00
Matthieu Gallien
b7bba50672 let appimage build script work with Qt6 based version
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2024-04-26 09:05:12 +02:00
Claudio Cambra
fe7c00a7bf Fix macOS-specific CMake things with Qt6
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-04-26 09:05:12 +02:00
Matthieu Gallien
aa76de9b68 allow detection of qt5 or qt6
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2024-04-26 09:05:12 +02:00
Matthieu Gallien
06c2fecbe1 create registry keys needed for edit locally in local machine category
creating the registry keys via installer for the current user is not
enough to have the feature enabled for all user accounts on a given
machine

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2024-04-23 13:48:14 +02:00
Matthieu Gallien
cd924de9d3
improving end-to-end tests
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2024-04-23 12:21:10 +02:00
Matthieu Gallien
dd8a16f9d6
improving end-to-end tests
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2024-04-23 12:21:09 +02:00