Build Packwiz hashes in published images
Publish Packwiz site / publish (push) Successful in 1m53s

This commit is contained in:
2026-09-04 23:27:12 +01:00
parent 70cb26e762
commit 340b91aad7
3 changed files with 35 additions and 3 deletions
+13
View File
@@ -8,10 +8,16 @@ repo_root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
cd "$repo_root"
dev_ref=${1:-HEAD}
packwiz_bin=${PACKWIZ_BIN:-packwiz}
build_root="$repo_root/.build"
site_root="$build_root/site"
work_root="$build_root/work"
if ! command -v "$packwiz_bin" >/dev/null 2>&1; then
echo "Packwiz executable not found: $packwiz_bin" >&2
exit 1
fi
rm -rf "$site_root" "$work_root"
mkdir -p "$site_root/forever/releases" "$work_root"
@@ -30,6 +36,13 @@ export_pack() {
git archive "$revision" "$pack" | tar -x -C "$scratch"
mv "$scratch/$pack" "$destination"
# Source packs intentionally omit internal hashes. Generate the distributable
# index only in the ephemeral image-build tree, never in the Git checkout.
(
cd "$destination"
"$packwiz_bin" refresh --build
)
}
# main is always the development source, including when this script runs for a