Revert "Update electron to 30.0.0"

This commit is contained in:
Fedor Indutny 2024-04-19 00:20:52 +02:00 committed by GitHub
parent e5aef6ad44
commit 6a3438f5a8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 16 additions and 23 deletions

View file

@ -30,7 +30,7 @@ jobs:
- name: Setup node.js
uses: actions/setup-node@v3
with:
node-version: '20.11.1'
node-version: '20.9.0'
- name: Install global dependencies
run: npm install -g yarn@1.22.10 npm@10.2.5

View file

@ -21,7 +21,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '20.11.1'
node-version: '20.9.0'
- run: npm install -g yarn@1.22.10 npm@10.2.5
- name: Cache Desktop node_modules
@ -78,7 +78,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '20.11.1'
node-version: '20.9.0'
- run: npm install -g yarn@1.22.10 npm@10.2.5
@ -130,7 +130,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '20.11.1'
node-version: '20.9.0'
- run: sudo apt-get install xvfb
- run: npm install -g yarn@1.22.10 npm@10.2.5
@ -197,7 +197,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '20.11.1'
node-version: '20.9.0'
- run: npm install -g yarn@1.22.10 npm@10.2.5 node-gyp@10.0.1
# Set things up so @nodert-win10-rs4 dependencies build properly
@ -306,7 +306,7 @@ jobs:
- name: Setup node.js
uses: actions/setup-node@v3
with:
node-version: '20.11.1'
node-version: '20.9.0'
- name: Install global dependencies
run: npm install -g yarn@1.22.10 npm@10.2.5

View file

@ -15,7 +15,7 @@ jobs:
fetch-depth: 0 # fetch all history
- uses: actions/setup-node@v3
with:
node-version: '20.11.1'
node-version: '20.9.0'
- run: npm install -g yarn@1.22.10 npm@10.2.5
- name: Cache danger node_modules
id: cache-desktop-modules

View file

@ -16,7 +16,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '20.11.1'
node-version: '20.9.0'
cache: 'yarn'
- name: Install global dependencies
run: npm install -g yarn@1.22.10 npm@10.2.5

2
.nvmrc
View file

@ -1 +1 @@
20.11.1
20.9.0

View file

@ -31,12 +31,6 @@ function _createPermissionHandler(
// We default 'media' permission to false, but the user can override that for
// the microphone and camera.
if (permission === 'media') {
// Pacifying typescript because it is always there for 'media' permission
if (!('mediaTypes' in details)) {
callback(false);
return;
}
if (
details.mediaTypes?.includes('audio') ||
details.mediaTypes?.includes('video')

View file

@ -291,7 +291,7 @@
"csv-parse": "5.5.2",
"danger": "11.1.2",
"debug": "4.3.3",
"electron": "30.0.0",
"electron": "29.1.5",
"electron-builder": "24.6.3",
"electron-mocha": "12.2.0",
"endanger": "7.0.4",
@ -354,7 +354,7 @@
"read-last-lines/mz/thenify-all/thenify": "3.3.1"
},
"engines": {
"node": "20.11.1"
"node": "20.9.0"
},
"build": {
"appId": "org.whispersystems.signal-desktop",

View file

@ -44,8 +44,7 @@ export async function afterPack({
// Disables the --inspect and --inspect-brk family of CLI options
[FuseV1Options.EnableNodeCliInspectArguments]: enableInspectArguments,
// Enables validation of the app.asar archive on macOS
[FuseV1Options.EnableEmbeddedAsarIntegrityValidation]:
electronPlatformName === 'darwin',
[FuseV1Options.EnableEmbeddedAsarIntegrityValidation]: true,
// Enforces that Electron will only load your app from "app.asar" instead of
// its normal search paths
[FuseV1Options.OnlyLoadAppFromAsar]: true,

View file

@ -9259,10 +9259,10 @@ electron-window@^0.8.0:
dependencies:
is-electron-renderer "^2.0.0"
electron@30.0.0:
version "30.0.0"
resolved "https://registry.yarnpkg.com/electron/-/electron-30.0.0.tgz#6b72a27dcc46759fac5f12e147ef64554e596391"
integrity sha512-GRwKphq/TUhSlb44OwSckXKl50f5OR/pm9MvF3rBLyqcxwfu7L11xejrZ0hDea1eKyCkzGd4B+cIqaQiDguPEA==
electron@29.1.5:
version "29.1.5"
resolved "https://registry.yarnpkg.com/electron/-/electron-29.1.5.tgz#b745b4d201c1ac9f84d6aa034126288dde34d5a1"
integrity sha512-1uWGRw/ffA62lcrklxGUgVxVtOHojsg/nwsYr+/F9cVjipZJn8iPv/ABGIIexhmUqWcho8BqfTJ4osCBa29gBg==
dependencies:
"@electron/get" "^2.0.0"
"@types/node" "^20.9.0"