Skip to content

Commit beaa32d

Browse files
committed
CI: fix Tauri Linux preview by building web assets and set correct CWD for Tauri before* commands
1 parent 65ea802 commit beaa32d

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ jobs:
7575
librsvg2-dev \
7676
patchelf
7777
78+
- name: Build web assets (Vite)
79+
run: yarn build
80+
7881
- name: Build Tauri (Linux)
7982
uses: tauri-apps/tauri-action@v0
8083
with:

src-tauri/tauri.conf.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
"identifier": "com.betaflight.app",
55
"build": {
66
"beforeDevCommand": "yarn dev",
7+
"beforeDevCommandCwd": "..",
78
"beforeBuildCommand": "yarn build",
9+
"beforeBuildCommandCwd": "..",
810
"devUrl": "http://localhost:8000",
911
"frontendDist": "../dist"
1012
},

0 commit comments

Comments
 (0)