Move to Gitea: install scripts, links and a release script that builds the DEBs, RPMs, Arch package and a new AppImage

This commit is contained in:
ZacharyZhang-NY committed 2026-10-11 01:40:28 -04:00
1 parent 4c7d98b17f
commit 1fcbec84e9
17 files changed
+169 -124

No files matched your search

+9 -2
View File
@@ -1,7 +1,14 @@
#!/usr/bin/env bash
# Installs OmaPhoto's latest RPM on Fedora 43 or 44.
# Installs OmaPhoto's newest RPM on Fedora 43 or 44.
set -euo pipefail
base=https://github.com/ZacharyZhang-NY/OmaPhoto/releases/latest/download
repo=https://git.zacharyzhang.com/ZacharyZhang-NY/OmaPhoto
# The newest release's tag, from Gitea's API.
tag=$(curl -fsSL --proto '=https' https://git.zacharyzhang.com/api/v1/repos/ZacharyZhang-NY/OmaPhoto/releases/latest | grep -o '"tag_name":"v[^"]*"' | cut -d'"' -f4) || tag=
if [ -z "$tag" ]; then
echo "No release found at $repo/releases." >&2
exit 1
fi
base=$repo/releases/download/$tag
. /etc/os-release
release=
case " ${ID:-} ${ID_LIKE:-} " in