first commit
This commit is contained in:
commit
2eb8aac027
91 files changed
+20139
No files matched your search
Executable
+24
@@ -0,0 +1,24 @@
|
||||
#!/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/PostfixAdmin-RS-$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