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
+11
View File
@@ -0,0 +1,11 @@
post_install() {
echo "AD Bulk Tool installed. Run 'adbulktool' to start."
}
post_upgrade() {
echo "AD Bulk Tool updated."
}
post_remove() {
echo "AD Bulk Tool removed."
}
+16
View File
@@ -0,0 +1,16 @@
# Maintainer: mikisoq
pkgname=adbulktool
pkgver=1.0.0
pkgrel=1
pkgdesc="Bulk Active Directory tool - cross-platform GUI app for AD operations from CSV"
arch=('x86_64')
url="https://gitea.mikisoq.cc/mikisoq/ADBulk"
license=('MIT')
depends=()
source=("$url/releases/download/v$pkgver/ADBulkTool-linux-x64")
sha256sums=('SKIP')
install=.INSTALL
package() {
install -Dm755 "$srcdir/ADBulkTool-linux-x64" "$pkgdir/usr/bin/adbulktool"
}
+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"
+9
View File
@@ -0,0 +1,9 @@
Package: adbulktool
Version: 1.0.0
Section: utils
Priority: optional
Architecture: amd64
Maintainer: mikisoq
Description: Bulk Active Directory tool
Cross-platform GUI app for bulk AD operations from a CSV file.
Supports user enable/disable, group add/remove, password reset.