Skip to content

Commit ffecbfc

Browse files
mojtabakarimiclaude
andcommitted
Fix release workflow: clear beforeBuildCommand to avoid path issue
The tauri-action changes cwd to projectPath, making relative paths in beforeBuildCommand fail. Since the frontend is already built in a prior step, we clear the command before running tauri build. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent dbacc88 commit ffecbfc

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,13 @@ jobs:
120120
$conf.bundle.windows.nsis.installMode = "currentUser"
121121
$conf | ConvertTo-Json -Depth 10 | Set-Content src-tauri/tauri.conf.json
122122
123+
- name: Clear beforeBuildCommand (frontend already built)
124+
shell: bash
125+
run: |
126+
cd src-tauri
127+
sed -i 's/"beforeBuildCommand".*/"beforeBuildCommand": "",/' tauri.conf.json
128+
sed -i 's/"beforeDevCommand".*/"beforeDevCommand": "",/' tauri.conf.json
129+
123130
- name: Build Tauri app
124131
if: matrix.target != 'windows-user'
125132
uses: tauri-apps/tauri-action@action-v0.6.1

0 commit comments

Comments
 (0)