forked from hyperion-project/hyperion.ng
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Package creation with dependencies (hyperion-project#636)
* Packages are now created with dependencies Signed-off-by: Paulchen-Panther <[email protected]> * Ignore site packages Signed-off-by: Paulchen-Panther <[email protected]> * MacOS Package creation disabled * Append the OpenSSL library to the dependency list * - Exit codes and Error message are suppressed when copying files - OpenSSL root directory is set under MacOS - OpenSSL symlinks are attached - Packages and build directory renamed into Hyperion Signed-off-by: Paulchen-Panther <[email protected]> * Update to semver version * Use version file for version management * Read version file in azure Co-authored-by: brindosch <[email protected]>
- Loading branch information
1 parent
b9ecd0e
commit 17a9cd2
Showing
20 changed files
with
272 additions
and
113 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{} |
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
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 |
---|---|---|
|
@@ -24,15 +24,15 @@ ENDIF() | |
# Apply to all packages, some of these can be overwritten with generator specific content | ||
# https://cmake.org/cmake/help/v3.5/module/CPack.html | ||
|
||
SET ( CPACK_PACKAGE_NAME "Hyperion.NG" ) | ||
SET ( CPACK_PACKAGE_NAME "Hyperion" ) | ||
SET ( CPACK_PACKAGE_DESCRIPTION_SUMMARY "Hyperion is an open source ambient light implementation" ) | ||
SET ( CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_SOURCE_DIR}/README.md" ) | ||
|
||
if ( NOT DEFINED DOCKER_PLATFORM ) | ||
SET ( CPACK_PACKAGE_FILE_NAME "Hyperion.NG-${HYPERION_VERSION_CHANNEL}.${HYPERION_VERSION_MAJOR}.${HYPERION_VERSION_MINOR}.${HYPERION_VERSION_PATCH}-${CMAKE_SYSTEM_NAME}") | ||
else() | ||
SET ( CPACK_PACKAGE_FILE_NAME "Hyperion.NG-${HYPERION_VERSION_CHANNEL}.${HYPERION_VERSION_MAJOR}.${HYPERION_VERSION_MINOR}.${HYPERION_VERSION_PATCH}-${CMAKE_SYSTEM_NAME}-${DOCKER_PLATFORM}") | ||
endif() | ||
IF ( NOT DEFINED DOCKER_PLATFORM ) | ||
SET ( CPACK_PACKAGE_FILE_NAME "Hyperion-${HYPERION_VERSION}-${CMAKE_SYSTEM_NAME}") | ||
ELSE() | ||
SET ( CPACK_PACKAGE_FILE_NAME "Hyperion-${HYPERION_VERSION}-${CMAKE_SYSTEM_NAME}-${DOCKER_PLATFORM}") | ||
ENDIF() | ||
|
||
SET ( CPACK_PACKAGE_CONTACT "[email protected]") | ||
SET ( CPACK_PACKAGE_EXECUTABLES "hyperiond;Hyperion" ) | ||
|
@@ -43,21 +43,18 @@ SET ( CPACK_PACKAGE_VERSION_PATCH "${HYPERION_VERSION_PATCH}") | |
SET ( CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE" ) | ||
SET ( CPACK_CREATE_DESKTOP_LINKS "hyperiond;Hyperion" ) | ||
|
||
|
||
# Specific CPack Package Generators | ||
# https://cmake.org/Wiki/CMake:CPackPackageGenerators | ||
# .deb files for apt | ||
|
||
SET ( CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA "${CMAKE_CURRENT_SOURCE_DIR}/cmake/debian/preinst;${CMAKE_CURRENT_SOURCE_DIR}/cmake/debian/postinst;${CMAKE_CURRENT_SOURCE_DIR}/cmake/debian/prerm" ) | ||
SET ( CPACK_DEBIAN_PACKAGE_DEPENDS "libqt5core5a (>= 5.5.0), libqt5network5 (>= 5.5.0), libqt5gui5 (>= 5.5.0), libqt5serialport5 (>= 5.5.0), libqt5sql5 (>= 5.5.0), libqt5sql5-sqlite (>= 5.5.0), libavahi-core7 (>= 0.6.31), libavahi-compat-libdnssd1 (>= 0.6.31), libusb-1.0-0, libpython3.5, libc6" ) | ||
SET ( CPACK_DEBIAN_PACKAGE_SECTION "Miscellaneous" ) | ||
|
||
# .rpm for rpm | ||
# https://cmake.org/cmake/help/v3.5/module/CPackRPM.html | ||
SET ( CPACK_RPM_PACKAGE_RELEASE 1) | ||
SET ( CPACK_RPM_PACKAGE_LICENSE "MIT") | ||
SET ( CPACK_RPM_PACKAGE_GROUP "Applications") | ||
SET ( CPACK_RPM_PACKAGE_REQUIRES "qt5-qtbase >= 5.5.0, qt5-qtbase-gui >= 5.5.0, qt5-qtserialport >= 5.5.0, avahi-libs >= 0.6.31, avahi-compat-libdns_sd >= 0.6.31, libusbx, python35 >= 3.5.0") | ||
# Notes: This is a dependency list for Fedora 27, different .rpm OSes use different names for their deps | ||
SET ( CPACK_RPM_PRE_INSTALL_SCRIPT_FILE "${CMAKE_CURRENT_SOURCE_DIR}/cmake/rpm/preinst" ) | ||
SET ( CPACK_RPM_POST_INSTALL_SCRIPT_FILE "${CMAKE_CURRENT_SOURCE_DIR}/cmake/rpm/postinst" ) | ||
|
@@ -82,9 +79,16 @@ SET ( CPACK_NSIS_URL_INFO_ABOUT "https://www.hyperion-project.org") | |
|
||
# define the install components | ||
SET ( CPACK_COMPONENTS_ALL "${PLATFORM}" ) | ||
|
||
SET ( CPACK_COMPONENT_${PLATFORM}_ARCHIVE_FILE "${CPACK_PACKAGE_FILE_NAME}" ) | ||
SET ( CPACK_ARCHIVE_COMPONENT_INSTALL ON ) | ||
|
||
SET ( CPACK_DEBIAN_${PLATFORM}_FILE_NAME "${CPACK_PACKAGE_FILE_NAME}.deb" ) | ||
SET ( CPACK_DEB_COMPONENT_INSTALL ON ) | ||
|
||
SET ( CPACK_RPM_${PLATFORM}_FILE_NAME "${CPACK_PACKAGE_FILE_NAME}.rpm" ) | ||
SET ( CPACK_RPM_COMPONENT_INSTALL ON ) | ||
|
||
SET ( CPACK_STRIP_FILES ON ) | ||
|
||
# no code after following line! | ||
|
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,16 @@ | ||
function(SetVersionNumber PREFIX VERSION_STRING) | ||
|
||
STRING(REGEX MATCHALL "[0-9]+|-([A-Za-z0-9_]+)" VERSION_PARTS ${VERSION_STRING} ) | ||
LIST( GET VERSION_PARTS 0 VERSION_MAJOR ) | ||
LIST( GET VERSION_PARTS 1 VERSION_MINOR ) | ||
LIST( GET VERSION_PARTS 2 VERSION_PATCH ) | ||
|
||
set(${PREFIX}_VERSION_MAJOR ${VERSION_MAJOR} PARENT_SCOPE) | ||
set(${PREFIX}_VERSION_MINOR ${VERSION_MINOR} PARENT_SCOPE) | ||
set(${PREFIX}_VERSION_PATCH ${VERSION_PATCH} PARENT_SCOPE) | ||
|
||
#if(NOT VERSION_PRE MATCHES "stable") | ||
# set(${PREFIX}_VERSION_PRE ${VERSION_PRE} PARENT_SCOPE) | ||
# set( VERSION_PRE_FULL "-${VERSION_PRE}") | ||
#endif() | ||
endfunction() |
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
Oops, something went wrong.