Files
luma/scripts/stage-pharo-image.sh
Ole André Vadla Ravnås 02962abfa3 deps: Bump SwiftyPharo
Its VM now starts on macOS 27.
2026-09-26 20:43:53 +02:00

28 lines
753 B
Bash
Executable File

#!/bin/sh
set -eu
release="vm-20260926.2"
root=$(cd "$(dirname "$0")/.." && pwd)
staged="$root/Sources/LumaCore/Resources/pharo-image"
local="$root/../SwiftyPharo/artifacts/SwiftyPharo.image"
cache="$root/build/.pharo/$release"
if [ -f "$local" ]; then
image="$local"
else
image="$cache/SwiftyPharo.image"
if [ ! -f "$image" ]; then
echo "Fetching Pharo image $release"
mkdir -p "$cache"
curl -sSL \
"https://github.com/frida/SwiftyPharo/releases/download/$release/SwiftyPharo.image.zip" \
-o "$cache/image.zip"
unzip -qo "$cache/image.zip" -d "$cache"
fi
fi
mkdir -p "$staged"
cp "$image" "$staged/SwiftyPharo.image"
cp "${image%.image}.changes" "$staged/SwiftyPharo.changes"