From f19dd0867a287b73d9cb8063a52e9118a84f5355 Mon Sep 17 00:00:00 2001 From: rickpeters Date: Tue, 29 Sep 2026 22:11:32 +0200 Subject: [PATCH] feat: the ISO's file is named after its release tag (steamify-cachyos-2.9.3-dev.2026.09.29-2230-x86_64.iso), so the GitHub release links straight to the ISO and its SHA-256 on the mirror --- .github/workflows/iso-release.yml | 7 +++++-- .github/workflows/steamify-iso.yml | 2 ++ CHANGELOG.md | 2 +- archiso/profiledef.sh | 5 ++++- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/iso-release.yml b/.github/workflows/iso-release.yml index dc174d9..6444144 100644 --- a/.github/workflows/iso-release.yml +++ b/.github/workflows/iso-release.yml @@ -38,11 +38,14 @@ jobs: else tag="v$steamify-dev.$stamp" pre="--prerelease" name="CachyOS with Steamify Live ISO $steamify (test build $stamp)" fi + # The ISO's file on the mirror is named after the tag (steamify-iso.yml, profiledef.sh), so its + # download link is known now. + file="steamify-cachyos-${tag#v}-x86_64.iso" dl="$GITEA_URL/$GITEA_REPO/releases/download/$tag" # The Steamify section of CHANGELOG.md ("## CachyOS with Steamify Live ISO"), without its heading. section="$(awk '/^## CachyOS with Steamify Live ISO/ {found = 1; next} found && /^#/ {exit} found' CHANGELOG.md)" - notes="The ISO is built from \`$(git rev-parse --short HEAD)\` (${{ github.ref_name }}) with Steamify $steamify and published on the mirror (GitHub releases take at most 2 GB per file); it appears there within minutes of the mirror's sync: + notes="The ISO is built from \`$(git rev-parse --short HEAD)\` (${{ github.ref_name }}) with Steamify $steamify and published on the mirror (GitHub releases take at most 2 GB per file), about half an hour after this release (the mirror's sync, then the build): - **Download: $GITEA_URL/$GITEA_REPO/releases/tag/$tag** + **Download: [$file]($dl/$file)** ([SHA-256]($dl/$file.sha256), [release page]($GITEA_URL/$GITEA_REPO/releases/tag/$tag)) Sources: [Steamify](https://github.com/theupriser/steamify-cachyos/tree/v$steamify), this repository at this tag, and the packages' sources at [CachyOS](https://github.com/CachyOS) and [Arch Linux](https://archlinux.org/packages/). diff --git a/.github/workflows/steamify-iso.yml b/.github/workflows/steamify-iso.yml index f8574ce..ecd7f38 100644 --- a/.github/workflows/steamify-iso.yml +++ b/.github/workflows/steamify-iso.yml @@ -49,6 +49,8 @@ jobs: # One moment for the ISO's label (profiledef.sh) and the release's name: the tag's (Dutch time). echo "STEAMIFY_BUILD_STAMP=${m[3]}${m[4]}${m[5]}_${m[6]}" echo "ISO_PRERELEASE=$([ -n "${m[2]}" ] && echo true || echo false)" + # The ISO's file name: the tag without its v (profiledef.sh). + echo "STEAMIFY_ISO_VERSION=${tag#v}" } >> "$GITHUB_ENV" - name: Steamify on the ISO (the version the tag names) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6a48c9a..f53269d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -33,7 +33,7 @@ Releases: GitHub creates the tag and a release with the notes; the ISO itself (o **Features:** -* **ISO:** called `steamify-cachyos--x86_64.iso`, labelled after the Steamify version on it and the build time (`STEAMIFY_2_9_1_20260929_1432`, was CachyOS's `COS_`); CachyOS Hello installs it like CachyOS's own +* **ISO:** named after its release tag (`steamify-cachyos-2.9.3-2026.09.29-2230-x86_64.iso`; built by hand, the date), labelled after the Steamify version on it and the build time (`STEAMIFY_2_9_1_20260929_1432`, was CachyOS's `COS_`); CachyOS Hello installs it like CachyOS's own release (the build date is kept in `/etc/steammachine-iso-build`) * **Installer (CachyOS - Steamify Installer):** * A Steamify page after the packages page: which Steam Machine parts to set up (rows from diff --git a/archiso/profiledef.sh b/archiso/profiledef.sh index c1b322e..63029c6 100644 --- a/archiso/profiledef.sh +++ b/archiso/profiledef.sh @@ -12,7 +12,10 @@ iso_label="STEAMIFY_${_steamify:+${_steamify//./_}_}${_stamp}" iso_label="${iso_label:0:32}" iso_publisher="CachyOS " iso_application="Steamify CachyOS Live (based on CachyOS)" -iso_version="$(date --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%Y.%m.%d)" +# The file name (--x86_64.iso) follows the release tag without its v +# (STEAMIFY_ISO_VERSION from the release workflow: steamify-cachyos-2.9.3-dev.2026.09.29-2230-x86_64.iso); +# built by hand, the date. +iso_version="${STEAMIFY_ISO_VERSION:-$(date --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%Y.%m.%d)}" install_dir="arch" buildmodes=('iso') ## GRUB