Skip to content

Commit 7a37ddf

Browse files
committed
trying to fix deploy
1 parent 3833094 commit 7a37ddf

File tree

6 files changed

+22
-24
lines changed

6 files changed

+22
-24
lines changed

.github/workflows/deploy-macos.yaml

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@ jobs:
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: |

.github/workflows/deploy-prod.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ jobs:
4040
NEXT_PUBLIC_API_URL=https://scriptio.app
4141
NEXT_PUBLIC_COMMIT_SHA=${{ env.COMMIT_SHA }}
4242
NEXT_PUBLIC_APP_VERSION=${{ env.APP_VERSION }}
43-
cache-from: type=gha,scope=prod
44-
cache-to: type=gha,mode=max,scope=prod
4543
4644
deploy:
4745
runs-on: ubuntu-latest

.github/workflows/deploy-staging.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ jobs:
4040
NEXT_PUBLIC_API_URL=https://staging.scriptio.app
4141
NEXT_PUBLIC_COMMIT_SHA=${{ env.COMMIT_SHA }}
4242
NEXT_PUBLIC_APP_VERSION=${{ env.APP_VERSION }}
43-
cache-from: type=gha,scope=staging
44-
cache-to: type=gha,mode=max,scope=staging
4543
4644
deploy:
4745
runs-on: ubuntu-latest

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,7 @@ yarn-error.log*
4545
*.tsbuildinfo
4646

4747
# claude
48-
.claude
48+
.claude
49+
# Apple provisioning profiles
50+
*.provisionprofile
51+
*.mobileprovision

src-tauri/Entitlements.plist

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,18 @@
22
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
33
<plist version="1.0">
44
<dict>
5-
<!-- Required by Mac App Store — without this the upload is rejected -->
5+
<key>com.apple.application-identifier</key>
6+
<string>G93CJ6PWZH.app.scriptio</string>
7+
8+
<key>com.apple.developer.team-identifier</key>
9+
<string>G93CJ6PWZH</string>
10+
611
<key>com.apple.security.app-sandbox</key>
712
<true/>
813

9-
<!-- Outbound HTTP/S to scriptio.app backend and APIs -->
1014
<key>com.apple.security.network.client</key>
1115
<true/>
1216

13-
<!-- File open/save dialogs via Tauri's dialog plugin -->
1417
<key>com.apple.security.files.user-selected.read-write</key>
1518
<true/>
1619
</dict>

src-tauri/tauri.macos.conf.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"bundle": {
44
"category": "Productivity",
55
"macOS": {
6-
"entitlements": "./Entitlements.plist"
6+
"entitlements": "./Entitlements.plist",
7+
"provisioningProfile": "./embedded.provisionprofile"
78
}
89
}
910
}

0 commit comments

Comments
 (0)