Skip to content

Commit 8096be5

Browse files
committed
ci: linux signing key gen
1 parent e9313ce commit 8096be5

3 files changed

Lines changed: 18 additions & 6 deletions

File tree

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,8 +311,12 @@ jobs:
311311
sudo mv minisign-linux/x86_64/minisign /usr/local/bin/
312312
minisign -v
313313
314-
# Write private key to temp file
315-
echo "$TAURI_PRIVATE_KEY" > /tmp/tauri_private.key
314+
# Decode base64-encoded private key
315+
echo "$TAURI_PRIVATE_KEY" | base64 -d > /tmp/tauri_private.key
316+
317+
# Debug: show key file info (not contents)
318+
echo "Key file size: $(wc -c < /tmp/tauri_private.key) bytes"
319+
echo "Key file lines: $(wc -l < /tmp/tauri_private.key)"
316320
317321
# Sign the AppImage
318322
APPIMAGE_PATH="./src-electron/dist/${{ env.OUTPUT_FILENAME }}"

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,8 +360,12 @@ jobs:
360360
sudo mv minisign-linux/x86_64/minisign /usr/local/bin/
361361
minisign -v
362362
363-
# Write private key to temp file
364-
echo "$TAURI_PRIVATE_KEY" > /tmp/tauri_private.key
363+
# Decode base64-encoded private key
364+
echo "$TAURI_PRIVATE_KEY" | base64 -d > /tmp/tauri_private.key
365+
366+
# Debug: show key file info (not contents)
367+
echo "Key file size: $(wc -c < /tmp/tauri_private.key) bytes"
368+
echo "Key file lines: $(wc -l < /tmp/tauri_private.key)"
365369
366370
# Sign the AppImage
367371
APPIMAGE_PATH="./src-electron/dist/${{ env.OUTPUT_FILENAME }}"

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,8 +311,12 @@ jobs:
311311
sudo mv minisign-linux/x86_64/minisign /usr/local/bin/
312312
minisign -v
313313
314-
# Write private key to temp file
315-
echo "$TAURI_PRIVATE_KEY" > /tmp/tauri_private.key
314+
# Decode base64-encoded private key
315+
echo "$TAURI_PRIVATE_KEY" | base64 -d > /tmp/tauri_private.key
316+
317+
# Debug: show key file info (not contents)
318+
echo "Key file size: $(wc -c < /tmp/tauri_private.key) bytes"
319+
echo "Key file lines: $(wc -l < /tmp/tauri_private.key)"
316320
317321
# Sign the AppImage
318322
APPIMAGE_PATH="./src-electron/dist/${{ env.OUTPUT_FILENAME }}"

0 commit comments

Comments
 (0)