diff --git a/README.md b/README.md index 121f97d..c8a261f 100644 --- a/README.md +++ b/README.md @@ -4,16 +4,12 @@ The Omarchy ISO is intended to provide a completely offline-capable installation ## Creating the ISO -Run `./bin/omarchy-iso-make` and the output goes into `./out`. +Run `./bin/omarchy-iso-make` and the output goes into `./release`. ## Testing the ISO -Run `./bin/omarchy-iso-boot [out/name.iso]`. +Run `./bin/omarchy-iso-boot [release/omarchy.iso]`. ## Signing the ISO -``` -$ gpg --local-user [GPG Key ID] \ - --output ./out/*.iso.sig \ - --detach-sig ./out/*.iso -``` +Run `./bin/omarchy-iso-sign [gpg-user] [release/omarchy.iso]`. diff --git a/bin/omarchy-iso-sign b/bin/omarchy-iso-sign new file mode 100755 index 0000000..a0bbee8 --- /dev/null +++ b/bin/omarchy-iso-sign @@ -0,0 +1,14 @@ +#!/bin/bash + +if [ $# -eq 0 ]; then + echo "Usage: omarchy-iso-sign [gnupg-user] [release/omarchy.iso]" + exit 1 +fi + +if ! pacman -Q gnupg >/dev/null; then + sudo pacman -S --noconfirm --needed --quiet gnupg + echo "You'll need to generate a new key with: gpg --full-generate-key" + echo "Then get your keyid from: gpg --list-secret-keys --keyid-format=long" +fi + +gpg --local-user $1 --output $2.sig --detach-sig $2