Skip to content
This repository has been archived by the owner on Aug 31, 2020. It is now read-only.

Generating .deb files #103

Merged
merged 4 commits into from
Apr 22, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -601,3 +601,29 @@ if(WITH_TESTS)
enable_testing ()
add_subdirectory (tests)
endif(WITH_TESTS)


#building package using CPack
include(InstallRequiredSystemLibraries)


set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Program used to map keyboard keys and mouse controls to a gamepad.")

set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE")
pktiuk marked this conversation as resolved.
Show resolved Hide resolved

set(CPACK_PACKAGE_VERSION_MAJOR "${ANTIMICROX_MAJOR_VERSION}")
set(CPACK_PACKAGE_VERSION_MINOR "${ANTIMICROX_MINOR_VERSION}")
set(CPACK_PACKAGE_VERSION_PATCH "${ANTIMICROX_PATCH_VERSION}")

set(CPACK_PACKAGE_INSTALL_DIRECTORY "CMake ${CMake_VERSION_MAJOR}.${CMake_VERSION_MINOR}")

if(UNIX) #building .deb package
set(CPACK_GENERATOR "DEB")
set(CPACK_DEBIAN_PACKAGE_MAINTAINER "juliagoda")
set(CPACK_STRIP_FILES "")
set(CPACK_SOURCE_STRIP_FILES "")
set(CPACK_DEBIAN_PACKAGE_DEPENDS "qt5-default, libsdl2-2.0-0")
endif()

set(CPACK_PACKAGE_EXECUTABLES "antimicroX" "antimicroX")
include(CPack)
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,17 @@ from [AUR](https://aur.archlinux.org/packages/antimicrox-git/)
| :--------- | :------------- | :----------- |
| Arch Linux | Piotr Górski | [antimicrox-git](https://aur.archlinux.org/packages/antimicrox-git) <sup>AUR</sup> |


#### Building deb package

```
cd antimicroX
mkdir build && cd build
cmake ..
cpack
```


<br/>

### Running with Docker
Expand Down Expand Up @@ -208,6 +219,7 @@ If you have installed antimicroX locally with success, you can run application:
`flatpak run com.github.juliagoda.antimicroX`



#### Updating

To update all your installed applications and runtimes to the latest version, execute:
Expand Down