Removed RUNPATH from Bloom's binary (except for debug builds), and created invocation script

This commit is contained in:
Nav
2023-09-28 22:36:02 +01:00
parent 48271a2516
commit 7c04345e70
6 changed files with 38 additions and 18 deletions

View File

@@ -3,9 +3,19 @@ set(BLOOM_PACKAGE_FILE_NAME "Bloom-${CMAKE_PROJECT_VERSION}-Linux-x86_64")
set(BLOOM_PACKAGE_DESCRIPTION "Debugger for AVR-based embedded systems")
set(BLOOM_PACKAGE_CONTACT "Nav Mohammed <support@bloom.oscillate.io>")
# All generated packages will install Bloom to BLOOM_INSTALLATION_PREFIX
set(BLOOM_INSTALLATION_PREFIX "/opt/bloom")
string(TOLOWER ${BLOOM_PACKAGE_NAME} BLOOM_PACKAGE_NAME_LOWER)
file(MAKE_DIRECTORY "${CMAKE_BINARY_DIR}/packaging/pkgbuild")
# Generate Bloom's invocation script
configure_file(
"${CMAKE_CURRENT_SOURCE_DIR}/build/packaging/bloom.sh.in"
"${CMAKE_BINARY_DIR}/packaging/bloom.sh"
@ONLY
)
# Generate the DEB control file and packaging script
file(MAKE_DIRECTORY "${CMAKE_BINARY_DIR}/packaging/deb")