Skip to content

Commit 64122c0

Browse files
committed
fix(ci): fix dashboard build command and use bunx tauri instead of cargo install
- beforeBuildCommand now runs 'bun run build' (vite) instead of building the plugin, so ../dist contains the frontend assets - Use 'bunx tauri' instead of 'cargo install tauri-cli' to avoid 10-minute compilation from source
1 parent e6b131e commit 64122c0

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

.github/workflows/dashboard-release.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,12 @@ jobs:
5454
- name: Install dependencies
5555
run: bun install
5656

57-
- name: Install Tauri CLI
58-
run: cargo install tauri-cli --version "^2"
59-
6057
- name: Build and upload artifacts
6158
uses: tauri-apps/tauri-action@v0
6259
timeout-minutes: 30
6360
with:
6461
projectPath: packages/dashboard
65-
tauriScript: cargo tauri
62+
tauriScript: bunx tauri
6663
args: --target ${{ matrix.settings.target }}
6764
updaterJsonPreferNsis: true
6865
tagName: ${{ github.ref_name }}

packages/dashboard/src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"build": {
77
"beforeDevCommand": "bun run dev:frontend",
88
"devUrl": "http://localhost:1420",
9-
"beforeBuildCommand": "bun run --cwd .. build",
9+
"beforeBuildCommand": "bun run build",
1010
"frontendDist": "../dist"
1111
},
1212
"app": {

0 commit comments

Comments
 (0)