feat: provide way to build and attach platforms
Pipeline / check (push) Successful in 1m56s
Pipeline / release (push) Skipped
Pipeline / docs (push) Successful in 1m47s
Pipeline / nightly (push) Successful in 6m41s

This commit is contained in:
2026-08-08 11:46:15 -04:00
parent fdc53ae210
commit 3a7a0d5873
12 changed files with 230 additions and 81 deletions
+4
View File
@@ -1,9 +1,13 @@
#!/usr/bin/env bash
# Tar the contents of a directory into an asset and write its checksum.
# Usage: package.sh <asset.tar.gz> <dir>
set -euo pipefail
asset="${1:?usage: package.sh <asset.tar.gz> <dir>}"
dir="${2:?usage: package.sh <asset.tar.gz> <dir>}"
tar -czf "$asset" -C "$dir" .
sha256sum "$asset" > "$asset.sha256"
echo "packaged $asset ($(wc -c < "$asset") bytes) and $asset.sha256"