Skip to content

Commit

Permalink
use separate bundle identifier in dev
Browse files Browse the repository at this point in the history
  • Loading branch information
filleduchaos committed Sep 11, 2024
1 parent bccbfa2 commit 9012e6c
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ jobs:
run: |
export TARGET_TRIPLE=${{ matrix.settings.target }}
node ${{ github.workspace }}/.github/prebuild.js ${{ matrix.settings.prebuild }}
pnpm tauri build --target ${{ matrix.settings.target }}
pnpm tauri build --target ${{ matrix.settings.target }} --config src-tauri/tauri.conf.prod.json
env:
# https://github.com/tauri-apps/tauri-action/issues/740
CI: false
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/src-tauri/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<array>
<dict>
<key>CFBundleURLName</key>
<string>so.cap.desktop</string>
<string>so.cap.desktop.dev</string>
<key>CFBundleURLSchemes</key>
<array>
<string>caprecorder</string>
Expand Down
42 changes: 42 additions & 0 deletions apps/desktop/src-tauri/Info.prod.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?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>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>cap</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>icon.icns</string>
<key>CFBundleTypeName</key>
<string>Cap Recording</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSHandlerRank</key>
<string>Default</string>
<key>LSTypeIsPackage</key>
<true/>
</dict>
</array>
<key>NSCameraUsageDescription</key>
<string>Request camera access for WebRTC</string>
<key>NSMicrophoneUsageDescription</key>
<string>Request microphone access for WebRTC</string>
<key>NSScreenCaptureUsageDescription</key>
<string>Request screen capture access</string>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLName</key>
<string>so.cap.desktop</string>
<key>CFBundleURLSchemes</key>
<array>
<string>caprecorder</string>
</array>
</dict>
</array>
</dict>
</plist>
13 changes: 2 additions & 11 deletions apps/desktop/src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "../node_modules/@tauri-apps/cli/schema.json",
"productName": "Cap",
"identifier": "so.cap.desktop",
"productName": "Cap - Development",
"identifier": "so.cap.desktop.dev",
"build": {
"beforeDevCommand": "node scripts/prepareSidecars.js && pnpm localdev",
"devUrl": "http://localhost:3001",
Expand All @@ -18,15 +18,6 @@
}
}
},
"plugins": {
"updater": {
"endpoints": [
"https://cdn.crabnebula.app/update/cap/cap/{{target}}-{{arch}}/{{current_version}}"
],
"dialog": true,
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IEUyOTAzOTdFNzJFQkRFOTMKUldTVDN1dHlmam1RNHFXb1VYTXlrQk1iMFFkcjN0YitqZlA5WnZNY0ZtQ1dvM1dxK211M3VIYUQK"
}
},
"bundle": {
"active": true,
"targets": "all",
Expand Down
19 changes: 19 additions & 0 deletions apps/desktop/src-tauri/tauri.conf.prod.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"$schema": "../node_modules/@tauri-apps/cli/schema.json",
"productName": "Cap",
"identifier": "so.cap.desktop",
"plugins": {
"updater": {
"endpoints": [
"https://cdn.crabnebula.app/update/cap/cap/{{target}}-{{arch}}/{{current_version}}"
],
"dialog": true,
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IEUyOTAzOTdFNzJFQkRFOTMKUldTVDN1dHlmam1RNHFXb1VYTXlrQk1iMFFkcjN0YitqZlA5WnZNY0ZtQ1dvM1dxK211M3VIYUQK"
}
},
"bundle": {
"macOS": {
"entitlements": "Info.prod.plist"
}
}
}

0 comments on commit 9012e6c

Please sign in to comment.