Skip to content

Commit 1d70f55

Browse files
committed
Downgrade Linux to Electron 37.10.3
See #451
1 parent 001de25 commit 1d70f55

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ jobs:
378378
- name: Build documentation
379379
run: npm run docs:build-embed
380380
- name: Build app
381-
run: npx electron-builder build --${{ matrix.arch.electronArch }} -l ${{ matrix.format }} --publish never
381+
run: npx electron-builder build -c.electronVersion=37.10.3 --${{ matrix.arch.electronArch }} -l ${{ matrix.format }} --publish never
382382
env:
383383
NODE_OPTIONS: --max-old-space-size=4096
384384
- name: Prepare artifact
@@ -576,7 +576,7 @@ jobs:
576576
- name: Build documentation
577577
run: npm run docs:build-embed
578578
- name: Build app
579-
run: npx electron-builder build --publish never --${{ matrix.arch }} -l dir
579+
run: npx electron-builder build -c.electronVersion=37.10.3 --publish never --${{ matrix.arch }} -l dir
580580
env:
581581
ASCOPE_DISTRIBUTION: WPILIB
582582
NODE_OPTIONS: --max-old-space-size=4096

CONTRIBUTING.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ The following tasks are defined in `package.json` to assist with development:
7070

7171
- `npm start`: Runs the application in development mode.
7272
- `npm run build`: Full production build. Compiles code, builds WebAssembly, builds documentation, and packages the Electron app.
73+
- `npm run build-linux`: Full production build for Linux. Runs an alternative version of Electron that works correctly on Wayland (to be fixed in the future).
7374
- `npm run fast-build`: Compiles and packages the application into a directory (unpacked) rather than an installer. Useful for quick local testing of the production build.
7475
- `npm run compile`: Runs Rollup to compile the TypeScript source bundles.
7576
- `npm run wasm:compile`: Compiles the C++ logic to WebAssembly (requires Emscripten).

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"start": "electron bundles/main.js",
1515
"compile": "rollup -c --configMain && rollup -c --configLargeRenderers && rollup -c --configSmallRenderers && rollup -c --configWorkers && rollup -c --configXR",
1616
"build": "npm run compile && npm run wasm:compile && npm run docs:build-embed && electron-builder build",
17+
"build-linux": "npm run compile && npm run wasm:compile && npm run docs:build-embed && electron-builder build -c.electronVersion=37.10.3",
1718
"fast-build": "npm run compile && npm run wasm:compile && npm run docs:build-embed && electron-builder build --dir",
1819
"watch": "rollup -c -w",
1920
"download-owlet": "rollup -c --configRunOwletDownload && node runOwletDownload.js",

0 commit comments

Comments
 (0)