Add auto bundle script

This commit is contained in:
2022-04-17 01:26:05 +08:00
parent 8b29654fdf
commit 4f6b1ebbf2
6 changed files with 67 additions and 6 deletions
+2 -2
View File
@@ -52,13 +52,13 @@ class ElectronApp {
webPreferences: { preload }
});
this.simulatorWindow.loadURL(this.serviceUrl);
this.simulatorWindow.loadURL(this.serviceUrl + (ENV.LIVING_TOGETHER_WEB_PATH ?? "/resources/app/"));
this.handelSimulatorWindowBehavior();
app.on('window-all-closed', function () {
if (process.platform !== 'darwin') app.quit()
})
});
}
private handelSimulatorWindowBehavior() {
+1 -1
View File
@@ -42,7 +42,7 @@ class Service {
console.log("Service: service run in port " + this.servicePort);
return "http://127.0.0.1:" + this.servicePort + "/";
return "http://127.0.0.1:" + this.servicePort;
}
}