diff --git a/ct/profilarr.sh b/ct/profilarr.sh index f7b77c53..00e09ce2 100644 --- a/ct/profilarr.sh +++ b/ct/profilarr.sh @@ -36,17 +36,21 @@ function update_script() { exit fi + if check_for_gh_release "deno" "denoland/deno"; then + ARCH=$(uname -m) + fetch_and_deploy_gh_release "deno" "denoland/deno" "prebuild" "latest" "/usr/local/bin" "deno-${ARCH}-unknown-linux-gnu.zip" + fi + if check_for_gh_release "profilarr" "Dictionarry-Hub/profilarr"; then msg_info "Stopping Service" systemctl stop profilarr msg_ok "Stopped Service" CLEAN_INSTALL=1 fetch_and_deploy_gh_release "profilarr" "Dictionarry-Hub/profilarr" "tarball" - PROFILARR_VERSION=$(curl -fsSL "https://api.github.com/repos/Dictionarry-Hub/profilarr/releases/latest" | grep '"tag_name"' | sed 's/.*"v\([^"]*\)".*/\1/') + PROFILARR_VERSION=$(cat ~/.profilarr) msg_info "Building Profilarr v${PROFILARR_VERSION} (Patience)" cd /opt/profilarr - ARCH=$(uname -m) cat >src/lib/shared/build.ts <