Skip to content

Commit fd7f9ea

Browse files
committed
fix: update signing key generation script and dependencies; bump version to 0.2.9
1 parent 349ad92 commit fd7f9ea

File tree

3 files changed

+15
-9
lines changed

3 files changed

+15
-9
lines changed

generate-keys.sh

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,28 @@
55

66
echo "🔐 Generating update signing keys for Tauri..."
77

8-
# Verifica se tauri CLI è disponibile
9-
if ! command -v tauri &> /dev/null; then
10-
echo "❌ Tauri CLI not found. Please install it first:"
11-
echo "npm install --save-dev @tauri-apps/cli@latest"
8+
# Verifica se npm è disponibile
9+
if ! command -v npm &> /dev/null; then
10+
echo "❌ npm not found. Please install Node.js first."
1211
exit 1
1312
fi
1413

14+
# Controlla se è stata passata l'opzione --force
15+
FORCE_OPTION=""
16+
if [[ "$@" == *"--force"* ]]; then
17+
FORCE_OPTION="--force"
18+
echo "⚠️ Force option detected. Will overwrite existing keys."
19+
fi
20+
1521
# Genera le chiavi di firma
1622
echo "📝 Generating signing keypair..."
17-
tauri signer generate -w ~/.tauri/tempo_signing_key
23+
npx tauri signer generate -w ~/.tauri/tempo_signing_key $FORCE_OPTION
1824

1925
if [ $? -eq 0 ]; then
2026
echo "✅ Keys generated successfully!"
2127
echo ""
2228
echo "🔑 Your public key is:"
23-
tauri signer sign -k ~/.tauri/tempo_signing_key --password "" | head -1
29+
npx tauri signer sign -k ~/.tauri/tempo_signing_key --password "" | head -1
2430
echo ""
2531
echo "📋 Next steps:"
2632
echo "1. Copy the public key above"

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"endpoints": [
5959
"https://api.github.com/repos/murdercode/presto/releases/latest"
6060
],
61-
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IEIwQTUwNDBBQkRENTBDQjgKUldT\nNEROVzlDZ1Nsc0Q4eExoSG5jbjE1N1ppLzZRYUFvUUNqR1VYQmJFaEpvcFpjV3c4VDljSHoK",
61+
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IENCNDYxMDAyQjIxQkM4MjAKUldRZ3lCdXlBaEJHeXp3bnRHYWRwOVM2WFo1T3IzMXJWUnlJYUtwWlEzcnBKVHpnaXpJNjhmK1gK",
6262
"dangerousInsecureTransportProtocol": false
6363
}
6464
}

0 commit comments

Comments
 (0)