Update gitea download and switch to xz files

XZ files are downloaded
Change that any grep is replaced by jq command, and sed for " replace

Add systemd service files as samples
This commit is contained in:
Clemens Schwaighofer
2026-04-23 14:11:31 +09:00
parent 26cbfbe39f
commit a58e0d8de5
8 changed files with 75 additions and 11 deletions
+2 -2
View File
@@ -6,8 +6,8 @@ BASE_FOLDER=$(dirname "$(readlink -f "$0")")"/";
download_file=$(curl -s https://api.github.com/repos/go-gitea/gitea/releases/latest |\
jq ".assets[].browser_download_url" |\
cut -d '"' -f 4 |\
grep "${arch}$");
sed -e 's/"//g' |\
grep "${arch}.xz$");
version=$(echo "${download_file}" | cut -d "/" -f 8);
file=$(echo "${download_file}" | cut -d "/" -f 9);