Skip to content

A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.

TypeScript fluxerfluxerapp

chore(desktop): update Electron to 44.9.1 (#3545)

Hampus85c0fc8f79e0
diff --git a/.github/workflows/build-desktop-electron.yaml b/.github/workflows/build-desktop-electron.yaml
index 10a75abd9..7ad53631a 100644
--- a/.github/workflows/build-desktop-electron.yaml
+++ b/.github/workflows/build-desktop-electron.yaml
@@ -6,7 +6,7 @@ on:
prebuilt_release_tag:
description: Draft release containing prebuilt Electron distributions. Leave empty to compile Electron on the build runner instead.
required: false
- default: desktop-electron-runtime-44.4.1-fluxer.1
+ default: desktop-electron-runtime-44.9.1-fluxer.1
type: string
permissions:
@@ -48,8 +48,8 @@ jobs:
with:
name: desktop-electron-linux-${{ matrix.arch }}
path: |
- ${{ runner.temp }}/fluxer-electron-artifacts/electron-v44.4.1-linux-${{ matrix.arch }}.zip
- ${{ runner.temp }}/fluxer-electron-artifacts/electron-v44.4.1-linux-${{ matrix.arch }}.fluxer.json
+ ${{ runner.temp }}/fluxer-electron-artifacts/electron-v44.9.1-linux-${{ matrix.arch }}.zip
+ ${{ runner.temp }}/fluxer-electron-artifacts/electron-v44.9.1-linux-${{ matrix.arch }}.fluxer.json
if-no-files-found: error
retention-days: 30
compression-level: 0
@@ -86,8 +86,8 @@ jobs:
gh release view "$PREBUILT_RELEASE_TAG" --repo "$GITHUB_REPOSITORY" \
--json isDraft --jq '.isDraft' | grep -qx true
gh release download "$PREBUILT_RELEASE_TAG" --repo "$GITHUB_REPOSITORY" \
- --pattern "electron-v44.4.1-linux-$ELECTRON_ARCH.zip" \
- --pattern "electron-v44.4.1-linux-$ELECTRON_ARCH.fluxer.json" \
+ --pattern "electron-v44.9.1-linux-$ELECTRON_ARCH.zip" \
+ --pattern "electron-v44.9.1-linux-$ELECTRON_ARCH.fluxer.json" \
--dir "$FLUXER_ELECTRON_DIST"
node <<'NODE'
const {verifyLinuxElectronArchive} = require('./fluxer_desktop/scripts/custom-electron.cjs');
@@ -101,8 +101,8 @@ jobs:
with:
name: desktop-electron-linux-${{ matrix.arch }}
path: |
- ${{ runner.temp }}/fluxer-electron-artifacts/electron-v44.4.1-linux-${{ matrix.arch }}.zip
- ${{ runner.temp }}/fluxer-electron-artifacts/electron-v44.4.1-linux-${{ matrix.arch }}.fluxer.json
+ ${{ runner.temp }}/fluxer-electron-artifacts/electron-v44.9.1-linux-${{ matrix.arch }}.zip
+ ${{ runner.temp }}/fluxer-electron-artifacts/electron-v44.9.1-linux-${{ matrix.arch }}.fluxer.json
if-no-files-found: error
retention-days: 30
compression-level: 0
diff --git a/fluxer_desktop/electron/build-linux.sh b/fluxer_desktop/electron/build-linux.sh
index e535978ad..e1f20e459 100755
--- a/fluxer_desktop/electron/build-linux.sh
+++ b/fluxer_desktop/electron/build-linux.sh
@@ -1,8 +1,8 @@
#!/usr/bin/env bash
set -euo pipefail
-readonly ELECTRON_VERSION=44.4.1
-readonly ELECTRON_REVISION=09d1a6590e3148a1a2132b07a5b107b7c2414191
+readonly ELECTRON_VERSION=44.9.1
+readonly ELECTRON_REVISION=e02265be96c5e13ae43644ef482b718e1e800499
readonly DEPOT_TOOLS_REVISION=889099791deff38466d471fa6590951c91a1d8ab
readonly BUILD_IMAGE='ghcr.io/electron/build:daad061f4b99a0ae1c841be4aa09188280a9c8a4@sha256:7a161ad561103ebbfb5ff18eaf47cb579ca0c528bb7ec9ed8cad30a41d5fa63e'
readonly PATCH_NAME=fix_synchronize_vaapi_surfaces_before_output.patch
@@ -13,13 +13,13 @@ die() { printf 'Error: %s\n' "$*" >&2; exit 1; }
usage() {
cat <<'USAGE'
-Build patched Electron 44.4.1 on a Linux x64 host with Podman or Docker.
+Build patched Electron 44.9.1 on a Linux x64 host with Podman or Docker.
Usage: build-linux.sh [--arch x64|arm64|all] [--build-root PATH] [--output-dir PATH] [--check]
--arch Target architecture; all builds x64 then arm64 (default: all).
--build-root Dedicated persistent cache, source and output tree.
- Default: ${XDG_CACHE_HOME:-$HOME/.cache}/fluxer/electron-44.4.1
+ Default: ${XDG_CACHE_HOME:-$HOME/.cache}/fluxer/electron-44.9.1
--output-dir Distribution ZIPs and .fluxer.json manifests (default: BUILD_ROOT/artifacts).
--check Validate host resources and configuration without pulling or compiling.
diff --git a/fluxer_desktop/package.json b/fluxer_desktop/package.json
index 95c357c5c..e008a051f 100644
--- a/fluxer_desktop/package.json
+++ b/fluxer_desktop/package.json
@@ -31,7 +31,7 @@
},
"devDependencies": {
"@types/node": "24.13.5",
- "electron": "44.4.1",
+ "electron": "44.9.1",
"electron-builder": "27.0.0-alpha.8",
"esbuild": "catalog:",
"typescript": "catalog:ts7"
diff --git a/fluxer_desktop/scripts/custom-electron.cjs b/fluxer_desktop/scripts/custom-electron.cjs
index 95db5dc4b..7aaae6036 100644
--- a/fluxer_desktop/scripts/custom-electron.cjs
+++ b/fluxer_desktop/scripts/custom-electron.cjs
@@ -6,8 +6,8 @@ const path = require('node:path');
const {promisify} = require('node:util');
const execFileAsync = promisify(execFile);
-const expectedElectronVersion = '44.4.1';
-const expectedElectronRevision = '09d1a6590e3148a1a2132b07a5b107b7c2414191';
+const expectedElectronVersion = '44.9.1';
+const expectedElectronRevision = 'e02265be96c5e13ae43644ef482b718e1e800499';
const chromiumPatchPath = path.join(
__dirname,
'../electron/patches/fix_synchronize_vaapi_surfaces_before_output.patch',
@@ -89,12 +89,7 @@ async function verifyLinuxElectronArchive(directory, arch) {
throw new Error(`Custom Electron manifest ${field} must be ${JSON.stringify(expected)}: ${manifestPath}`);
}
}
- const patchSha256 = await sha256File(chromiumPatchPath);
- const acceptedPatchSha256s = new Set([patchSha256]);
- if (patchSha256 === '21ea23b8a566f3f2dbdb69d0b361039dd9128c5e34a7ae89a8a61d7099808b8e') {
- acceptedPatchSha256s.add('d39d05d4a00cd09eca43c7cd83383eaefa18cae7ec1b7efc26987bdc0f23c83e');
- }
- if (!acceptedPatchSha256s.has(manifest?.chromiumPatchSha256)) {
+ if ((await sha256File(chromiumPatchPath)) !== manifest?.chromiumPatchSha256) {
throw new Error(`Custom Electron manifest chromiumPatchSha256 does not match the current patch: ${manifestPath}`);
}
if (!/^[a-f0-9]{64}$/.test(manifest.archiveSha256)) {
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 39e3d6973..4d76e7700 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -1716,8 +1716,8 @@ importers:
specifier: 24.13.5
version: 24.13.5
electron:
- specifier: 44.4.1
- version: 44.4.1([email protected])
+ specifier: 44.9.1
+ version: 44.9.1([email protected])
electron-builder:
specifier: 27.0.0-alpha.8
version: 27.0.0-alpha.8([email protected])([email protected])
@@ -7646,8 +7646,8 @@ packages:
resolution: {integrity: sha512-bO3y10YikuUwUuDUQRM4KfwNkKhnpVO7IPdbsrejwN9/AABJzzTQ4GeHwyzNSrVO+tEH3/Np255a3sVZpZDjvg==}
engines: {node: '>=8.0.0'}
- resolution: {integrity: sha512-gXJarQ2Utfn8G6bp/IqLXvckOSCtrxPWjFqQaqm02Gf4zYn1aP+RN9PKimoLH/DMqjKLfBrNC4C4CviPv0cXnQ==}
+ resolution: {integrity: sha512-x/tECFFDa2OFNjMObFH0EGKWrCnFZPOR1wP2iMIVt0STecGl8FmDXdaiaryY0kf8mtw9kSLP2yK8dfdaWkfDmw==}
engines: {node: '>= 22.12.0'}
hasBin: true
@@ -16589,7 +16589,7 @@ snapshots:
transitivePeerDependencies:
- supports-color
dependencies:
'@electron-internal/extract-zip': 1.0.5
'@electron/get': 5.1.0([email protected])