fix(electron): restore packaged desktop app loading (#1095)

* fix(electron): restore packaged desktop app loading

Rebuild and verify Electron native modules before packaging and use the Vite base URL for packaged asset preloads.

* test(preload-utils): cover non-root base urls
This commit is contained in:
Tommaso Casaburi
2026-03-17 17:04:47 +08:00
committed by GitHub
parent f812fe1d18
commit c9bd6258b2
6 changed files with 93 additions and 12 deletions
+13
View File
@@ -252,6 +252,9 @@ jobs:
ls -la build/electron/preload.cjs || exit 1
ls -la build/index.html || exit 1
- name: Rebuild and verify Electron native modules
run: yarn electron:prepare-package
- name: Package Electron app
timeout-minutes: 30
run: |
@@ -314,6 +317,9 @@ jobs:
ls -la build/electron/preload.cjs || exit 1
ls -la build/index.html || exit 1
- name: Rebuild and verify Electron native modules
run: yarn electron:prepare-package
- name: Package Electron app
timeout-minutes: 30
run: |
@@ -376,6 +382,9 @@ jobs:
ls -la build/electron/preload.cjs || exit 1
ls -la build/index.html || exit 1
- name: Rebuild and verify Electron native modules
run: yarn electron:prepare-package
- name: Package Electron app
timeout-minutes: 30
run: |
@@ -439,6 +448,10 @@ jobs:
ls -la build/electron/preload.cjs || exit 1
ls -la build/index.html || exit 1
- name: Rebuild and verify Electron native modules
shell: bash
run: yarn electron:prepare-package
- name: Package Electron app
shell: bash
timeout-minutes: 30