Skip to content

Commit b2a9284

Browse files
committed
Basic standalone Debian package
1 parent 4fccc43 commit b2a9284

4 files changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ jobs:
6767
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release
6868
cmake --build build
6969
echo "VERSION=$(cat build/version.txt)" >> $GITHUB_ENV
70+
cpack --config build/CPackConfig.cmake -B build/installer --verbose
71+
mv build/installer/*.deb build/Release
7072
- name: Upload
7173
uses: actions/upload-artifact@v4
7274
with:

cmake/identity.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@ set(MACOS_BUNDLE_ID org.ioquake.${CLIENT_NAME})
1717

1818
set(COPYRIGHT "QUAKE III ARENA Copyright © 1999-2000 id Software, Inc. All rights reserved.")
1919

20+
set(CONTACT_EMAIL "email@ioquake3.org")
2021
set(PROTOCOL_HANDLER_SCHEME quake3)

cmake/installer.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ set(CPACK_PACKAGE_NAME ${PROJECT_NAME})
2424
set(CPACK_PACKAGE_INSTALL_DIRECTORY ${PROJECT_NAME})
2525
set(CPACK_PACKAGE_EXECUTABLES ${CLIENT_NAME} ${PROJECT_NAME})
2626
set(CPACK_PACKAGE_FILE_NAME ${PROJECT_NAME}-${PRODUCT_VERSION})
27+
set(CPACK_PACKAGE_CONTACT ${CONTACT_EMAIL})
2728
set(CPACK_RESOURCE_FILE_LICENSE ${CMAKE_SOURCE_DIR}/COPYING.txt)
2829

2930
include(CPack)

cmake/platforms/linux.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@ endif()
77
if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
88
set_property(CACHE CMAKE_INSTALL_PREFIX PROPERTY VALUE /opt/quake3)
99
endif()
10+
11+
set(CPACK_GENERATOR "DEB")
12+
set(CPACK_PACKAGING_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX})

0 commit comments

Comments
 (0)