From 5f6839058ab56726fc414cf81efed5a42ac34e9b Mon Sep 17 00:00:00 2001 From: zhuhao <979263092@qq.com> Date: Mon, 19 Aug 2024 14:18:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=8C=E6=9C=9F=EF=BC=9A=E6=89=93=E5=8C=85IM?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 76 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) diff --git a/package.json b/package.json index 1629b15..f37b315 100644 --- a/package.json +++ b/package.json @@ -36,6 +36,7 @@ "js-cookie": "^3.0.5", "jsencrypt": "^3.3.2", "jsondiffpatch": "0.6.0", + "im_electron_sdk": "^8.0.5904", "lodash": "^4.17.21", "pdfjs-dist": "4.4.168", "pinia": "^2.1.7", @@ -61,5 +62,80 @@ "vite-plugin-windicss": "^1.9.3", "vue": "^3.4.30", "windicss": "^3.5.6" + }, + "build": { + "files": [ + "src/app", + "bundle", + "icon" + ], + "appId": "aix-win", + "mac": { + "gatekeeperAssess": false, + "hardenedRuntime": true, + "entitlements": "./signing/entitlements.mac.plist", + "entitlementsInherit": "./signing/entitlements.mac.plist", + "extendInfo": { + "NSMicrophoneUsageDescription": "Please give us access to your microphone", + "NSCameraUsageDescription": "Allow your conversational partners to see you in a Grape Call. You can turn off your video anytime during a call." + }, + "icon": "./icon/im_electron_logo.png", + "extraFiles": [ + { + "from": "./node_modules/im_electron_sdk/lib/", + "to": "./Resources", + "filter": [ + "**/*" + ] + }, + + { + "from": "./icon/", + "to": "./Resources", + "filter": [ + "**/*" + ] + } + ] + }, + "win": { + "icon": "./resources/logo.ico", + "target": [ + { + "target": "nsis", + "arch": [ + "x64" + ] + } + ], + "extraFiles": [ + { + "from": "./node_modules/im_electron_sdk/lib/", + "to": "./resources", + "filter": [ + "**/*" + ] + } + ] + }, + "linux": { + "target": "deb", + "extraFiles": [ + { + "from": "./node_modules/im_electron_sdk/lib/", + "to": "./resources", + "filter": [ + "**/*" + ] + }, + { + "from": "node_modules/trtc-electron-sdk/build/Release/", + "to": "./resources", + "filter": [ + "**/*" + ] + } + ] + } } }