Skip to content

Commit 507bf74

Browse files
Update bash.sh
1 parent 8d681fa commit 507bf74

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

var/www/repo/bash.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,19 @@ scp myapp-2.0.0.aura repo@auraos.org:/var/www/repo/stable/
1414
1515
# Update repo index
1616
ssh repo@auraos.org "apm-repo"
17+
18+
# Generate Aura signing key
19+
gpg --quick-gen-key "AuraOS Repo <repo@auraos.org>" rsa4096 sign 1y
20+
21+
# Export public key for clients
22+
gpg --armor --export "AuraOS Repo" > /var/www/repo/keys/aura-public.gpg
23+
24+
# Import repo public key (once)
25+
gpg --import aura-public.gpg
26+
27+
# Install package
28+
apm install hello-world
29+
30+
# apm verifies:
31+
# - SHA256 hash from index.json
32+
# - GPG signature on package + index

0 commit comments

Comments
 (0)