yangjie #51
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 mainWindow = null;
|
||||||
let childWindow = {}
|
let childWindow = {}
|
||||||
let isMaximized = false;
|
let isMaximized = false;
|
||||||
let env = 'development'; //development production xy
|
let env = 'development'; //development production xy xatyz
|
||||||
let regKey;
|
let regKey;
|
||||||
let connection = null;
|
let connection = null;
|
||||||
let startNumber = 0;
|
let startNumber = 0;
|
||||||
|
|
@ -74,7 +74,7 @@ let tray;
|
||||||
// 检查网络状态
|
// 检查网络状态
|
||||||
function checkNetworkStatus() {
|
function checkNetworkStatus() {
|
||||||
if (!net.isOnline()) {
|
if (!net.isOnline()) {
|
||||||
dialog.showErrorBox(`${env === 'xy' ? '湖北襄阳四中教研平台' : '智汇享'}-网络连接错误', '当前无网络连接,请检查您的网络设置。`);
|
dialog.showErrorBox(`${env === 'xy' ? '湖北襄阳四中教研平台' : env === 'xatyz' ? '西安铁一中教研平台' : '智汇享'}-网络连接错误', '当前无网络连接,请检查您的网络设置。`);
|
||||||
app.quit();
|
app.quit();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,8 @@
|
||||||
"preview": "vite preview",
|
"preview": "vite preview",
|
||||||
"build:dev": "vite build & node build.js & electron-builder -w --config=./config/development.json",
|
"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: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": {
|
"agora_electron": {
|
||||||
"platform": "win32",
|
"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.login}>
|
||||||
<div className={styles.loginBg}>
|
<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>
|
||||||
<div className={styles.loginContent}>
|
<div className={styles.loginContent}>
|
||||||
<div>
|
<div>
|
||||||
|
|
|
||||||
|
|
@ -87,6 +87,8 @@ import icon55 from '@/assets/icon55.png'
|
||||||
import icon56 from '@/assets/icon56.png'
|
import icon56 from '@/assets/icon56.png'
|
||||||
import icon56Active from '@/assets/icon56-active.png'
|
import icon56Active from '@/assets/icon56-active.png'
|
||||||
import icon57 from '@/assets/icon57.png'
|
import icon57 from '@/assets/icon57.png'
|
||||||
|
import icon58 from '@/assets/icon58.png'
|
||||||
|
import icon59 from '@/assets/icon59.png'
|
||||||
export default {
|
export default {
|
||||||
loading,
|
loading,
|
||||||
icon,
|
icon,
|
||||||
|
|
@ -177,4 +179,6 @@ export default {
|
||||||
icon56,
|
icon56,
|
||||||
icon56Active,
|
icon56Active,
|
||||||
icon57,
|
icon57,
|
||||||
|
icon58,
|
||||||
|
icon59,
|
||||||
}
|
}
|
||||||
|
|
@ -62,6 +62,8 @@ export const getUpdateUrl = (env: string) => {
|
||||||
switch (env) {
|
switch (env) {
|
||||||
case 'xy':
|
case 'xy':
|
||||||
return 'https://meeting-api.23544.com/meeting/xysz'
|
return 'https://meeting-api.23544.com/meeting/xysz'
|
||||||
|
case 'xatyz':
|
||||||
|
return 'https://meeting-api.23544.com/meeting/xatyz'
|
||||||
case 'development':
|
case 'development':
|
||||||
return 'http://192.168.2.9:8827'
|
return 'http://192.168.2.9:8827'
|
||||||
default:
|
default:
|
||||||
|
|
@ -75,6 +77,9 @@ export const getTitle = async () => {
|
||||||
case 'xy':
|
case 'xy':
|
||||||
str = '湖北襄阳四中教研平台'
|
str = '湖北襄阳四中教研平台'
|
||||||
break;
|
break;
|
||||||
|
case 'xatyz':
|
||||||
|
str = '西安铁一中教研平台'
|
||||||
|
break;
|
||||||
case 'development':
|
case 'development':
|
||||||
str = '智汇享'
|
str = '智汇享'
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,8 @@ module.exports = {
|
||||||
switch (env) {
|
switch (env) {
|
||||||
case 'xy':
|
case 'xy':
|
||||||
return 'https://meeting-api.23544.com/meeting/xysz'
|
return 'https://meeting-api.23544.com/meeting/xysz'
|
||||||
|
case 'xatyz':
|
||||||
|
return 'https://meeting-api.23544.com/meeting/xatyz'
|
||||||
case 'development':
|
case 'development':
|
||||||
return 'http://192.168.2.9:8827'
|
return 'http://192.168.2.9:8827'
|
||||||
default:
|
default:
|
||||||
|
|
@ -13,6 +15,8 @@ module.exports = {
|
||||||
switch (env) {
|
switch (env) {
|
||||||
case 'xy':
|
case 'xy':
|
||||||
return '湖北襄阳四中教研平台'
|
return '湖北襄阳四中教研平台'
|
||||||
|
case 'xatyz':
|
||||||
|
return '西安铁一中教研平台'
|
||||||
case 'development':
|
case 'development':
|
||||||
return '智汇享'
|
return '智汇享'
|
||||||
default:
|
default:
|
||||||
|
|
@ -23,6 +27,8 @@ module.exports = {
|
||||||
switch (env) {
|
switch (env) {
|
||||||
case 'xy':
|
case 'xy':
|
||||||
return 'icon54'
|
return 'icon54'
|
||||||
|
case 'xatyz':
|
||||||
|
return 'icon59'
|
||||||
case 'development':
|
case 'development':
|
||||||
return 'icon'
|
return 'icon'
|
||||||
default:
|
default:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue