Skip to content

Commit 1f97dbd

Browse files
committed
fix: decode base64 signing key in workflow
1 parent 3d99429 commit 1f97dbd

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
@@ -83,6 +83,13 @@ jobs:
8383
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
8484
run: |
8585
cd frontend
86+
# Decode the Base64 private key to a file to avoid newline issues
87+
$keyContent = [System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String($env:TAURI_SIGNING_PRIVATE_KEY))
88+
$keyContent | Out-File -FilePath "tauri.key" -Encoding utf8 -NoNewline
89+
90+
# Set the environment variable to the content of the file (or path if Tauri supports it, but content is safer)
91+
$env:TAURI_SIGNING_PRIVATE_KEY = Get-Content "tauri.key" -Raw
92+
8693
npm run tauri build
8794
8895
# Debug: List all files in bundle directory to see if .sig files were created

0 commit comments

Comments
 (0)