feat: add --arch flag to start-cli registry package download

Use the new flag in the image build recipe to download the tor s9pk
for the target architecture, replacing the standalone download script.
This commit is contained in:
Aiden McClelland
2026-03-20 15:28:30 -06:00
parent 9ff65497a8
commit 8bccffcb5c
5 changed files with 21 additions and 20 deletions

View File

@@ -1,15 +0,0 @@
#!/bin/bash
cd "$(dirname "${BASH_SOURCE[0]}")"
set -e
ARCH=$1
VERSION="0.4.9.5:0-beta.1"
if [ -z "$ARCH" ]; then
>&2 echo "usage: $0 <ARCH>"
exit 1
fi
curl --fail -L -o "./lib/tor_${ARCH}.s9pk" "https://s9pks.nyc3.cdn.digitaloceanspaces.com/tor/${VERSION}/tor_${ARCH}.s9pk"

View File

@@ -357,6 +357,8 @@ mkdir -p /media/startos
chmod 750 /media/startos
chown root:startos /media/startos
start-cli --registry=https://alpha-registry-x.start9.com registry package download tor -d /usr/lib/startos/tor_${QEMU_ARCH}.s9pk -a "${QEMU_ARCH}"
EOF
SOURCE_DATE_EPOCH="${SOURCE_DATE_EPOCH:-$(date '+%s')}"