Setup to test electron v11 in Windows

This commit is contained in:
Daniel Sanchez 2021-04-16 13:24:32 +02:00
parent aadf6b92f4
commit f5ffb1e8a2
4 changed files with 8 additions and 9 deletions

View File

@ -52,7 +52,7 @@ jobs:
- name: Install Node.js, NPM and Yarn - name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v2 uses: actions/setup-node@v2
with: with:
node-version: 14 node-version: 12
- name: Run yarn install - name: Run yarn install
run: yarn install --frozen-lockfile --network-concurrency 1 run: yarn install --frozen-lockfile --network-concurrency 1

View File

@ -143,8 +143,7 @@
}, },
"resolutions": { "resolutions": {
"@babel/core": "^7.12.0", "@babel/core": "^7.12.0",
"sass-loader": "^9.0.0", "sass-loader": "^9.0.0"
"electron": "^11.0.1"
}, },
"browserslist": { "browserslist": {
"production": [ "production": [
@ -260,7 +259,7 @@
"cross-env": "^7.0.3", "cross-env": "^7.0.3",
"dotenv": "^8.2.0", "dotenv": "^8.2.0",
"dotenv-expand": "^5.1.0", "dotenv-expand": "^5.1.0",
"electron": "^11.0.1", "electron": "11.2.3",
"electron-builder": "22.10.5", "electron-builder": "22.10.5",
"electron-notarize": "1.0.0", "electron-notarize": "1.0.0",
"eslint": "^7.17.0", "eslint": "^7.17.0",

View File

@ -106,9 +106,9 @@ function createWindow(port = DEFAULT_PORT) {
if (isDev) { if (isDev) {
// Open the DevTools. // Open the DevTools.
mainWindow.webContents.openDevTools()
//BrowserWindow.addDevToolsExtension('<location to your react chrome extension>'); //BrowserWindow.addDevToolsExtension('<location to your react chrome extension>');
} }
mainWindow.webContents.openDevTools()
mainWindow.setMenu(null) mainWindow.setMenu(null)
mainWindow.setMenuBarVisibility(false) mainWindow.setMenuBarVisibility(false)

View File

@ -8681,10 +8681,10 @@ electron-updater@4.3.8:
lodash.isequal "^4.5.0" lodash.isequal "^4.5.0"
semver "^7.3.4" semver "^7.3.4"
electron@^11.0.1: electron@11.2.3:
version "11.4.2" version "11.2.3"
resolved "https://registry.yarnpkg.com/electron/-/electron-11.4.2.tgz#02005d9f5d77ea6485efeffdb5c5433c769ddda4" resolved "https://registry.yarnpkg.com/electron/-/electron-11.2.3.tgz#8ad1d9858436cfca0e2e5ea7fea326794ae58ebb"
integrity sha512-P0PRLH7cXp8ZdpA9yVPe7jRVM+QeiAtsadqmqS6XY3AYrsH+7bJnVrNuw6p/fcmp+b/UxWaCexobqQpyFJ5Qkw== integrity sha512-6yxOc42nDAptHKNlUG/vcOh2GI9x2fqp2nQbZO0/3sz2CrwsJkwR3i3oMN9XhVJaqI7GK1vSCJz0verOkWlXcQ==
dependencies: dependencies:
"@electron/get" "^1.0.1" "@electron/get" "^1.0.1"
"@types/node" "^12.0.12" "@types/node" "^12.0.12"