This commit is contained in:
Mateusz Gruszczyński committed 2026-11-22 14:21:54 +01:00
commit fa432bebda
189 files changed
+26219

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
#!/usr/bin/env bash
# Build release archives + checksums for x86_64 and aarch64 (requires `cross` or native toolchains).
set -euo pipefail
VERSION="$(grep -m1 '^version' Cargo.toml | cut -d'"' -f2)"
mkdir -p dist target/man
for TARGET in x86_64-unknown-linux-gnu aarch64-unknown-linux-gnu; do
if command -v cross >/dev/null; then B=cross; else B=cargo; fi
$B build --release --locked --target "$TARGET" -p dns-cli -p dns-tools
D="dist/easydns-$VERSION-$TARGET"; mkdir -p "$D"
cp target/$TARGET/release/{easydns,easydig,easyhost,easynslookup,easytrace,easydnssec,easyptr,easyzone,easyconf,easybench,easywhois,easydoh,easydot,easydiff} "$D/"
cp -r config README.md LICENSE* deploy/systemd deploy/install.sh "$D/"
tar -C dist -czf "$D.tar.gz" "$(basename "$D")"
done
target/release/easydns man > target/man/easydns.1 || true
(cd dist && sha256sum ./*.tar.gz > SHA256SUMS)
echo "artifacts in dist/"