mirror of
https://github.com/0O0o0oOoO00/Alas.git
synced 2026-05-14 11:49:26 +08:00
Add: Additional start-up parameter information
This commit is contained in:
committed by
anmengweilai
parent
b14b9af392
commit
96fc13de6b
@@ -157,3 +157,6 @@ Deploy:
|
||||
# '["alas"]' specified "alas" config
|
||||
# '["alas","alas2"]' specified "alas" "alas2" configs
|
||||
Run: null
|
||||
# --no-sandbox. https://github.com/electron/electron/issues/30966
|
||||
# Some Windows systems cannot call the GPU normally for virtualization, and you need to manually turn off sandbox mode
|
||||
NoSandbox: false
|
||||
|
||||
@@ -157,3 +157,6 @@ Deploy:
|
||||
# '["alas"]' specified "alas" config
|
||||
# '["alas","alas2"]' specified "alas" "alas2" configs
|
||||
Run: null
|
||||
# --no-sandbox. https://github.com/electron/electron/issues/30966
|
||||
# Some Windows systems cannot call the GPU normally for virtualization, and you need to manually turn off sandbox mode
|
||||
NoSandbox: false
|
||||
|
||||
@@ -157,3 +157,6 @@ Deploy:
|
||||
# '["alas"]' specified "alas" config
|
||||
# '["alas","alas2"]' specified "alas" "alas2" configs
|
||||
Run: null
|
||||
# --no-sandbox. https://github.com/electron/electron/issues/30966
|
||||
# Some Windows systems cannot call the GPU normally for virtualization, and you need to manually turn off sandbox mode
|
||||
NoSandbox: false
|
||||
|
||||
@@ -157,3 +157,6 @@ Deploy:
|
||||
# '["alas"]' specified "alas" config
|
||||
# '["alas","alas2"]' specified "alas" "alas2" configs
|
||||
Run: null
|
||||
# --no-sandbox. https://github.com/electron/electron/issues/30966
|
||||
# Some Windows systems cannot call the GPU normally for virtualization, and you need to manually turn off sandbox mode
|
||||
NoSandbox: false
|
||||
|
||||
@@ -157,3 +157,6 @@ Deploy:
|
||||
# '["alas"]' specified "alas" config
|
||||
# '["alas","alas2"]' specified "alas" "alas2" configs
|
||||
Run: null
|
||||
# --no-sandbox. https://github.com/electron/electron/issues/30966
|
||||
# Some Windows systems cannot call the GPU normally for virtualization, and you need to manually turn off sandbox mode
|
||||
NoSandbox: false
|
||||
|
||||
@@ -157,3 +157,6 @@ Deploy:
|
||||
# '["alas"]' specified "alas" config
|
||||
# '["alas","alas2"]' specified "alas" "alas2" configs
|
||||
Run: null
|
||||
# --no-sandbox. https://github.com/electron/electron/issues/30966
|
||||
# Some Windows systems cannot call the GPU normally for virtualization, and you need to manually turn off sandbox mode
|
||||
NoSandbox: false
|
||||
|
||||
@@ -157,3 +157,6 @@ Deploy:
|
||||
# '["alas"]' specified "alas" config
|
||||
# '["alas","alas2"]' specified "alas" "alas2" configs
|
||||
Run: null
|
||||
# --no-sandbox. https://github.com/electron/electron/issues/30966
|
||||
# Some Windows systems cannot call the GPU normally for virtualization, and you need to manually turn off sandbox mode
|
||||
NoSandbox: false
|
||||
|
||||
@@ -81,3 +81,5 @@ export const dpiScaling =
|
||||
Boolean(config.Deploy.Webui.DpiScaling) || config.Deploy.Webui.DpiScaling === undefined;
|
||||
|
||||
export const webuiTheme = ThemeObj[Theme] || 'light';
|
||||
|
||||
export const noSandbox = config.Deploy.Webui.NoSandbox;
|
||||
|
||||
@@ -4,6 +4,7 @@ import {createApp} from '/@/createApp';
|
||||
// import {join} from 'path';
|
||||
import logger from '/@/logger';
|
||||
import {createMainWindow} from '/@/createMainWindow';
|
||||
import {noSandbox} from '/@/config';
|
||||
// import {restoreWindow} from "/@/mainWindow";
|
||||
|
||||
/**
|
||||
@@ -33,7 +34,7 @@ app.commandLine.appendSwitch('disable-gpu-compositing');
|
||||
app.commandLine.appendSwitch('disable-gpu-rasterization');
|
||||
app.commandLine.appendSwitch('disable-gpu-sandbox');
|
||||
app.commandLine.appendSwitch('in-process-gpu');
|
||||
app.commandLine.appendSwitch('--no-sandbox');
|
||||
noSandbox && app.commandLine.appendSwitch('no-sandbox');
|
||||
|
||||
/**
|
||||
*Set App Error Log Path
|
||||
@@ -110,15 +111,14 @@ app
|
||||
.then(createApp)
|
||||
.catch(e => {
|
||||
logger.error('Failed create window:' + e);
|
||||
console.error('Failed create window:', e);
|
||||
});
|
||||
|
||||
app.on('activate', () => {
|
||||
logger.info('------activate------');
|
||||
app.on('activate', async () => {
|
||||
logger.info('------app activate------');
|
||||
const [curWindow] = BrowserWindow.getAllWindows();
|
||||
if (!curWindow) {
|
||||
logger.info('------createApp------');
|
||||
createApp();
|
||||
await createApp();
|
||||
} else {
|
||||
logger.info('------curWindow.focus------');
|
||||
curWindow.focus();
|
||||
|
||||
1
webapp/types/index.d.ts
vendored
1
webapp/types/index.d.ts
vendored
@@ -64,6 +64,7 @@ declare interface DefAlasConfig {
|
||||
Password: null | string;
|
||||
CDN: boolean;
|
||||
Run: null | string;
|
||||
NoSandbox: boolean;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user