This repository has been archived by the owner on Oct 3, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from AppImage/feature/rpm
Also generate and upload RPM
- Loading branch information
Showing
5 changed files
with
50 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# required for DEB-DEFAULT to work as intended | ||
cmake_minimum_required(VERSION 3.6) | ||
|
||
# allow building RPM packages on non-RPM systems | ||
if(DEFINED ENV{ARCH}) | ||
set(CPACK_RPM_PACKAGE_ARCHITECTURE $ENV{ARCH}) | ||
if(CPACK_RPM_PACKAGE_ARCHITECTURE MATCHES "i686") | ||
set(CPACK_RPM_PACKAGE_ARCHITECTURE "i386") | ||
elseif(CPACK_RPM_PACKAGE_ARCHITECTURE MATCHES "amd64") | ||
set(CPACK_RPM_PACKAGE_ARCHITECTURE "x86_64") | ||
endif() | ||
endif() | ||
|
||
# override default package naming | ||
set(CPACK_RPM_FILE_NAME RPM-DEFAULT) | ||
|
||
# versioning | ||
set(CPACK_PACKAGE_VERSION ${APPIMAGED_VERSION}) | ||
|
||
# use git hash as package release | ||
set(CPACK_RPM_PACKAGE_RELEASE "git${APPIMAGED_GIT_COMMIT}") | ||
|
||
# append build ID, similar to AppImage naming | ||
if(DEFINED ENV{TRAVIS_BUILD_NUMBER}) | ||
set(CPACK_RPM_PACKAGE_RELEASE "${CPACK_RPM_PACKAGE_RELEASE}~travis$ENV{TRAVIS_BUILD_NUMBER}") | ||
else() | ||
set(CPACK_RPM_PACKAGE_RELEASE "${CPACK_RPM_PACKAGE_RELEASE}~local") | ||
endif() | ||
|
||
set(CPACK_PACKAGE_DESCRIPTION_FILE "${PROJECT_SOURCE_DIR}/README.md") | ||
set(CPACK_RESOURCE_FILE_LICENSE "${PROJECT_SOURCE_DIR}/LICENSE") | ||
|
||
set(CPACK_RPM_PACKAGE_NAME "appimaged") | ||
set(CPACK_RPM_PACKAGE_SUMMARY | ||
"Optional AppImage daemon for desktop integration. Integrates AppImages into the desktop, e.g., installs icons and menu entries.") | ||
|
||
set(CPACK_RPM_PACKAGE_REQUIRES "libarchive13, libc6 >= 2.4, libglib2.0-0, zlib1g, fuse") | ||
|
||
set(CPACK_COMPONENTS_ALL appimaged) | ||
set(CPACK_RPM_COMPONENT_INSTALL ON) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters