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}") | ||||
| endif () | ||||
| if (NOT BUILD_TYPE AND NOT BUILD_TYPE STREQUAL "0") | ||||
|     SET(BUILD_TYPE "1") | ||||
|     SET(BUILD_TYPE "3") | ||||
| endif () | ||||
| 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") | ||||
|  | ||||
| @ -27,7 +27,8 @@ cp TeaSpeakServer TeaSpeakServerTmp | ||||
| rm 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}" * | ||||
| cd .. | ||||
| rm -r finalenv | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user