#!/usr/bin/bash set -e # Download the pre-built RPM from GitHub releases. # Upstream always publishes the release-1 asset (nzbget--1.x86_64.rpm); # the source URL must use the upstream asset name, not PACKAGE_RELEASE, which # carries the dist tag (e.g. 1.el9) and does not exist upstream. Only the local # output filename is dist-tagged, mirroring the code-server package. curl -L -o /app/dist/nzbget-${PACKAGE_VERSION}-${PACKAGE_RELEASE}.x86_64.rpm \ https://artifactapi.k8s.syd1.au.unkin.net/api/v1/remote/github/nzbgetcom/nzbget/releases/download/v$PACKAGE_VERSION/nzbget-${PACKAGE_VERSION}-1.x86_64.rpm