Improved server packaging
This commit is contained in:
parent
77a7c23a62
commit
f180f62f2c
@ -239,7 +239,7 @@ else ()
|
|||||||
SET(CPACK_PACKAGE_VERSION_DATA "-${BUILD_TYPE_NAME}")
|
SET(CPACK_PACKAGE_VERSION_DATA "-${BUILD_TYPE_NAME}")
|
||||||
endif ()
|
endif ()
|
||||||
if (NOT BUILD_TYPE AND NOT BUILD_TYPE STREQUAL "0")
|
if (NOT BUILD_TYPE AND NOT BUILD_TYPE STREQUAL "0")
|
||||||
SET(BUILD_TYPE "1")
|
SET(BUILD_TYPE "3")
|
||||||
endif ()
|
endif ()
|
||||||
set_source_files_properties(src/build.cpp PROPERTIES
|
set_source_files_properties(src/build.cpp PROPERTIES
|
||||||
COMPILE_FLAGS "-DBUILD_MAJOR=${CPACK_PACKAGE_VERSION_MAJOR} -DBUILD_MINOR=${CPACK_PACKAGE_VERSION_MINOR} -DBUILD_PATCH=${CPACK_PACKAGE_VERSION_PATCH} -DBUILD_DATA=\"${CPACK_PACKAGE_VERSION_DATA}\" -DBUILD_TYPE=${BUILD_TYPE} -DBUILD_COUNT=0")
|
COMPILE_FLAGS "-DBUILD_MAJOR=${CPACK_PACKAGE_VERSION_MAJOR} -DBUILD_MINOR=${CPACK_PACKAGE_VERSION_MINOR} -DBUILD_PATCH=${CPACK_PACKAGE_VERSION_PATCH} -DBUILD_DATA=\"${CPACK_PACKAGE_VERSION_DATA}\" -DBUILD_TYPE=${BUILD_TYPE} -DBUILD_COUNT=0")
|
||||||
|
@ -27,7 +27,8 @@ cp TeaSpeakServer TeaSpeakServerTmp
|
|||||||
rm TeaSpeakServer
|
rm TeaSpeakServer
|
||||||
mv TeaSpeakServerTmp TeaSpeakServer
|
mv TeaSpeakServerTmp TeaSpeakServer
|
||||||
|
|
||||||
strip -s -p -v TeaSpeakServer
|
strip -s -p -v TeaSpeakServer || { echo "failed to strip symbols!"; exit 1; }
|
||||||
|
patchelf --set-rpath ./libs/ TeaSpeakServer || { echo "failed to set rpath!"; exit 1; }
|
||||||
tar --dereference -czvf "../${BUILD_FILENAME}" *
|
tar --dereference -czvf "../${BUILD_FILENAME}" *
|
||||||
cd ..
|
cd ..
|
||||||
rm -r finalenv
|
rm -r finalenv
|
||||||
|
Loading…
Reference in New Issue
Block a user