From 181d308441361f6af56ade38c438e92541c0ab3a Mon Sep 17 00:00:00 2001 From: Jack Mallers Date: Thu, 11 Jan 2018 16:36:39 -0600 Subject: [PATCH] feature(zap): allow app to be resizable with a min height/width --- app/main.dev.js | 8 ++++++-- package.json | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/app/main.dev.js b/app/main.dev.js index 43a1ea50..b5dcbf8e 100644 --- a/app/main.dev.js +++ b/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`) diff --git a/package.json b/package.json index a263e257..0323a9a3 100644 --- a/package.json +++ b/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/",