feat: owner review 2 phase 1: :latest, Unraid array space, Settings with About, whole-folder import (#9)
CI / Build and test (push) Successful in 5m11s
CI / Windows tests and installer (push) Skipped
CI / YAML check (push) Successful in 6s
Release / Build, test and publish (push) Successful in 8m57s
CI / PostgreSQL 16 integration (push) Successful in 3m10s
CI / PostgreSQL 17 integration (push) Successful in 3m30s
CI / Docker image (push) Successful in 49s
Release / Server image (push) Successful in 1m4s

- :latest follows the highest stable release, or the highest pre-release while none is stable (Chronos.Tools release-channels); bad tags are refused before anything is built.
- Unraid: CHRONOS_SPACE_PATH and the template's Array view show the array's free space; the write volume (cache) is shown apart; completions check the archive volume (507).
- Settings is a gear, docked at the foot of the admin sidebar; About is the last part of Settings on the desktop and the panel.
- Import > Folder > Whole folder: one sequence per format (desktop only).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Alberto Balbo <alberto.balbo.96@gmail.com>
This commit was merged in pull request #9.
This commit is contained in:
Alby96andClaude Opus 5.5 authored and Alby96 committed 2026-10-27 01:09:59 +01:00
1 parent 5acdf146c7
commit 1f089888e8
320 files changed
+3030 -927

No files matched your search

+44 -18
View File
@@ -1,9 +1,10 @@
name: Release
# A tag vMAJOR.MINOR.PATCH[-PRERELEASE] builds, tests and publishes everything (BRIEF §19.3, amended 2026-10-23, R3)
# A tag vMAJOR.MINOR.PATCH[-PRERELEASE] builds, tests and publishes everything (BRIEF §19.3, amended 2026-10-26, R1)
# on the Linux runner: the Windows programs cross-compiled (installers, portable and server zips), SHA256SUMS and
# release notes on the Gitea release, then the server image in the Gitea container registry. Pre-releases get no
# :latest image and are ignored by the in-app update check.
# release notes on the Gitea release, then the server image in the Gitea container registry. The image's :latest
# follows the highest stable release, or the highest pre-release while no stable one exists; the public releases
# repository and the in-app update check follow stable releases only.
on:
push:
tags: ["v*"]
@@ -48,11 +49,15 @@ jobs:
outputs:
version: ${{ steps.version.outputs.version }}
latest: ${{ steps.publish.outputs.latest }}
image_latest: ${{ steps.publish.outputs.image_latest }}
steps:
- name: Version
id: version
run: |
if [[ ! "$TAG" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z.-]+)?$ ]]; then
# SemVer 2.0 as release-channels reads it (no leading zeros, no empty identifiers), without +BUILD, which an
# image tag cannot hold: a tag it would refuse stops here, before anything is built or published.
semver='^v(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)(-(0|[1-9][0-9]*|[0-9]*[A-Za-z-][0-9A-Za-z-]*)(\.(0|[1-9][0-9]*|[0-9]*[A-Za-z-][0-9A-Za-z-]*))*)?$'
if [[ ! "$TAG" =~ $semver ]]; then
echo "::error title=Release::Tag '$TAG' is not vMAJOR.MINOR.PATCH or vMAJOR.MINOR.PATCH-PRERELEASE"
exit 1
fi
@@ -191,16 +196,36 @@ jobs:
if [ "$TARGET" != "${{ github.repository }}" ]; then token="$RELEASES_TOKEN"; fi
GITEA_TOKEN="$token" dotnet "$TOOLS" gitea-release --server "${{ github.server_url }}" --repo "$TARGET" --tag "$TAG" \
--title "Chronos $VERSION" --notes-file out/release-notes.md --assets out/release --prerelease "$PRERELEASE"
# The public content and the image's :latest follow the highest stable version (not Gitea's "latest", which
# is the most recently created one): re-publishing an older tag or publishing a pre-release never rolls them back.
stable="$(curl -fsS -H "Authorization: token $token" "${{ github.server_url }}/api/v1/repos/$TARGET/releases?draft=false&pre-release=false&limit=50")"
newest="$(printf '%s' "$stable" | grep -o '"tag_name":"v[^"]*"' | cut -d '"' -f 4 | sed 's/^v//' | sort -V | tail -n 1 || true)"
newest="${newest:+v$newest}"
latest=false
if [ "$PRERELEASE" = "false" ] && [ "$newest" = "$TAG" ]; then latest=true; fi
echo "Newest stable release of $TARGET: ${newest:-none}; $TAG moves the public content and :latest: $latest"
echo "latest=$latest" >> "$GITHUB_OUTPUT"
echo "LATEST=$latest" >> "$GITHUB_ENV"
# What this tag moves, by SemVer precedence among all published releases (not Gitea's "latest", which is the
# most recently created one), so re-publishing an older tag never rolls a channel back. latest: the public
# content follows the highest stable release. image_latest: :latest follows it too, or the highest pre-release
# while no stable release exists, so compose and Unraid users find an image from the first pre-release on.
# Gitea lists 50 releases a page, newest first: every page up to the first empty one counts (at most 100).
channels() {
local page file pages=()
for ((page = 1; page <= 100; page++)); do
file="$RUNNER_TEMP/releases-$page.json"
curl -fsS -H "Authorization: token $token" -o "$file" "${{ github.server_url }}/api/v1/repos/$TARGET/releases?draft=false&limit=50&page=$page" || return
pages+=(--releases "$file")
if ! grep -q '"tag_name"' "$file"; then
dotnet "$TOOLS" release-channels --tag "$TAG" "${pages[@]}"
return
fi
done
echo "More than 100 pages of releases." >&2
return 1
}
# The release is already published: when its channels cannot be decided (the list unreadable, or a tag older
# than release-channels, such as v0.1.0-rc.2, whose Chronos.Tools lacks the command) it moves neither.
if ! decided="$(channels)"; then
echo "::warning title=Release::The channels of $TAG could not be decided (see the error above): it moves neither the releases repository nor :latest."
decided="$(printf 'latest=false\nimage_latest=false')"
fi
latest="$(printf '%s\n' "$decided" | sed -n 's/^latest=//p')"
image_latest="$(printf '%s\n' "$decided" | sed -n 's/^image_latest=//p')"
echo "Releases of $TARGET: $TAG moves the public content: $latest; :latest: $image_latest"
{ echo "latest=$latest"; echo "image_latest=$image_latest"; } >> "$GITHUB_OUTPUT"
{ echo "LATEST=$latest"; echo "IMAGE_LATEST=$image_latest"; } >> "$GITHUB_ENV"
# Only with a separate releases repository (RELEASES_REPO and RELEASES_TOKEN, BRIEF §19.4): its README, EULA,
# security policy, issue forms, Unraid template, compose file, i18n/ and SHA256SUMS follow the newest stable
@@ -264,7 +289,7 @@ jobs:
timeout-minutes: 60
env:
VERSION: ${{ needs.release.outputs.version }}
LATEST: ${{ needs.release.outputs.latest }}
IMAGE_LATEST: ${{ needs.release.outputs.image_latest }}
steps:
- name: Checkout
env:
@@ -295,12 +320,13 @@ jobs:
run: |
docker build -f deploy/docker/Dockerfile --build-arg CHRONOS_VERSION="$VERSION" -t "$IMAGE:$VERSION" .
docker push "$IMAGE:$VERSION"
# Compose and Unraid users follow :latest: it moves only to the newest stable release.
if [ "$LATEST" = "true" ]; then
# Compose and Unraid users follow :latest: the highest stable release, or the highest pre-release while no
# stable release exists (release-channels). :nightly (docker.yml) is the nightly build of main, never a release.
if [ "$IMAGE_LATEST" = "true" ]; then
docker tag "$IMAGE:$VERSION" "$IMAGE:latest"
docker push "$IMAGE:latest"
fi
echo "Image: $IMAGE:$VERSION$([ "$LATEST" = "true" ] && echo " and :latest")"
echo "Image: $IMAGE:$VERSION$([ "$IMAGE_LATEST" = "true" ] && echo " and :latest")"
- name: Clean up
if: always()