mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-21 18:26:32 +00:00
Update electron to 6.0.10
Change-type: patch Changelog-entry: Update electron to 6.0.10
This commit is contained in:
parent
3dd6895662
commit
1626c01ff4
5
Makefile
5
Makefile
@ -182,11 +182,10 @@ test-spectron:
|
|||||||
ETCHER_SPECTRON_ENTRYPOINT="$(ETCHER_SPECTRON_ENTRYPOINT)" mocha $(MOCHA_OPTIONS) tests/spectron
|
ETCHER_SPECTRON_ENTRYPOINT="$(ETCHER_SPECTRON_ENTRYPOINT)" mocha $(MOCHA_OPTIONS) tests/spectron
|
||||||
|
|
||||||
test-gui:
|
test-gui:
|
||||||
electron-mocha $(MOCHA_OPTIONS) --renderer tests/gui
|
electron-mocha $(MOCHA_OPTIONS) --full-trace --no-sandbox --renderer tests/gui
|
||||||
|
|
||||||
test-sdk:
|
test-sdk:
|
||||||
electron-mocha $(MOCHA_OPTIONS) \
|
electron-mocha $(MOCHA_OPTIONS) --full-trace --no-sandbox tests/shared
|
||||||
tests/shared
|
|
||||||
|
|
||||||
test: test-gui test-sdk test-spectron
|
test: test-gui test-sdk test-spectron
|
||||||
|
|
||||||
|
@ -91,7 +91,9 @@ const createMainWindow = () => {
|
|||||||
icon: path.join(__dirname, '..', '..', 'assets', 'icon.png'),
|
icon: path.join(__dirname, '..', '..', 'assets', 'icon.png'),
|
||||||
darkTheme: true,
|
darkTheme: true,
|
||||||
webPreferences: {
|
webPreferences: {
|
||||||
backgroundThrottling: false
|
backgroundThrottling: false,
|
||||||
|
nodeIntegration: true,
|
||||||
|
webviewTag: true
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
1901
npm-shrinkwrap.json
generated
1901
npm-shrinkwrap.json
generated
File diff suppressed because it is too large
Load Diff
14
package.json
14
package.json
@ -56,7 +56,7 @@
|
|||||||
"d3": "^4.13.0",
|
"d3": "^4.13.0",
|
||||||
"debug": "^3.1.0",
|
"debug": "^3.1.0",
|
||||||
"electron-updater": "4.0.6",
|
"electron-updater": "4.0.6",
|
||||||
"etcher-sdk": "^2.0.13",
|
"etcher-sdk": "^2.0.15",
|
||||||
"flexboxgrid": "^6.3.0",
|
"flexboxgrid": "^6.3.0",
|
||||||
"immutable": "^3.8.1",
|
"immutable": "^3.8.1",
|
||||||
"inactivity-timer": "^1.0.0",
|
"inactivity-timer": "^1.0.0",
|
||||||
@ -84,16 +84,16 @@
|
|||||||
"xml2js": "^0.4.17"
|
"xml2js": "^0.4.17"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.2.0",
|
"@babel/core": "^7.6.0",
|
||||||
"@babel/plugin-proposal-function-bind": "^7.2.0",
|
"@babel/plugin-proposal-function-bind": "^7.2.0",
|
||||||
"@babel/preset-env": "^7.2.0",
|
"@babel/preset-env": "^7.6.0",
|
||||||
"@babel/preset-react": "^7.0.0",
|
"@babel/preset-react": "^7.0.0",
|
||||||
"@types/react-dom": "^16.8.4",
|
"@types/react-dom": "^16.8.4",
|
||||||
"acorn": "^6.0.5",
|
"acorn": "^6.0.5",
|
||||||
"angular-mocks": "1.7.6",
|
"angular-mocks": "1.7.6",
|
||||||
"babel-loader": "^8.0.4",
|
"babel-loader": "^8.0.4",
|
||||||
"chalk": "^1.1.3",
|
"chalk": "^1.1.3",
|
||||||
"electron": "3.1.9",
|
"electron": "6.0.10",
|
||||||
"electron-builder": "^22.1.0",
|
"electron-builder": "^22.1.0",
|
||||||
"electron-mocha": "^6.0.4",
|
"electron-mocha": "^6.0.4",
|
||||||
"electron-notarize": "^0.1.1",
|
"electron-notarize": "^0.1.1",
|
||||||
@ -112,7 +112,7 @@
|
|||||||
"mochainon": "^2.0.0",
|
"mochainon": "^2.0.0",
|
||||||
"nock": "^9.2.3",
|
"nock": "^9.2.3",
|
||||||
"node-gyp": "^3.8.0",
|
"node-gyp": "^3.8.0",
|
||||||
"node-sass": "^4.7.2",
|
"node-sass": "^4.12.0",
|
||||||
"omit-deep-lodash": "1.1.4",
|
"omit-deep-lodash": "1.1.4",
|
||||||
"pkg": "^4.3.0",
|
"pkg": "^4.3.0",
|
||||||
"resin-lint": "^3.1.0",
|
"resin-lint": "^3.1.0",
|
||||||
@ -122,8 +122,8 @@
|
|||||||
"ts-loader": "^6.0.4",
|
"ts-loader": "^6.0.4",
|
||||||
"ts-node": "^8.3.0",
|
"ts-node": "^8.3.0",
|
||||||
"typescript": "^3.5.3",
|
"typescript": "^3.5.3",
|
||||||
"webpack": "^4.31.0",
|
"webpack": "^4.40.2",
|
||||||
"webpack-cli": "^3.1.2",
|
"webpack-cli": "^3.3.9",
|
||||||
"webpack-node-externals": "^1.7.2"
|
"webpack-node-externals": "^1.7.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
+ // TODO PR something to electron to pass in the version number for forks
|
+ // TODO PR something to electron to pass in the version number for forks
|
||||||
+ // https://github.com/electron/electron/issues/9058
|
+ // https://github.com/electron/electron/issues/9058
|
||||||
+ try { electron_version = require('electron/package.json').version; }
|
+ try { electron_version = require('electron/package.json').version; }
|
||||||
+ catch (_) { electron_version = '3.1.9'; }
|
+ catch (_) { electron_version = '6.0.10'; }
|
||||||
+ }
|
+ }
|
||||||
+ return get_electron_abi(runtime, electron_version);
|
+ return get_electron_abi(runtime, electron_version);
|
||||||
} else {
|
} else {
|
||||||
|
@ -38,7 +38,7 @@ const commonConfig = {
|
|||||||
options: {
|
options: {
|
||||||
presets: [
|
presets: [
|
||||||
'@babel/preset-react',
|
'@babel/preset-react',
|
||||||
[ '@babel/preset-env', { targets: { electron: '3' } } ]
|
[ '@babel/preset-env', { targets: { electron: '6' } } ]
|
||||||
],
|
],
|
||||||
plugins: [ '@babel/plugin-proposal-function-bind' ],
|
plugins: [ '@babel/plugin-proposal-function-bind' ],
|
||||||
cacheDirectory: true
|
cacheDirectory: true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user