This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user