Simplify build instructions in mac-crafter README
authorClaudio Cambra <claudio.cambra@nextcloud.com>
Tue, 8 Oct 2024 02:40:30 +0000 (10:40 +0800)
committerCamila Ayres <hello@camilasan.com>
Tue, 8 Oct 2024 12:32:37 +0000 (14:32 +0200)
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
admin/osx/mac-crafter/README.md

index 572d5e51923b904c0a6c4d067a6b1fc58d00ea86..4875b7dde8c636670411d0688a9b4c83432490d0 100644 (file)
@@ -17,23 +17,21 @@ It will create the application bundle with the option to sign it, which is requi
 https://github.com/nextcloud/desktop.git
 ```
 
-2. Create the build folder
+2. Build the desktop client:
 ```
-mkdir <build folder>
-```
-
-3. Build the desktop client:
-```
-swift run --build-path <build folder> --package-path <cloned desktop repo>/admin/osx/mac-crafter mac-crafter <cloned desktop repo>
+cd admin/osx/mac-crafter
+swift run mac-crafter
 ```
 
 3.1 Sign the application bundle by adding the following parameter:
-`-c "Apple Development: <certificate common name>"`
+`-c <Development or developer codesigning certificate name>`
 The whole command will look like this:
 ```
-swift run --build-path <build folder> --package-path <cloned desktop repo>/admin/osx/mac-crafter mac-crafter <cloned desktop repo> -c "Apple Development: <certificate common name>"
+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.
+
 > [!TIP] 
 > Check [Apple's oficial documentation about code signing](https://developer.apple.com/documentation/xcode/using-the-latest-code-signature-format).