Skip to content

Commit 0dea066

Browse files
fix(ci): fix Windows build path and add Taskfile to CI
- Use npm --prefix for beforeBuildCommand/beforeDevCommand since Tauri runs these from projectPath (crates/mt-tauri/), not repo root - Add go-task/setup-task@v1 to setup-tauri-build action Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 1555a02 commit 0dea066

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

.github/actions/setup-tauri-build/action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ runs:
3737
choco install cmake --installargs 'ADD_CMAKE_TO_PATH=System' -y
3838
choco install rustup.install -y
3939
40+
- name: Install Task
41+
uses: go-task/setup-task@v1
42+
4043
- name: Setup Node.js
4144
uses: actions/setup-node@v6
4245
with:

crates/mt-tauri/tauri.conf.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"version": "0.1.0",
55
"identifier": "com.mt.desktop",
66
"build": {
7-
"beforeDevCommand": "npm run dev",
8-
"beforeBuildCommand": "npm run build",
7+
"beforeDevCommand": "npm --prefix ../../app/frontend run dev",
8+
"beforeBuildCommand": "npm --prefix ../../app/frontend run build",
99
"devUrl": "http://localhost:5173",
1010
"frontendDist": "../../app/frontend/dist"
1111
},

0 commit comments

Comments
 (0)