Skip to content

Commit facc762

Browse files
committed
fix: tauri private key
1 parent 1a29735 commit facc762

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

.github/workflows/tauri-build-dev.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff 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"

.github/workflows/tauri-build-prod.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff 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"

.github/workflows/tauri-build-staging.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff 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"

0 commit comments

Comments
 (0)