Browse Source

feature(zap): allow app to be resizable with a min height/width

renovate/lint-staged-8.x
Jack Mallers 7 years ago
parent
commit
181d308441
  1. 8
      app/main.dev.js
  2. 2
      package.json

8
app/main.dev.js

@ -81,11 +81,15 @@ 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.maximize()
mainWindow.loadURL(`file://${__dirname}/app.html`)

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