Browse Source

Merge pull request #182 from LN-Zap/fix/resizable-app

Fix/resizable app
renovate/lint-staged-8.x
JimmyMow 7 years ago
committed by GitHub
parent
commit
45b793ec3f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      app/main.dev.js
  2. 2
      package.json

8
app/main.dev.js

@ -81,12 +81,14 @@ app.on('ready', async () => {
console.log('icon: ', icon)
mainWindow = new BrowserWindow({
show: false,
frame: false,
frame: true,
width: 700,
height: 1100,
minHeight: 700,
minWidth: 1100,
icon: icon
})
mainWindow.maximize()
mainWindow.loadURL(`file://${__dirname}/app.html`)
// @TODO: Use 'ready-to-show' event

2
package.json

@ -19,7 +19,7 @@
"package": "npm run build && build --publish never",
"package-all": "npm run build && build -mwl",
"package-linux": "npm run build && build --linux",
"package-win": "npm run build && build --win --x64",
"package-win": "npm run build && build --win",
"postinstall": "concurrently \"npm run flow-typed\" \"npm run build-dll\" \"electron-builder install-app-deps\" \"node node_modules/fbjs-scripts/node/check-dev-engines.js package.json\"",
"prestart": "npm run build",
"start": "cross-env NODE_ENV=production electron ./app/",

Loading…
Cancel
Save