From e01b130e5f282c0fd655a7dabd7133a23a42f007 Mon Sep 17 00:00:00 2001 From: mARTin-B78 Date: Tue, 9 Jun 2026 17:33:08 +0200 Subject: [PATCH] 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 --- linux/packaging/build-deb.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/linux/packaging/build-deb.sh b/linux/packaging/build-deb.sh index 51cd961..4791ebc 100755 --- a/linux/packaging/build-deb.sh +++ b/linux/packaging/build-deb.sh @@ -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"