This commit is contained in:
youngq 2024-11-25 14:41:05 +08:00
parent ccc20c4aab
commit c9a5ebd7d8
4 changed files with 9 additions and 9 deletions

BIN
build/start-xy.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

View File

@ -6,7 +6,7 @@
],
"buildDependenciesFromSource": true,
"compression": "normal",
"productName": "湖北襄阳四中-教研平台",
"productName": "湖北襄阳四中教研平台",
"publish": [
{
"provider": "generic",
@ -17,7 +17,7 @@
"!*.log"
],
"win": {
"icon": "build/start.ico",
"icon": "build/start-xy.ico",
"requestedExecutionLevel": "highestAvailable",
"target": [
{
@ -42,14 +42,14 @@
],
"nsis": {
"oneClick": false,
"installerIcon": "build/install.ico",
"uninstallerIcon": "build/install.ico",
"installerHeaderIcon": "build/install.ico",
"installerIcon": "build/start-xy.ico",
"uninstallerIcon": "build/start-xy.ico",
"installerHeaderIcon": "build/start-xy.ico",
"allowToChangeInstallationDirectory": true,
"createDesktopShortcut": true,
"createStartMenuShortcut": true,
"deleteAppDataOnUninstall": true,
"shortcutName": "湖北襄阳四中-教研平台",
"shortcutName": "湖北襄阳四中教研平台",
"allowElevation": true,
"perMachine": true
}

View File

@ -627,8 +627,8 @@ function updateHandle() {
updateNotAva: '已经是最新版本,不用更新'
}
autoUpdater.setFeedURL('https://meeting-api.23544.com/meeting/update')
autoUpdater.autoDownload = false // 不自动下载安装包
autoUpdater.autoInstallOnAppQuit = false // 不自动安装
autoUpdater.autoDownload = ture // 不自动下载安装包
autoUpdater.autoInstallOnAppQuit = ture // 不自动安装
autoUpdater.on('error', function (error) {
sendUpdateMessage(message.error)
})

View File

@ -15,7 +15,7 @@
"preview": "vite preview",
"build:dev-win": "vite build --mode development & electron-builder -w --config=./config/build.json",
"build:prod-win": "vite build --mode production & electron-builder -w --config=./config/build.json",
"build:xy-win": "vite build --mode xy & electron-builder -w --config=./config/xy.json"
"build:prod-win-xy": "vite build --mode xy & electron-builder -w --config=./config/xy.json"
},
"agora_electron": {
"platform": "win32",