配置西安铁一中
This commit is contained in:
parent
2d4d8c4344
commit
f8129e666d
Binary file not shown.
|
After Width: | Height: | Size: 4.2 KiB |
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
4
main.js
4
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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Binary file not shown.
|
After Width: | Height: | Size: 51 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 27 KiB |
|
|
@ -213,7 +213,7 @@ const Login: React.FC = () => {
|
|||
<>
|
||||
<div className={styles.login}>
|
||||
<div className={styles.loginBg}>
|
||||
{env ? <img src={env === 'xy' ? ImageUrl.icon53 : ImageUrl.icon1} alt="" /> : null}
|
||||
{env ? <img src={env === 'xy' ? ImageUrl.icon53 : env === 'xatyz' ? ImageUrl.icon58 : ImageUrl.icon1} alt="" /> : null}
|
||||
</div>
|
||||
<div className={styles.loginContent}>
|
||||
<div>
|
||||
|
|
|
|||
|
|
@ -87,6 +87,8 @@ import icon55 from '@/assets/icon55.png'
|
|||
import icon56 from '@/assets/icon56.png'
|
||||
import icon56Active from '@/assets/icon56-active.png'
|
||||
import icon57 from '@/assets/icon57.png'
|
||||
import icon58 from '@/assets/icon58.png'
|
||||
import icon59 from '@/assets/icon59.png'
|
||||
export default {
|
||||
loading,
|
||||
icon,
|
||||
|
|
@ -177,4 +179,6 @@ export default {
|
|||
icon56,
|
||||
icon56Active,
|
||||
icon57,
|
||||
icon58,
|
||||
icon59,
|
||||
}
|
||||
|
|
@ -62,6 +62,8 @@ export const getUpdateUrl = (env: string) => {
|
|||
switch (env) {
|
||||
case 'xy':
|
||||
return 'https://meeting-api.23544.com/meeting/xysz'
|
||||
case 'xatyz':
|
||||
return 'https://meeting-api.23544.com/meeting/xatyz'
|
||||
case 'development':
|
||||
return 'http://192.168.2.9:8827'
|
||||
default:
|
||||
|
|
@ -75,6 +77,9 @@ export const getTitle = async () => {
|
|||
case 'xy':
|
||||
str = '湖北襄阳四中教研平台'
|
||||
break;
|
||||
case 'xatyz':
|
||||
str = '西安铁一中教研平台'
|
||||
break;
|
||||
case 'development':
|
||||
str = '智汇享'
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -3,6 +3,8 @@ module.exports = {
|
|||
switch (env) {
|
||||
case 'xy':
|
||||
return 'https://meeting-api.23544.com/meeting/xysz'
|
||||
case 'xatyz':
|
||||
return 'https://meeting-api.23544.com/meeting/xatyz'
|
||||
case 'development':
|
||||
return 'http://192.168.2.9:8827'
|
||||
default:
|
||||
|
|
@ -13,6 +15,8 @@ module.exports = {
|
|||
switch (env) {
|
||||
case 'xy':
|
||||
return '湖北襄阳四中教研平台'
|
||||
case 'xatyz':
|
||||
return '西安铁一中教研平台'
|
||||
case 'development':
|
||||
return '智汇享'
|
||||
default:
|
||||
|
|
@ -23,6 +27,8 @@ module.exports = {
|
|||
switch (env) {
|
||||
case 'xy':
|
||||
return 'icon54'
|
||||
case 'xatyz':
|
||||
return 'icon59'
|
||||
case 'development':
|
||||
return 'icon'
|
||||
default:
|
||||
|
|
|
|||
Loading…
Reference in New Issue