mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 01:36:22 +00:00
Update Electon & Resize Bug
Electron to V 3.0.3 Electron-gh-release to V2.0.4 Fix Bug restore windows size
This commit is contained in:
@@ -49,7 +49,7 @@ function startServer () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function startElectron () {
|
function startElectron () {
|
||||||
spawn(electron, ['--hot', './index.js'])
|
spawn(electron, ['--hot', './index.js'], { stdio: 'inherit' })
|
||||||
.on('close', () => {
|
.on('close', () => {
|
||||||
server.close()
|
server.close()
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -7,13 +7,19 @@ const config = new Config()
|
|||||||
const _ = require('lodash')
|
const _ = require('lodash')
|
||||||
|
|
||||||
var showMenu = process.platform !== 'win32'
|
var showMenu = process.platform !== 'win32'
|
||||||
const windowSize = config.get('windowsize') || { x: null, y: null, width: 1080, height: 720 }
|
const windowSize = config.get('windowsize') || {
|
||||||
|
x: null,
|
||||||
|
y: null,
|
||||||
|
width: 1080,
|
||||||
|
height: 720
|
||||||
|
}
|
||||||
|
|
||||||
const mainWindow = new BrowserWindow({
|
const mainWindow = new BrowserWindow({
|
||||||
x: windowSize.x,
|
x: windowSize.x,
|
||||||
y: windowSize.y,
|
y: windowSize.y,
|
||||||
width: windowSize.width,
|
width: windowSize.width,
|
||||||
height: windowSize.height,
|
height: windowSize.height,
|
||||||
|
useContentSize: true,
|
||||||
minWidth: 500,
|
minWidth: 500,
|
||||||
minHeight: 320,
|
minHeight: 320,
|
||||||
autoHideMenuBar: showMenu,
|
autoHideMenuBar: showMenu,
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
"dev": "node dev-scripts/dev.js"
|
"dev": "node dev-scripts/dev.js"
|
||||||
},
|
},
|
||||||
"config": {
|
"config": {
|
||||||
"electron-version": "2.0.9"
|
"electron-version": "3.0.3"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
@@ -56,7 +56,7 @@
|
|||||||
"codemirror": "^5.39.0",
|
"codemirror": "^5.39.0",
|
||||||
"codemirror-mode-elixir": "^1.1.1",
|
"codemirror-mode-elixir": "^1.1.1",
|
||||||
"electron-config": "^1.0.0",
|
"electron-config": "^1.0.0",
|
||||||
"electron-gh-releases": "^2.0.2",
|
"electron-gh-releases": "^2.0.4",
|
||||||
"escape-string-regexp": "^1.0.5",
|
"escape-string-regexp": "^1.0.5",
|
||||||
"file-uri-to-path": "^1.0.0",
|
"file-uri-to-path": "^1.0.0",
|
||||||
"file-url": "^2.0.2",
|
"file-url": "^2.0.2",
|
||||||
@@ -121,7 +121,7 @@
|
|||||||
"css-loader": "^0.19.0",
|
"css-loader": "^0.19.0",
|
||||||
"devtron": "^1.1.0",
|
"devtron": "^1.1.0",
|
||||||
"dom-storage": "^2.0.2",
|
"dom-storage": "^2.0.2",
|
||||||
"electron": "2.0.9",
|
"electron": "3.0.3",
|
||||||
"electron-packager": "^12.0.0",
|
"electron-packager": "^12.0.0",
|
||||||
"eslint": "^3.13.1",
|
"eslint": "^3.13.1",
|
||||||
"eslint-config-standard": "^6.2.1",
|
"eslint-config-standard": "^6.2.1",
|
||||||
|
|||||||
Reference in New Issue
Block a user