#!/bin/sh # Builds an am__amd64.deb from dist/am-linux-x86_64. # Usage: packaging/deb/make-deb.sh [arch] set -e VERSION="$1" ARCH="${2:-amd64}" ROOT="$(mktemp -d)" PKG="am_${VERSION}_${ARCH}" mkdir -p "$ROOT/$PKG/usr/bin" "$ROOT/$PKG/usr/share/doc/am" "$ROOT/$PKG/DEBIAN" cp dist/am-linux-x86_64 "$ROOT/$PKG/usr/bin/am" chmod 755 "$ROOT/$PKG/usr/bin/am" cat > "$ROOT/$PKG/DEBIAN/control" < Description: Manage local AI coding agents List, install, start, stop and update local AI coding agents with automatic dependency handling and a YAML-driven catalog. EOF cat > "$ROOT/$PKG/usr/share/doc/am/copyright" <