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
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:
Executable
+16
@@ -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"
|
||||
Reference in New Issue
Block a user