Debian/Ubuntu APT (#1265)

* APT repository

* Run workflows on any branch

* Switched to Hyperion GHCR

* Fix typo

* Rewrite installation steps

* Spelling fixed

* Typo fix

* OSX Icon changed
This commit is contained in:
Markus
2021-07-14 20:21:29 +02:00
committed by GitHub
parent f98938020a
commit 8dc4ff9a34
14 changed files with 418 additions and 48 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

View File

@@ -52,6 +52,11 @@ SET ( CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE" )
SET ( CPACK_PACKAGE_EXECUTABLES "hyperiond;Hyperion" )
SET ( CPACK_CREATE_DESKTOP_LINKS "hyperiond;Hyperion" )
# Append pre-release version to CPACK_PACKAGE_VERSION_PATCH if exists
if (NOT "${HYPERION_VERSION_PRE}" STREQUAL "")
string(APPEND CPACK_PACKAGE_VERSION_PATCH ${HYPERION_VERSION_PRE})
endif()
# Define the install prefix path for cpack
IF ( UNIX )
#SET ( CPACK_PACKAGING_INSTALL_PREFIX "share/hyperion")

View File

@@ -1,16 +1,30 @@
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 )
STRING(REGEX MATCHALL "[0-9]+|-([A-Za-z0-9_.]+)" VERSION_PARTS ${VERSION_STRING} )
LIST( LENGTH VERSION_PARTS VERSION_LEN)
if(${VERSION_LEN} GREATER 0)
LIST( GET VERSION_PARTS 0 VERSION_MAJOR )
endif()
if(${VERSION_LEN} GREATER 1)
LIST( GET VERSION_PARTS 1 VERSION_MINOR )
endif()
if(${VERSION_LEN} GREATER 3)
LIST( GET VERSION_PARTS 2 VERSION_PATCH )
endif()
if(${VERSION_LEN} GREATER 3)
LIST( GET VERSION_PARTS 3 VERSION_PRE )
endif()
set(${PREFIX}_VERSION_MAJOR ${VERSION_MAJOR} PARENT_SCOPE)
set(${PREFIX}_VERSION_MINOR ${VERSION_MINOR} PARENT_SCOPE)
set(${PREFIX}_VERSION_PATCH ${VERSION_PATCH} PARENT_SCOPE)
set(${PREFIX}_VERSION_PRE ${VERSION_PRE} PARENT_SCOPE)
#if(NOT VERSION_PRE MATCHES "stable")
# set(${PREFIX}_VERSION_PRE ${VERSION_PRE} PARENT_SCOPE)
# set( VERSION_PRE_FULL "-${VERSION_PRE}")
#endif()
endfunction()
endfunction()