diff --git a/build/start-xatyz.ico b/build/start-xatyz.ico new file mode 100644 index 0000000..047299c Binary files /dev/null and b/build/start-xatyz.ico differ diff --git a/config/xatyz.json b/config/xatyz.json new file mode 100644 index 0000000..45ec84c --- /dev/null +++ b/config/xatyz.json @@ -0,0 +1,57 @@ +{ + "appId": "agora.io.ElectronApiExample", + "asar": true, + "asarUnpack": [ + "node_modules/agora-electron-sdk" + ], + "buildDependenciesFromSource": true, + "compression": "normal", + "productName": "西安铁一中教研平台", + "publish": [ + { + "provider": "generic", + "url": "https://meeting-api.23544.com/meeting/xatyz" + } + ], + "files": [ + "!*.log" + ], + "win": { + "icon": "build/start-xatyz.ico", + "requestedExecutionLevel": "highestAvailable", + "target": [ + { + "target": "nsis", + "arch": [ + "ia32" + ] + } + ] + }, + "directories": { + "output": "electron" + }, + "extraResources": [ + { + "from": "src/assets/virtualBackground", + "to": "images", + "filter": [ + "**/*" + ] + } + ], + "nsis": { + "oneClick": false, + "installerIcon": "build/start-xatyz.ico", + "uninstallerIcon": "build/start-xatyz.ico", + "installerHeaderIcon": "build/start-xatyz.ico", + "allowToChangeInstallationDirectory": true, + "createDesktopShortcut": true, + "createStartMenuShortcut": true, + "deleteAppDataOnUninstall": true, + "shortcutName": "湖北襄阳四中教研平台", + "allowElevation": true, + "perMachine": true, + "include": "build/install.nsh" + } +} \ No newline at end of file diff --git a/main.js b/main.js index f5fecb8..2ddc71a 100644 --- a/main.js +++ b/main.js @@ -25,7 +25,7 @@ app.allowRendererProcessReuse = false; let mainWindow = null; let childWindow = {} let isMaximized = false; -let env = 'development'; //development production xy +let env = 'development'; //development production xy xatyz let regKey; let connection = null; let startNumber = 0; @@ -74,7 +74,7 @@ let tray; // 检查网络状态 function checkNetworkStatus() { if (!net.isOnline()) { - dialog.showErrorBox(`${env === 'xy' ? '湖北襄阳四中教研平台' : '智汇享'}-网络连接错误', '当前无网络连接,请检查您的网络设置。`); + dialog.showErrorBox(`${env === 'xy' ? '湖北襄阳四中教研平台' : env === 'xatyz' ? '西安铁一中教研平台' : '智汇享'}-网络连接错误', '当前无网络连接,请检查您的网络设置。`); app.quit(); return false; } diff --git a/package.json b/package.json index 9a0e692..77e72aa 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,8 @@ "preview": "vite preview", "build:dev": "vite build & node build.js & electron-builder -w --config=./config/development.json", "build:prod": "vite build & node build.js & electron-builder -w --config=./config/production.json", - "build:xy": "vite build & node build.js & electron-builder -w --config=./config/xy.json" + "build:xy": "vite build & node build.js & electron-builder -w --config=./config/xy.json", + "build:xatyz": "vite build & node build.js & electron-builder -w --config=./config/xatyz.json" }, "agora_electron": { "platform": "win32", diff --git a/src/assets/icon58.png b/src/assets/icon58.png new file mode 100644 index 0000000..4a80630 Binary files /dev/null and b/src/assets/icon58.png differ diff --git a/src/assets/icon59.png b/src/assets/icon59.png new file mode 100644 index 0000000..7fe953d Binary files /dev/null and b/src/assets/icon59.png differ diff --git a/src/page/Login/index.tsx b/src/page/Login/index.tsx index 92dd562..f4fc0b3 100644 --- a/src/page/Login/index.tsx +++ b/src/page/Login/index.tsx @@ -213,7 +213,7 @@ const Login: React.FC = () => { <>