File tree Expand file tree Collapse file tree 3 files changed +6
-9
lines changed
Expand file tree Collapse file tree 3 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -311,9 +311,8 @@ jobs:
311311 sudo mv minisign-linux/x86_64/minisign /usr/local/bin/
312312 minisign -v
313313
314- # Reconstruct newlines in private key (GitHub secrets lose newlines)
315- # Format: "untrusted comment: rsign encrypted secret key" + newline + base64 key (starts with "RW")
316- echo "$TAURI_PRIVATE_KEY" | sed 's/\(untrusted comment: rsign encrypted secret key\)/\1\n/' > /tmp/tauri_private.key
314+ # Decode base64-encoded private key
315+ echo "$TAURI_PRIVATE_KEY" | base64 -d > /tmp/tauri_private.key
317316
318317 # Debug: show key file info (not contents)
319318 echo "Key file size: $(wc -c < /tmp/tauri_private.key) bytes"
Original file line number Diff line number Diff line change @@ -360,9 +360,8 @@ jobs:
360360 sudo mv minisign-linux/x86_64/minisign /usr/local/bin/
361361 minisign -v
362362
363- # Reconstruct newlines in private key (GitHub secrets lose newlines)
364- # Format: "untrusted comment: rsign encrypted secret key" + newline + base64 key (starts with "RW")
365- echo "$TAURI_PRIVATE_KEY" | sed 's/\(untrusted comment: rsign encrypted secret key\)/\1\n/' > /tmp/tauri_private.key
363+ # Decode base64-encoded private key
364+ echo "$TAURI_PRIVATE_KEY" | base64 -d > /tmp/tauri_private.key
366365
367366 # Debug: show key file info (not contents)
368367 echo "Key file size: $(wc -c < /tmp/tauri_private.key) bytes"
Original file line number Diff line number Diff line change @@ -311,9 +311,8 @@ jobs:
311311 sudo mv minisign-linux/x86_64/minisign /usr/local/bin/
312312 minisign -v
313313
314- # Reconstruct newlines in private key (GitHub secrets lose newlines)
315- # Format: "untrusted comment: rsign encrypted secret key" + newline + base64 key (starts with "RW")
316- echo "$TAURI_PRIVATE_KEY" | sed 's/\(untrusted comment: rsign encrypted secret key\)/\1\n/' > /tmp/tauri_private.key
314+ # Decode base64-encoded private key
315+ echo "$TAURI_PRIVATE_KEY" | base64 -d > /tmp/tauri_private.key
317316
318317 # Debug: show key file info (not contents)
319318 echo "Key file size: $(wc -c < /tmp/tauri_private.key) bytes"
You can’t perform that action at this time.
0 commit comments