build: auto-copy .deb to ~ with correct 644 permissions

install -m644 guarantees world-readable regardless of umask, so
`sudo apt install ~/blitztext_*.deb` works without a manual chmod.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
mARTin-B78 2026-06-09 17:33:08 +02:00
parent 4d59853da6
commit e01b130e5f

View File

@ -105,4 +105,8 @@ mkdir -p "$OUT_DIR"
DEB="$OUT_DIR/${PKG}_${VER}_${ARCH}.deb"
fakeroot dpkg-deb --build --root-owner-group "$ROOT" "$DEB" >/dev/null
chmod 644 "$DEB"
# Also copy to ~ so `sudo apt install ~/blitztext_*.deb` works without a separate cp
DEST="$HOME/$(basename "$DEB")"
install -m644 "$DEB" "$DEST"
echo "==> Built: $DEB ($(du -h "$DEB" | cut -f1))"
echo "==> Copied: $DEST"