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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
6 additions and
4 deletions
-
app/main.dev.js
-
package.json
|
|
@ -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
|
|
|
|
|
|
@ -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/", |
|
|
|