This commit is contained in:
2025-10-09 10:02:37 +08:00
parent 4065da3766
commit db67a99288
7 changed files with 247 additions and 16 deletions

View File

@@ -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);