feat(packaging): add arm64 deb builder, APPLaunch desktop/icon, and packaging tests

This commit is contained in:
2026-11-19 18:08:07 -05:00
parent 5a0cb87f08
commit a127c338d4
8 changed files with 466 additions and 0 deletions

11
packaging/debian/control Normal file
View File

@@ -0,0 +1,11 @@
Package: czcamera
Version: 1.0.0-m5stack1
Section: graphics
Priority: optional
Architecture: arm64
Maintainer: CardputerZero Camera <noreply@local>
Depends: python3 (>= 3.9), python3-picamera2, ffmpeg, alsa-utils, libjpeg62-turbo | libjpeg8, libfreetype6, libc6, libstdc++6
Description: Camera application for CardputerZero (photo, video, timelapse, gallery)
Fullscreen 320x170 fbdev/evdev camera application (czcamera) and Picamera2
subprocess worker (czcamera-cam) with 9 RGB24 filters, timelapse capture
and MP4 assembly, gallery viewer, and on-device video playback.

9
packaging/debian/postinst Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/sh
set -e
case "$1" in
configure|abort-upgrade|abort-remove|abort-deconfigure)
;;
esac
exit 0

12
packaging/debian/prerm Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/sh
set -e
case "$1" in
remove|deconfigure)
if [ -d /usr/lib/czcamera ]; then
find /usr/lib/czcamera -depth -type d -name '__pycache__' -exec rm -rf {} + 2>/dev/null || true
fi
;;
esac
exit 0