diff --git a/README.md b/README.md index c8a261f..fbbe696 100644 --- a/README.md +++ b/README.md @@ -13,3 +13,11 @@ Run `./bin/omarchy-iso-boot [release/omarchy.iso]`. ## Signing the ISO Run `./bin/omarchy-iso-sign [gpg-user] [release/omarchy.iso]`. + +## Uploading the ISO + +Run `./bin/omarchy-iso-upload [release/omarchy.iso]`. This requires you've configured rclone (use `rclone config`). + +## Full release of the ISO + +Run `./bin/omarchy-iso-make` to create, test, sign, and upload the ISO in one flow. diff --git a/bin/omarchy-iso-release b/bin/omarchy-iso-release new file mode 100755 index 0000000..acddfc2 --- /dev/null +++ b/bin/omarchy-iso-release @@ -0,0 +1,12 @@ +#!/bin/bash + +BUILD_ROOT=$(realpath "${BASH_SOURCE[0]%/*}/..") +BUILD_RELEASE_PATH="$BUILD_ROOT/release" + +# Make and potentially test the ISO +omarchy-iso-make + +# Sign and upload the latest ISO +latest_iso=$(\ls -t "$BUILD_RELEASE_PATH"/*.iso | head -n1) +omarchy-iso-sign $latest_iso +omarchy-iso-upload $latest_iso diff --git a/bin/omarchy-iso-upload b/bin/omarchy-iso-upload new file mode 100755 index 0000000..79df414 --- /dev/null +++ b/bin/omarchy-iso-upload @@ -0,0 +1,14 @@ +#!/bin/bash + +if [ $# -eq 0 ]; then + echo "Usage: omarchy-iso-upload [release/omarchy.iso]" + exit 1 +fi + +if [[ ! -f ~/.config/rclone.conf ]]; then + echo "You must first configure rclone with the R2 credentials: rclone config" + exit 1 +fi + +rclone copy $1 Omarchy:omarchy/ +rclone copy $1.sig Omarchy:omarchy/