Skip to content

Commit 4d8b810

Browse files
committed
Refactor Windows build process with structured config
- Refactor Windows build step to utilize structured configuration for better maintainability. - Update Tauri build command syntax to align with new configuration standards. - Enhance release step to support merging of downloaded artifacts for streamlined deployments.
1 parent bb92a47 commit 4d8b810

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ jobs:
9696
yarn install
9797
$VERSION = node -p "require('./package.json').version"
9898
$env:TAURI_BUNDLE_NSI = "true"
99-
yarn tauri build -c '{\"version\":\"'$VERSION'\"}' -t ${{ matrix.target }} --bundles nsis
99+
$CONFIG = @{version=$VERSION} | ConvertTo-Json -Compress
100+
yarn tauri build --config $CONFIG -t ${{ matrix.target }} --bundles nsis
100101
if ($LASTEXITCODE -ne 0) {
101102
throw "Tauri build failed with exit code $LASTEXITCODE"
102103
}

0 commit comments

Comments
 (0)