Add .deb packaging (Debian/Ubuntu) and PKGBUILD (Arch) to CI
Build AD Bulk Tool / build (ubuntu-latest, linux-arm64, ) (push) Failing after 3m15s
Build AD Bulk Tool / build (macos-latest, osx-arm64, ) (push) Canceled after 0s
Build AD Bulk Tool / build (macos-latest, osx-x64, ) (push) Canceled after 0s
Build AD Bulk Tool / build (ubuntu-latest, win-x64, .exe) (push) Canceled after 0s
Build AD Bulk Tool / packaging (push) Canceled after 0s
Build AD Bulk Tool / build (ubuntu-latest, linux-x64, ) (push) Canceled after 1m35s

This commit is contained in:
mikisoq
2026-07-29 03:13:49 -01:00
parent 94d6434e79
commit 3cb868e25f
5 changed files with 98 additions and 2 deletions
+16
View File
@@ -0,0 +1,16 @@
#!/usr/bin/env bash
set -euo pipefail
BINARY="$1"
VERSION="${2:-1.0.0}"
OUTDIR="${3:-dist}"
mkdir -p "$OUTDIR/DEBIAN" "$OUTDIR/usr/bin"
cp "$BINARY" "$OUTDIR/usr/bin/adbulktool"
chmod 755 "$OUTDIR/usr/bin/adbulktool"
sed "s/Version: 1.0.0/Version: $VERSION/" packaging/debian/DEBIAN/control > "$OUTDIR/DEBIAN/control"
dpkg-deb --root-owner-group --build "$OUTDIR" "publish/adbulktool_${VERSION}_amd64.deb"
rm -rf "$OUTDIR"