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:
17 files changed
+169
-124
No files matched your search
@@ -9,14 +9,11 @@ if [ "$(uname -m)" != x86_64 ]; then
|
||||
echo "OmaPhoto's flake builds for x86_64 alone." >&2
|
||||
exit 1
|
||||
fi
|
||||
# The newest release's tag, as GitHub redirects to it.
|
||||
latest=$(curl -fsSLI --proto '=https' -o /dev/null -w '%{url_effective}' https://github.com/ZacharyZhang-NY/OmaPhoto/releases/latest)
|
||||
tag=${latest##*/}
|
||||
case "$tag" in
|
||||
v[0-9]*) ;;
|
||||
*)
|
||||
echo "No release found at $latest." >&2
|
||||
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
|
||||
;;
|
||||
esac
|
||||
nix --extra-experimental-features "nix-command flakes" profile install "github:ZacharyZhang-NY/OmaPhoto/$tag"
|
||||
fi
|
||||
nix --extra-experimental-features "nix-command flakes" profile install "git+$repo?ref=refs/tags/$tag"
|
||||
Reference in new issue
Block a user