#!/bin/bash # mkosi.prepare installs the Gitea runner from its releases on gitea.com, as # /usr/bin/gitea-runner. Fedora doesn't package it. The checksum file comes # from the same release, so it catches a broken download, not a bad release. set -euo pipefail version=6.0.1 file=gitea-runner-$version-linux-amd64.xz cd "$(mktemp -d)" curl -fsSLO "https://gitea.com/gitea/runner/releases/download/v$version/$file" curl -fsSLO "https://gitea.com/gitea/runner/releases/download/v$version/$file.sha256" sha256sum -c --quiet "$file.sha256" xz -dc "$file" > "$BUILDROOT/usr/bin/gitea-runner" chmod 755 "$BUILDROOT/usr/bin/gitea-runner"