Fix the list of steps order.

Signed-off-by: Camila Ayres <hello@camilasan.com>
This commit is contained in:
Camila Ayres 2024-10-08 14:31:50 +02:00
parent 32305e4c15
commit d24f3e1220
No known key found for this signature in database
GPG key ID: 7A4A6121E88E2AD4

View file

@ -23,36 +23,37 @@ cd admin/osx/mac-crafter
swift run mac-crafter
```
3.1 Sign the application bundle by adding the following parameter:
3. Sign the application bundle by adding the following parameter:
`-c <Development or developer codesigning certificate name>`
The whole command will look like this:
```
swift run mac-crafter -c "Apple Development: <certificate common name>"
```
The resulting app bundle will be placed under the `product` folder in the mac-crafter folder.
> [!NOTE]
> The resulting app bundle will be placed under the `product` folder in the mac-crafter folder.
> [!TIP]
> Check [Apple's oficial documentation about code signing](https://developer.apple.com/documentation/xcode/using-the-latest-code-signature-format).
3.2 Build the file provider module with this option:
### Extra options
- Build the file provider module with this option:
```
--build-file-provider-module
```
3.3 Disable the auto-updater:
- Disable the auto-updater:
```
--disable-autoupdater
```
3.4 Manually set the architecture you are building for:
- Manually set the architecture you are building for:
```
--arch arm64
--arch <arm64|x86_64>
```
The options are `x86_64` and `arm64`.
### How to build the app bundle for arm and intel
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: