mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-25 06:25:56 +03:00
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>
This commit is contained in:
parent
a2f07866f8
commit
aaa6dad3a5
1 changed files with 2 additions and 17 deletions
|
@ -55,23 +55,8 @@ The options are `x86_64` and `arm64`.
|
|||
|
||||
### How to build the app bundle for arm and intel
|
||||
|
||||
To achieve this we are using [KDE Craft](https://community.kde.org/Craft).
|
||||
|
||||
1. After running the steps above, you will be able to use the `CraftMaster.py` script for that:
|
||||
To achieve this we are using a Python script called `make_universal.py` which bundles together the arm64 and Intel builds into one universal app bundle. This script can be found under `admin/osx`. You can invoke it like so:
|
||||
|
||||
```
|
||||
python build/craftmaster/CraftMaster.py --config <cloned desktop repo>/craftmaster.ini --target macos-clang-arm64 -c --add-blueprint-repository https://github.com/nextcloud/desktop-client-blueprints/
|
||||
```
|
||||
|
||||
The `--target` options are define in the [`craftmaster.ini` file](https://github.com/nextcloud/desktop/blob/c771c4166c806d686d9b4f8b11e33d8d95631398/craftmaster.ini).
|
||||
|
||||
2. Install the client dependencies
|
||||
```
|
||||
python build/craftmaster/CraftMaster.py --config <cloned desktop repo>/craftmaster.ini --target macos-clang-arm64 -c --install-deps nextcloud-client
|
||||
```
|
||||
|
||||
3. Build the client
|
||||
|
||||
```
|
||||
python build/craftmaster/CraftMaster.py --config <cloned desktop repo>/craftmaster.ini --target macos-clang-arm64 -c --src-dir <cloned desktop repo> nextcloud-client
|
||||
python admin/osx/make_universal.py <x86 build path> <arm64 build path> <final target path>
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue