1 parent
95c0587c1e
commit
5b22add1f3
21 files changed
+293
-89
No files matched your search
Executable
+30
@@ -0,0 +1,30 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
cd "$ROOT"
|
||||
|
||||
./scripts/build-release.sh
|
||||
|
||||
VERSION="$(python3 - <<'PY'
|
||||
import tomllib
|
||||
from pathlib import Path
|
||||
with Path('Cargo.toml').open('rb') as fh:
|
||||
print(tomllib.load(fh)['package']['version'])
|
||||
PY
|
||||
)"
|
||||
|
||||
OUT_DIR="${1:-$ROOT/dist}"
|
||||
mkdir -p "$OUT_DIR"
|
||||
ARCHIVE="$OUT_DIR/RustBox-$VERSION.zip"
|
||||
CHECKSUM="$ARCHIVE.sha256"
|
||||
|
||||
python3 make_zip.py "$ARCHIVE"
|
||||
(
|
||||
cd "$(dirname "$ARCHIVE")"
|
||||
sha256sum "$(basename "$ARCHIVE")" > "$(basename "$CHECKSUM")"
|
||||
)
|
||||
|
||||
printf 'Release archive: %s\n' "$ARCHIVE"
|
||||
printf 'SHA256: '
|
||||
cat "$CHECKSUM"
|
||||
Reference in new issue
Block a user