Compare commits

10 Commits
Author SHA1 Message Date
mikisoq 1fbcf4fcdd Add publish scripts, Gitea Actions workflow, and pre-built binary downloads to README
Build AD Bulk Tool / build (ubuntu-latest, linux-x64, ) (push) Failing after 7m11s
Build AD Bulk Tool / build (ubuntu-latest, win-x64, .exe) (push) Failing after 3m13s
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
2026-07-29 02:16:42 -01:00
mikisoq 67599fb1e5 Simplify to 'Arch-based' instead of listing specific distros 2026-07-29 02:09:10 -01:00
mikisoq 7f950d05ed Add Fedora/RHEL to prereqs and cert trust docs 2026-07-29 02:08:10 -01:00
mikisoq 31d1526ffe Restructure README: features, per-platform prereqs, then install 2026-07-29 02:04:47 -01:00
mikisoq bb32a78e1e Add cross-platform install docs to README 2026-07-29 02:01:52 -01:00
mikisoq fbbb708bfd Make auto-discovery cross-platform (Windows + Linux) 2026-07-29 01:59:02 -01:00
mikisoq b953b3f84a Add DNS-based domain/DC auto-discovery 2026-07-29 01:56:08 -01:00
mikisoq e6c67ec2b1 Replace internal domain names with generic placeholders 2026-07-29 01:48:27 -01:00
mikisoq d10a4f47f5 Update README.md 2026-07-29 01:44:06 -01:00
mikisoq acc2fe0a8a Initial AD bulk tool prototype 2026-07-29 01:29:32 -01:00
6 changed files with 6 additions and 120 deletions
+6 -64
View File
@@ -7,24 +7,24 @@ on:
jobs:
build:
name: ${{ matrix.name }}
strategy:
matrix:
rid: [win-x64, linux-x64, osx-x64, osx-arm64]
include:
- rid: win-x64
name: Windows x64
os: ubuntu-latest
suffix: .exe
- rid: linux-x64
name: Linux x64
os: ubuntu-latest
suffix: ''
- rid: osx-x64
name: macOS x64
os: macos-latest
suffix: ''
- rid: osx-arm64
name: macOS ARM64
os: macos-latest
suffix: ''
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
@@ -38,66 +38,8 @@ jobs:
- name: Publish (${{ matrix.rid }})
run: dotnet publish ADBulkTool.csproj -c Release -r ${{ matrix.rid }} --self-contained true -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true -o publish/${{ matrix.rid }}
- name: Build .deb (linux-x64 only)
if: matrix.rid == 'linux-x64' && startsWith(github.ref, 'refs/tags/v')
run: |
VERSION="${GITHUB_REF_NAME#v}"
chmod +x packaging/build-deb.sh
packaging/build-deb.sh publish/linux-x64/ADBulkTool "$VERSION"
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ADBulkTool-${{ matrix.rid }}
path: publish/${{ matrix.rid }}/ADBulkTool${{ matrix.suffix }}
if-no-files-found: error
release:
needs: [build]
runs-on: ubuntu-latest
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download all artifacts
uses: actions/download-artifact@v4
- name: Upload release assets
env:
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
run: |
set -eux
VERSION="${GITHUB_REF_NAME}"
API="http://192.168.1.4:30008/api/v1/repos/mikisoq/ADBulk/releases"
# Get the release ID for this tag
RELEASE_ID=$(curl -s -H "Authorization: token $GITEA_TOKEN" \
"$API/tags/$VERSION" | python3 -c "import sys,json; print(json.load(sys.stdin)['id'])")
upload() {
local file="$1"
local name="$2"
echo "Uploading $name..."
curl -s -X POST -H "Authorization: token $GITEA_TOKEN" \
-F "attachment=@$file" \
"$API/$RELEASE_ID/assets?name=$name"
}
# Build .deb and upload everything
mkdir -p deb_root/DEBIAN deb_root/usr/bin
cp ADBulkTool-linux-x64/ADBulkTool deb_root/usr/bin/adbulktool
chmod 755 deb_root/usr/bin/adbulktool
VERS="${VERSION#v}"
sed "s/Version: 1.0.0/Version: $VERS/" packaging/debian/DEBIAN/control > deb_root/DEBIAN/control
dpkg-deb --root-owner-group --build deb_root "adbulktool_${VERS}_amd64.deb"
upload "ADBulkTool-linux-x64/ADBulkTool" "ADBulkTool-linux-x64"
upload "ADBulkTool-win-x64/ADBulkTool.exe" "ADBulkTool-win-x64.exe"
upload "ADBulkTool-osx-x64/ADBulkTool" "ADBulkTool-macos-x64"
upload "ADBulkTool-osx-arm64/ADBulkTool" "ADBulkTool-macos-arm64"
upload "adbulktool_${VERS}_amd64.deb" "adbulktool_${VERS}_amd64.deb"
cp packaging/arch/PKGBUILD packaging/arch/.INSTALL .
upload "PKGBUILD" "PKGBUILD"
upload ".INSTALL" ".INSTALL"
-4
View File
@@ -29,10 +29,6 @@ Failed.csv
*.cer
*.crt
# Local build output
publish/
dist/
# OS junk
.DS_Store
Thumbs.db
-11
View File
@@ -1,11 +0,0 @@
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
@@ -1,16 +0,0 @@
# 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
@@ -1,16 +0,0 @@
#!/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
@@ -1,9 +0,0 @@
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.