Updated Electron

This commit is contained in:
Devine Lu Linvega 2019-05-26 19:59:27 +09:00
parent 9fa9f0959c
commit df4bf423f0
3 changed files with 5 additions and 28 deletions

View File

@ -1,10 +0,0 @@
{
"extends": "standard",
"env": {
"browser": true,
"node": true
},
"globals": {
"dotgrid": true
}
}

View File

@ -14,13 +14,12 @@ app.on('ready', () => {
minWidth: 320,
minHeight: 320,
backgroundColor: '#000',
icon: path.join(__dirname, { darwin: 'icon.icns', linux: 'icon.png', win32: 'icon.ico' }[process.platform] || 'icon.ico'),
resizable: true,
icon: __dirname + '/icon.ico',
resizable: true,
webPreferences: { zoomFactor: 1.0 },
frame: process.platform !== 'darwin',
skipTaskbar: process.platform === 'darwin',
autoHideMenuBar: process.platform === 'darwin'
autoHideMenuBar: process.platform === 'darwin',
webPreferences: { zoomFactor: 1.0, nodeIntegration: true, backgroundThrottling: false }
})
app.win.loadURL(`file://${__dirname}/sources/index.html`)

View File

@ -20,19 +20,7 @@
"push": "npm run build ; npm run push_theme ; npm run push_osx ; npm run push_linux ; npm run push_win ; npm run clean ; npm run push_status"
},
"devDependencies": {
"electron": "^3.1.4",
"electron-packager": "^13.0.1",
"eslint": "^5.14.0",
"eslint-config-standard": "^12.0.0",
"eslint-plugin-import": "^2.16.0",
"eslint-plugin-node": "^7.0.1",
"eslint-plugin-promise": "^4.0.1",
"eslint-plugin-standard": "^4.0.0"
},
"dependencies": {},
"standard": {
"globals": [
"dotgrid"
]
"electron": "^5.0.1",
"electron-packager": "^13.1.1"
}
}