mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-28 23:26:00 +00:00
electron build
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
const net = require('net');
|
||||
const port = process.env.PORT ? (process.env.PORT - 100) : 3000;
|
||||
const port = 5000;
|
||||
|
||||
process.env.ELECTRON_START_URL = `http://localhost:${port}`;
|
||||
|
||||
@@ -12,7 +12,7 @@ const tryConnection = () => client.connect({port: port}, () => {
|
||||
console.log('starting electron');
|
||||
startedElectron = true;
|
||||
const exec = require('child_process').exec;
|
||||
const electron = exec('npm run electron');
|
||||
const electron = exec('yarn electron');
|
||||
electron.stdout.on("data", function(data) {
|
||||
console.log("stdout: " + data.toString());
|
||||
});
|
||||
|
||||
@@ -26,7 +26,7 @@ function createWindow() {
|
||||
// mainWindow.loadURL('http://localhost:3000');
|
||||
|
||||
// Open the DevTools.
|
||||
mainWindow.webContents.openDevTools();
|
||||
// mainWindow.webContents.openDevTools();
|
||||
|
||||
// Emitted when the window is closed.
|
||||
mainWindow.on('closed', function () {
|
||||
Reference in New Issue
Block a user