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
@@ -1,7 +1,14 @@
|
||||
#!/usr/bin/env bash
|
||||
# Installs OmaPhoto's latest package on Arch and Omarchy.
|
||||
# Installs OmaPhoto's newest package on Arch and Omarchy.
|
||||
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
|
||||
package=omaphoto-x86_64.pkg.tar.zst
|
||||
. /etc/os-release
|
||||
case " ${ID:-} ${ID_LIKE:-} " in
|
||||
|
||||
Reference in new issue
Block a user