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
This commit is contained in:
1 parent
bbc3bb3896
commit
ce7316af29
11 files changed
+261
-8
No files matched your search
@@ -0,0 +1,28 @@
|
||||
# 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)
|
||||
Reference in new issue
Block a user