diff --git a/index.js b/index.js index cdf2450a..335f50eb 100644 --- a/index.js +++ b/index.js @@ -9,7 +9,7 @@ serve = args.some(val => val === '--serve'); function createWindow() { win = new BrowserWindow({ - x: 1280 / 2, + x: 100, y: 100, width: 1280, height: 720, @@ -19,19 +19,11 @@ function createWindow() { icon: path.join(__dirname, 'src/assets/icons/ico/simpleos.ico') }); win.setMenu(null); - if (serve) { - require('electron-reload')(__dirname, { - electron: require(__dirname + 'node_modules/electron') - }); - win.loadURL('http://localhost:7868'); - } else { - win.loadURL(url.format({ - pathname: path.join(__dirname, 'ng-dist', 'index.html'), - protocol: 'file:', - slashes: true - })); - } - // win.webContents.openDevTools(); + win.loadURL(url.format({ + pathname: path.join(__dirname, 'ng-dist', 'index.html'), + protocol: 'file:', + slashes: true + })); win.on('closed', () => { win = null }); diff --git a/package.json b/package.json index 72c5872f..166fee86 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ }, "repository": "https://github.com/eosrio/simpleos", "license": "UNLICENSED", - "version": "0.3.3", + "version": "0.3.4", "scripts": { "ng": "ng", "start": "ng serve --port 7878", @@ -16,13 +16,12 @@ "build:prod": "ng build --prod", "pack": "electron-builder --dir", "dist": "electron-builder", + "publish": "electron-builder build --win -p always", "test": "ng test", "lint": "ng lint", "e2e": "ng e2e", "build-watch": "ng build --prod --watch", - "postinstall": "node patch.js && electron-builder install-app-deps", - "package": "electron-forge package", - "make": "electron-forge make" + "postinstall": "node patch.js && electron-builder install-app-deps" }, "private": true, "main": "index.js",