diff --git a/electron-builder-yy.yml b/electron-builder-yy.yml new file mode 100644 index 0000000..b0511ec --- /dev/null +++ b/electron-builder-yy.yml @@ -0,0 +1,54 @@ +appId: com.electron.app.yy +productName: 育人酉数平台 +directories: + output: dist + buildResources: build +win: + executableName: 育人酉数平台 + icon: resources/yy-logo.png +files: + - '!**/.vscode/*' + - '!src/*' + - '!electron.vite.config.{js,ts,mjs,cjs}' + - '!{.eslintignore,.eslintrc.cjs,.prettierignore,.prettierrc.yaml,dev-app-update.yml,CHANGELOG.md,README.md}' + - '!{.env,.env.*,.npmrc,pnpm-lock.yaml}' +asarUnpack: + - resources/** +nsis: + oneClick: false + allowToChangeInstallationDirectory: true + artifactName: ${name}-${version}-setup.${ext} + shortcutName: ${productName} + uninstallDisplayName: ${productName} + createDesktopShortcut: always +mac: + entitlementsInherit: build/entitlements.mac.plist + extendInfo: + - NSCameraUsageDescription: Application requests access to the device's camera. + - NSMicrophoneUsageDescription: Application requests access to the device's microphone. + - NSDocumentsFolderUsageDescription: Application requests access to the user's Documents folder. + - NSDownloadsFolderUsageDescription: Application requests access to the user's Downloads folder. + notarize: false +dmg: + artifactName: ${name}-${version}.${ext} +linux: + target: + - AppImage + - snap + - deb + maintainer: electronjs.org + category: Utility +appImage: + artifactName: ${name}-${version}.${ext} +npmRebuild: false +publish: + provider: generic + url: https://prev.ysaix.com:7868/src/assets/smarttalkyy/ +electronDownload: + mirror: https://npmmirror.com/mirrors/electron/ +# 额外依赖打包到输出目录 +extraFiles: + - from: ./node_modules/im_electron_sdk/lib/ + to: ./resources + filter: + - '**/*' diff --git a/package.json b/package.json index fabd39f..152587e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "aix-win-ws", - "version": "2.5.15", + "version": "2.5.16", "description": "", "main": "./out/main/index.js", "author": "上海交大重庆人工智能研究院", @@ -18,6 +18,7 @@ "build:prod32": "node updatePackageJsonName.js && electron-vite build --mode production && electron-builder --win --config ./electron-builder-prod.yml --win --ia32", "build:yc": "node updatePackageJsonName.js && electron-vite build --mode yc && electron-builder --win --config ./electron-builder-yc.yml", "build:yc2": "node updatePackageJsonName.js && electron-vite build --mode yc2 && electron-builder --win --config ./electron-builder-yc2.yml", + "build:yy": "node updatePackageJsonName.js && electron-vite build --mode yy && electron-builder --win --config ./electron-builder-yy.yml", "build:lt": "electron-vite build --mode lt && electron-builder --win --config ./electron-builder-lt.yml", "build:mac": "electron-vite build --mode production && electron-builder --mac --config ./electron-builder-prod.yml", "build:linux": "npm run build && electron-builder --linux" diff --git a/resources/yy-logo.png b/resources/yy-logo.png new file mode 100644 index 0000000..d64abf0 Binary files /dev/null and b/resources/yy-logo.png differ diff --git a/src/main/index.js b/src/main/index.js index a430510..0fad3d1 100644 --- a/src/main/index.js +++ b/src/main/index.js @@ -47,7 +47,8 @@ let logoIco = import.meta.env.MODE==='yc'||import.meta.env.MODE==='yc2'?'../../r function createLoginWindow() { if (loginWindow) return loginWindow = new BrowserWindow({ - width: import.meta.env.MODE==='yc'||import.meta.env.MODE==='yc2'?1060:888, + // width: import.meta.env.MODE==='yc'||import.meta.env.MODE==='yc2'?1060:888, + width: 1060, height: 520, show: false, frame: false, diff --git a/src/renderer/src/assets/images/login/yy-logo.png b/src/renderer/src/assets/images/login/yy-logo.png new file mode 100644 index 0000000..d64abf0 Binary files /dev/null and b/src/renderer/src/assets/images/login/yy-logo.png differ diff --git a/src/renderer/src/assets/images/login/yy_bacg.jpg b/src/renderer/src/assets/images/login/yy_bacg.jpg new file mode 100644 index 0000000..b063009 Binary files /dev/null and b/src/renderer/src/assets/images/login/yy_bacg.jpg differ diff --git a/src/renderer/src/views/login/defult-login.vue b/src/renderer/src/views/login/defult-login.vue index 9b506aa..2846b6f 100644 --- a/src/renderer/src/views/login/defult-login.vue +++ b/src/renderer/src/views/login/defult-login.vue @@ -1,6 +1,6 @@