1
This commit is contained in:
@@ -111,12 +111,10 @@ function getSplashPath(): string {
|
||||
|
||||
return join(__dirname, '../../public/splash.html');
|
||||
}
|
||||
|
||||
function getIconPath(): string {
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
return join(__dirname, '../../public/icon/icon.png');
|
||||
}
|
||||
|
||||
const bundledIconPath = join(process.resourcesPath, 'app.asar.unpacked/public/icon/icon.png');
|
||||
if (existsSync(bundledIconPath)) {
|
||||
return bundledIconPath;
|
||||
@@ -230,7 +228,7 @@ function startSpringBoot() {
|
||||
}
|
||||
}
|
||||
|
||||
startSpringBoot();
|
||||
// startSpringBoot();
|
||||
|
||||
function stopSpringBoot() {
|
||||
if (!springProcess) return;
|
||||
@@ -268,7 +266,7 @@ function createWindow() {
|
||||
|
||||
Menu.setApplicationMenu(null);
|
||||
mainWindow.setMenuBarVisibility(false);
|
||||
|
||||
|
||||
// 打开开发者工具
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
mainWindow.webContents.openDevTools();
|
||||
@@ -315,7 +313,6 @@ app.whenReady().then(() => {
|
||||
splashWindow.loadFile(splashPath);
|
||||
}
|
||||
|
||||
//11111
|
||||
// setTimeout(() => {
|
||||
// openAppIfNotOpened();
|
||||
// }, 2000);
|
||||
|
||||
Reference in New Issue
Block a user