Compare commits

...

27 Commits

Author SHA1 Message Date
GitHub Action
24a45e9f10 chore: format code 2025-12-07 18:23:07 +00:00
Dax Raad
5d7c133db3 ci 2025-12-07 13:22:43 -05:00
Dax Raad
c7ce37ae38 ci 2025-12-07 13:22:26 -05:00
GitHub Action
b05cffb68e chore: regen sdk 2025-12-07 18:18:56 +00:00
Dax Raad
08ee657ef3 add custom entitlements 2025-12-07 13:18:26 -05:00
GitHub Action
1212aa0bf3 chore: format code 2025-12-07 04:57:34 +00:00
Brendan Allan
93b636334d Merge branch 'dev' into desktop-macos-notarization 2025-12-07 12:57:06 +08:00
GitHub Action
02d2764ebd chore: regen sdk 2025-12-07 04:47:15 +00:00
Brendan Allan
1c716e087a uncomment main publish job 2025-12-07 12:46:42 +08:00
GitHub Action
3a362f3a46 chore: format code 2025-12-06 17:35:24 +00:00
Brendan Allan
09ff608f02 replace release creation with empty releaseId 2025-12-07 01:34:51 +08:00
GitHub Action
85f4f71210 chore: regen sdk 2025-12-06 12:28:48 +00:00
Brendan Allan
8933d313d0 Merge branch 'dev' into desktop-macos-notarization 2025-12-06 20:28:21 +08:00
GitHub Action
484901b53f chore: format code 2025-12-06 05:08:02 +00:00
Brendan Allan
ead94b5501 TAURI_SIGNING_PRIVATE_KEY_PASSWORD 2025-12-06 13:07:28 +08:00
GitHub Action
790c405a05 chore: regen sdk 2025-12-06 04:59:24 +00:00
Brendan Allan
52baa163a7 don't base64 decode private key 2025-12-06 12:58:53 +08:00
GitHub Action
c6e9309a1d chore: format code 2025-12-06 04:48:21 +00:00
Brendan Allan
70c6db5b04 build desktop without uploading 2025-12-06 12:47:49 +08:00
GitHub Action
edb9f73cce chore: regen sdk 2025-12-06 04:44:48 +00:00
Brendan Allan
668f8382c1 try decoding base64 2025-12-06 12:44:18 +08:00
GitHub Action
b77ec31187 chore: format code 2025-12-06 04:40:31 +00:00
Brendan Allan
f383ae10c7 oops 2025-12-06 12:39:55 +08:00
GitHub Action
839ce00ef2 chore: regen sdk 2025-12-06 04:39:33 +00:00
Brendan Allan
f1e5d01fc8 Developer ID Application 2025-12-06 12:39:00 +08:00
GitHub Action
84e95268f7 chore: format code 2025-12-06 04:35:31 +00:00
Brendan Allan
a6573f2f9f import apple certs 2025-12-06 12:34:40 +08:00
3 changed files with 49 additions and 5 deletions

View File

@@ -26,7 +26,7 @@ permissions:
jobs:
publish:
runs-on: blacksmith-4vcpu-ubuntu-2404
if: github.repository == 'sst/opencode'
if: github.repository == 'sst/opencode' && github.ref == 'refs/heads/dev'
steps:
- uses: actions/checkout@v3
with:
@@ -99,6 +99,26 @@ jobs:
with:
fetch-depth: 0
- uses: apple-actions/import-codesign-certs@v2
if: ${{ runner.os == 'macOS' }}
with:
keychain: build
p12-file-base64: ${{ secrets.APPLE_CERTIFICATE }}
p12-password: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
- name: Verify Certificate
if: ${{ runner.os == 'macOS' }}
run: |
CERT_INFO=$(security find-identity -v -p codesigning build.keychain | grep "Developer ID Application")
CERT_ID=$(echo "$CERT_INFO" | awk -F'"' '{print $2}')
echo "CERT_ID=$CERT_ID" >> $GITHUB_ENV
echo "Certificate imported."
- name: Setup Apple API Key
if: ${{ runner.os == 'macOS' }}
run: |
echo "${{ secrets.APPLE_API_KEY_PATH }}" > $RUNNER_TEMP/apple-api-key.p8
- run: git fetch --force --tags
- uses: ./.github/actions/setup-bun
@@ -144,12 +164,17 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAURI_BUNDLER_NEW_APPIMAGE_FORMAT: true
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }}
APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
APPLE_SIGNING_IDENTITY: ${{ env.CERT_ID }}
APPLE_API_ISSUER: ${{ secrets.APPLE_API_ISSUER }}
APPLE_API_KEY: ${{ secrets.APPLE_API_KEY }}
APPLE_API_KEY_PATH: ${{ runner.temp }}/apple-api-key.p8
with:
projectPath: packages/tauri
uploadWorkflowArtifacts: true
tauriScript: ${{ (startsWith(matrix.settings.host, 'ubuntu') && 'cargo tauri') || '' }}
args: --target ${{ matrix.settings.target }}
updaterJsonPreferNsis: true
releaseDraft: true
tagName: ${{ inputs.version }}
releaseName: ${{ inputs.version }}
# releaseId: TODO

View File

@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.cs.allow-jit</key>
<true/>
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
<true/>
<key>com.apple.security.cs.disable-executable-page-protection</key>
<true/>
<key>com.apple.security.cs.allow-dyld-environment-variables</key>
<true/>
<key>com.apple.security.cs.disable-library-validation</key>
<true/>
</dict>
</plist>

View File

@@ -22,7 +22,10 @@
"targets": ["deb", "rpm", "appimage", "dmg", "app", "nsis"],
"icon": ["icons/32x32.png", "icons/128x128.png", "icons/128x128@2x.png", "icons/icon.icns", "icons/icon.ico"],
"externalBin": ["sidecars/opencode"],
"createUpdaterArtifacts": true
"createUpdaterArtifacts": true,
"macOS": {
"entitlements": "./entitlements.plist"
}
},
"plugins": {
"updater": {