chore: fix mac build (#138)

This commit is contained in:
Medcl
2025-02-13 08:34:23 +08:00
committed by GitHub
parent f7c5c9e0e0
commit 142f22147c
8 changed files with 28 additions and 46 deletions

View File

@@ -40,6 +40,7 @@ build-mac-dmg:
build-mac-universal-dmg:
@echo "Building the desktop dmg package..."
pnpm tauri build --target universal-apple-darwin --bundles dmg
#pnpm tauri build --target x86_64-apple-darwin --bundles dmg
# Build nsis package for Windows
build-win-nsis: install-dependencies

View File

@@ -26,5 +26,12 @@
<true/>
<key>com.apple.security.inherit</key>
<true/>
<key>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.application-identifier</key>
<string>6GVZT94974.rs.coco.app</string>
<key>com.apple.developer.team-identifier</key>
<string>6GVZT94974</string>
</dict>
</plist>

View File

@@ -7,16 +7,19 @@
<key>NSMicrophoneUsageDescription</key>
<string>Request microphone access for WebRTC</string>
<key>CFBundleIdentifier</key>
<string>rs.coco.app</string>
<key>CFBundleExecutable</key>
<string>coco</string>
<key>NSPrefPaneIconLabel</key>
<string>coco-ai</string>
<key>LSUIElement</key>
<true/>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
<key>CFBundleURLTypes</key>
<array>
<dict>

View File

@@ -0,0 +1,10 @@
{
"bundle": {
"macOS": {
"entitlements": "./Entitlements.plist",
"files": {
"embedded.provisionprofile": "/Users/medcl/Coco_AI.provisionprofile"
}
}
}
}

View File

@@ -21,7 +21,7 @@
"decorations": false,
"minimizable": false,
"maximizable": false,
"skipTaskbar": true,
"skipTaskbar": false,
"resizable": false,
"alwaysOnTop": true,
"acceptFirstMouse": true,
@@ -72,6 +72,7 @@
"bundle": {
"active": true,
"targets": "all",
"category": "Utility",
"shortDescription": "Coco AI",
"icon": [
"icons/32x32.png",
@@ -92,7 +93,8 @@
"icons/StoreLogo.png"
],
"macOS": {
"entitlements": "./Entitlements.plist",
"minimumSystemVersion": "12.0",
"hardenedRuntime": true,
"dmg": {
"appPosition": {
"x": 180,
@@ -121,7 +123,7 @@
"active": true,
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IEM5RjNFQUM3NDdGMjgzNUIKUldSYmcvSkh4K3J6eWFrYlRGTjFPZTJXQWIyMGJtWjdLVUplZm9kcHcvdWQ0aTZjMUYvOUJ5K08K",
"endpoints": [
"https://api.coco.rs/update/{{target}}/{{current_version}}"
"https://api.coco.rs/update/{{target}}/{{arch}}/{{current_version}}"
]
},
"websocket": {},

View File

@@ -1,15 +0,0 @@
{
"identifier": "rs.coco.app",
"bundle": {
"linux": {
"deb": {
"depends": [],
"desktopTemplate": "./Coco.desktop"
},
"rpm": {
"depends": [],
"desktopTemplate": "./Coco.desktop"
}
}
}
}

View File

@@ -1,11 +0,0 @@
{
"identifier": "rs.coco.app",
"bundle": {
"externalBin": [
],
"resources": [
"assets/tray-mac.ico",
"assets/drag-icon.png"
]
}
}

View File

@@ -1,15 +0,0 @@
{
"identifier": "rs.coco.app",
"bundle": {
"externalBin": [
],
"windows": {
"digestAlgorithm": "sha256",
"nsis": {
"languages": [
],
"installMode": "both"
}
}
}
}