Files
opu/cmake/Packaging.cmake
T
yann64andClaude Opus 5.5 ce7316af29
CI / Linux arm64 (push) Waiting to run
CI / Linux x86_64 (push) Waiting to run
CI / ASan + UBSan (push) Waiting to run
Linux packaging: Debian package, AppImage script, release workflow
- CPack DEB configuration (cmake/Packaging.cmake): dependencies from
  dpkg-shlibdeps, udisks2 recommended, strip.
- AppStream metadata, installed with the desktop file and the icons;
  tools/release.sh adds each release to it.
- tools/appimage.sh: AppImage of the GTK interface and openpu-cli with
  linuxdeploy and its GTK plugin (x86_64 and aarch64).
- Release workflow: .deb, AppImage and openpu-cli tarball for x86_64 and
  arm64, attached to the release of a vX.Y.Z tag, or kept as artifacts
  on a manual run. tools/release.sh edits the release when the workflow
  created it first.
- The GTK interface finds its translations next to the executable
  (../share/locale), for relocatable installs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WDASLCiN764v685boRVYar
2026-11-29 06:17:50 +01:00

29 lines
1.4 KiB
CMake

# SPDX-License-Identifier: MIT
# Debian package (cpack -G DEB). Dependencies are computed by dpkg-shlibdeps from the binaries,
# so the package matches the distribution it was built on.
set(CPACK_PACKAGE_NAME openpu)
set(CPACK_PACKAGE_VENDOR "OpenPU contributors")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Download Peugeot head unit updates and prepare the USB stick")
set(CPACK_PACKAGE_HOMEPAGE_URL "https://github.com/yann64/openpu")
set(CPACK_RESOURCE_FILE_LICENSE ${PROJECT_SOURCE_DIR}/LICENSE)
set(CPACK_PACKAGE_INSTALL_DIRECTORY openpu)
set(CPACK_STRIP_FILES ON)
set(CPACK_DEBIAN_FILE_NAME DEB-DEFAULT) # openpu_<version>_<arch>.deb
set(CPACK_DEBIAN_PACKAGE_SECTION utils)
set(CPACK_DEBIAN_PACKAGE_MAINTAINER "OpenPU contributors <https://github.com/yann64/openpu>")
set(CPACK_DEBIAN_PACKAGE_DESCRIPTION
"Download Peugeot head unit updates and prepare the USB stick\n\
OpenPU downloads the firmware and navigation map updates of Peugeot head units\n\
(NAC, RCC, AIO, Crony) and prepares the installation USB stick: FAT32\n\
formatting, license and update files. Graphical interface (GTK 4) and\n\
command-line tool. Independent project, not affiliated with Stellantis or Peugeot.")
set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON)
# UDisks2 formats and mounts the stick; without it only `openpu-cli write-dir` works.
set(CPACK_DEBIAN_PACKAGE_RECOMMENDS "udisks2")
set(CPACK_SOURCE_GENERATOR TGZ)
set(CPACK_SOURCE_IGNORE_FILES "/\\\\.git/" "/build/" "\\\\.swp$")
include(CPack)