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: build-mac-universal-dmg:
@echo "Building the desktop dmg package..." @echo "Building the desktop dmg package..."
pnpm tauri build --target universal-apple-darwin --bundles dmg 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 nsis package for Windows
build-win-nsis: install-dependencies build-win-nsis: install-dependencies

View File

@@ -26,5 +26,12 @@
<true/> <true/>
<key>com.apple.security.inherit</key> <key>com.apple.security.inherit</key>
<true/> <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> </dict>
</plist> </plist>

View File

@@ -6,17 +6,20 @@
<string>Request camera access for WebRTC</string> <string>Request camera access for WebRTC</string>
<key>NSMicrophoneUsageDescription</key> <key>NSMicrophoneUsageDescription</key>
<string>Request microphone access for WebRTC</string> <string>Request microphone access for WebRTC</string>
<key>CFBundleIdentifier</key> <key>CFBundleIdentifier</key>
<string>rs.coco.app</string> <string>rs.coco.app</string>
<key>CFBundleExecutable</key>
<string>coco</string>
<key>NSPrefPaneIconLabel</key> <key>NSPrefPaneIconLabel</key>
<string>coco-ai</string> <string>coco-ai</string>
<key>LSUIElement</key> <key>LSUIElement</key>
<true/> <true/>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
<key>CFBundleURLTypes</key> <key>CFBundleURLTypes</key>
<array> <array>
<dict> <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, "decorations": false,
"minimizable": false, "minimizable": false,
"maximizable": false, "maximizable": false,
"skipTaskbar": true, "skipTaskbar": false,
"resizable": false, "resizable": false,
"alwaysOnTop": true, "alwaysOnTop": true,
"acceptFirstMouse": true, "acceptFirstMouse": true,
@@ -72,6 +72,7 @@
"bundle": { "bundle": {
"active": true, "active": true,
"targets": "all", "targets": "all",
"category": "Utility",
"shortDescription": "Coco AI", "shortDescription": "Coco AI",
"icon": [ "icon": [
"icons/32x32.png", "icons/32x32.png",
@@ -92,7 +93,8 @@
"icons/StoreLogo.png" "icons/StoreLogo.png"
], ],
"macOS": { "macOS": {
"entitlements": "./Entitlements.plist", "minimumSystemVersion": "12.0",
"hardenedRuntime": true,
"dmg": { "dmg": {
"appPosition": { "appPosition": {
"x": 180, "x": 180,
@@ -121,7 +123,7 @@
"active": true, "active": true,
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IEM5RjNFQUM3NDdGMjgzNUIKUldSYmcvSkh4K3J6eWFrYlRGTjFPZTJXQWIyMGJtWjdLVUplZm9kcHcvdWQ0aTZjMUYvOUJ5K08K", "pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IEM5RjNFQUM3NDdGMjgzNUIKUldSYmcvSkh4K3J6eWFrYlRGTjFPZTJXQWIyMGJtWjdLVUplZm9kcHcvdWQ0aTZjMUYvOUJ5K08K",
"endpoints": [ "endpoints": [
"https://api.coco.rs/update/{{target}}/{{current_version}}" "https://api.coco.rs/update/{{target}}/{{arch}}/{{current_version}}"
] ]
}, },
"websocket": {}, "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"
}
}
}
}