diff --git a/Makefile b/Makefile index 038381f4..46d0f34a 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/src-tauri/Entitlements.plist b/src-tauri/Entitlements.plist index 6bf0d0ff..aa38da3e 100644 --- a/src-tauri/Entitlements.plist +++ b/src-tauri/Entitlements.plist @@ -26,5 +26,12 @@ com.apple.security.inherit + com.apple.security.app-sandbox + + com.apple.application-identifier + 6GVZT94974.rs.coco.app + com.apple.developer.team-identifier + 6GVZT94974 + diff --git a/src-tauri/Info.plist b/src-tauri/Info.plist index 64a644cd..c4abf74a 100644 --- a/src-tauri/Info.plist +++ b/src-tauri/Info.plist @@ -6,17 +6,20 @@ Request camera access for WebRTC NSMicrophoneUsageDescription Request microphone access for WebRTC - CFBundleIdentifier rs.coco.app - + CFBundleExecutable + coco NSPrefPaneIconLabel coco-ai LSUIElement + ITSAppUsesNonExemptEncryption + + CFBundleURLTypes diff --git a/src-tauri/tauri.appstore.conf.json b/src-tauri/tauri.appstore.conf.json new file mode 100644 index 00000000..6a3007eb --- /dev/null +++ b/src-tauri/tauri.appstore.conf.json @@ -0,0 +1,10 @@ +{ + "bundle": { + "macOS": { + "entitlements": "./Entitlements.plist", + "files": { + "embedded.provisionprofile": "/Users/medcl/Coco_AI.provisionprofile" + } + } + } +} \ No newline at end of file diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 6aa20c64..cc754d67 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -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": {}, diff --git a/src-tauri/tauri.linux.conf.json b/src-tauri/tauri.linux.conf.json deleted file mode 100644 index a53a8c6c..00000000 --- a/src-tauri/tauri.linux.conf.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "identifier": "rs.coco.app", - "bundle": { - "linux": { - "deb": { - "depends": [], - "desktopTemplate": "./Coco.desktop" - }, - "rpm": { - "depends": [], - "desktopTemplate": "./Coco.desktop" - } - } - } -} diff --git a/src-tauri/tauri.macos.conf.json b/src-tauri/tauri.macos.conf.json deleted file mode 100644 index 1491f939..00000000 --- a/src-tauri/tauri.macos.conf.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "identifier": "rs.coco.app", - "bundle": { - "externalBin": [ - ], - "resources": [ - "assets/tray-mac.ico", - "assets/drag-icon.png" - ] - } -} diff --git a/src-tauri/tauri.windows.conf.json b/src-tauri/tauri.windows.conf.json deleted file mode 100644 index a412e944..00000000 --- a/src-tauri/tauri.windows.conf.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "identifier": "rs.coco.app", - "bundle": { - "externalBin": [ - ], - "windows": { - "digestAlgorithm": "sha256", - "nsis": { - "languages": [ - ], - "installMode": "both" - } - } - } -}