Browse Source
The zig version is now the first argument (default = the suite pin, 0.16.0) and each version installs into tools/zig-x86_64-windows-<version> - the zip's own root folder name, so the old rename-to-tools/zig step and its post-ExtractToDirectory lock retry/GC dance are gone. Installed-check warns if the exe's reported version mismatches its versioned folder. Documented limitations: dev builds (/builds/) and pre-0.14.1 releases (old zig-<os>-<arch> naming) are not handled - the punkbin flat tools/ mirror path covers those if one must be pinned. The bash side stays an honest stub with the same argument convention. Rewrapped via scriptwrap::multishell (punk905_beta src script) -> bin/punk-getzig.cmd (the untracked .ps1 twin byte-synced locally). Verified all four paths through the polyglot: explicit present version, no-arg default, existing-zip verify+extract (0.15.2 zip with no dir), and the FULL network path (0.15.2 artifacts removed then re-materialized: mirror latency selection -> download zip+minisig -> signature verified -> versioned extract -> ZIG VERSION 0.15.2). G-096's remaining item is now the final clean-checkout re-verification only. Assisted-by: harness=claude; primary-model=claude-fable-5; api-location=anthropic.commaster
4 changed files with 117 additions and 120 deletions
@ -1,20 +1,22 @@
|
||||
#mkdir -p ./zig |
||||
#punk-getzig (bash side) - per-version zig fetch. UNIMPLEMENTED beyond messaging: |
||||
#the windows (powershell) side is the maintained implementation today; this stub |
||||
#keeps the same argument convention so the eventual implementation is a fill-in. |
||||
#Version may be supplied as $1; default matches the powershell side's suite pin. |
||||
|
||||
#tarball="zig-x86_64-windows-0.15.2.zip" |
||||
#tarball="zig-x86_64-freebsd-0.15.2.tar.xz" |
||||
tarball="zig-x86_64-linux-0.16.0.tar.xz" |
||||
releaseversion="${1:-0.16.0}" |
||||
tarball="zig-x86_64-linux-${releaseversion}.tar.xz" |
||||
targetdir="./tools/zig-x86_64-linux-${releaseversion}" |
||||
|
||||
automation_name="punkshell+julian@precisium.com.au_target_by_latency" |
||||
uristring="https://ziglang.org" |
||||
|
||||
#releases |
||||
full_uristring="${uristring}/download/0.15.2/${tarball}?source=${automation_name}" |
||||
#pre-releases |
||||
#full_uristring="${uristring}/builds/${tarball}?source=${automation_name}" |
||||
#releases (/download/<version>/). dev builds (X.Y.Z-dev.N+hash) live under /builds/ |
||||
#and are not handled - host such zips on the punkbin mirror if one must be pinned. |
||||
full_uristring="${uristring}/download/${releaseversion}/${tarball}?source=${automation_name}" |
||||
|
||||
echo "Unimplemented: Download from ${full_uristring} and extract manually" |
||||
#wget $full_uristring -O ./zig/zig-linux-x86_64-0.10.1.tar.xz |
||||
#tar -xf ./zig/zig-linux-x86_64-0.10.1.tar.xz -C ./zig --strip-components=1 |
||||
#rm ./zig/zig-linux-x86_64-0.10.1.tar.xz |
||||
#echo "Zig installed." |
||||
#./zig/zig version |
||||
echo "Unimplemented: Download from ${full_uristring}" |
||||
echo " and extract to ${targetdir} (the tarball's own root folder name) manually." |
||||
#wget "$full_uristring" -O "./tools/${tarball}" |
||||
#minisign verification as per the powershell side (zig minisign pubkey), then: |
||||
#tar -xf "./tools/${tarball}" -C ./tools |
||||
#"${targetdir}/zig" version |
||||
|
||||
Loading…
Reference in new issue