2828 api-key-id : ${{ secrets.APPSTORE_KEY_ID }}
2929 api-private-key : ${{ secrets.APPSTORE_API_KEY_P8 }}
3030
31+ - name : Copy provisioning profile to known path
32+ run : |
33+ PROFILE=$(ls "$HOME/Library/MobileDevice/Provisioning Profiles/"*.provisionprofile \
34+ "$HOME/Library/MobileDevice/Provisioning Profiles/"*.mobileprovision \
35+ 2>/dev/null | head -n 1)
36+ cp "$PROFILE" src-tauri/embedded.provisionprofile
37+
3138 - uses : actions/setup-node@v4
3239 with : { node-version: "22" }
3340 - uses : dtolnay/rust-toolchain@stable
@@ -36,22 +43,10 @@ jobs:
3643 - name : Install dependencies
3744 run : npm install
3845
39- - name : Build .app with Tauri
46+ - name : Build and sign .app with Tauri
4047 run : npm run tauri build -- --bundles app --target universal-apple-darwin
41-
42- - name : Embed provisioning profile
43- run : |
44- PROFILE=$(ls "$HOME/Library/MobileDevice/Provisioning Profiles/"*.provisionprofile \
45- "$HOME/Library/MobileDevice/Provisioning Profiles/"*.mobileprovision \
46- 2>/dev/null | head -n 1)
47- cp "$PROFILE" "$APP_PATH/Contents/embedded.provisionprofile"
48-
49- - name : Sign app
50- run : |
51- codesign --force --deep \
52- --sign "${{ secrets.APPLE_SIGNING_IDENTITY }}" \
53- --entitlements src-tauri/Entitlements.plist \
54- "$APP_PATH"
48+ env :
49+ APPLE_SIGNING_IDENTITY : ${{ secrets.APPLE_SIGNING_IDENTITY }}
5550
5651 - name : Build signed .pkg installer
5752 run : |
0 commit comments