Skip to content

Commit 76e2159

Browse files
Ensure Electron runtime is installed in release workflow
- Reinstall Electron during release if the runtime is missing - Verify the desktop Electron package can be required before packaging
1 parent cf07d06 commit 76e2159

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,14 @@ jobs:
9898
- name: Install dependencies
9999
run: bun install --frozen-lockfile
100100

101+
- name: Ensure Electron runtime is installed
102+
run: |
103+
if ! node -e "require('./apps/desktop/node_modules/electron')" >/dev/null 2>&1; then
104+
rm -rf apps/desktop/node_modules/electron/dist apps/desktop/node_modules/electron/path.txt
105+
bun apps/desktop/node_modules/electron/install.js
106+
fi
107+
node -e "require('./apps/desktop/node_modules/electron')"
108+
101109
- id: release_meta
102110
name: Resolve release version
103111
shell: bash

0 commit comments

Comments
 (0)