mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-30 13:02:57 +02:00
Enable windows launcher build
This commit is contained in:
parent
73ac38a6a6
commit
ecfc3613b0
3 changed files with 10 additions and 4 deletions
|
@ -66,6 +66,10 @@ endfunction()
|
||||||
add_executable(${PROJECT_NAME} MACOSX_BUNDLE ${src_files})
|
add_executable(${PROJECT_NAME} MACOSX_BUNDLE ${src_files})
|
||||||
set_target_properties(${PROJECT_NAME} PROPERTIES OUTPUT_NAME ${APP_NAME})
|
set_target_properties(${PROJECT_NAME} PROPERTIES OUTPUT_NAME ${APP_NAME})
|
||||||
set_from_env(LAUNCHER_HMAC_SECRET LAUNCHER_HMAC_SECRET "")
|
set_from_env(LAUNCHER_HMAC_SECRET LAUNCHER_HMAC_SECRET "")
|
||||||
|
if (LAUNCHER_HMAC_SECRET STREQUAL "")
|
||||||
|
message(FATAL_ERROR "LAUNCHER_HMAC_SECRET is not set")
|
||||||
|
endif()
|
||||||
|
|
||||||
target_compile_definitions(${PROJECT_NAME} PRIVATE LAUNCHER_HMAC_SECRET="${LAUNCHER_HMAC_SECRET}")
|
target_compile_definitions(${PROJECT_NAME} PRIVATE LAUNCHER_HMAC_SECRET="${LAUNCHER_HMAC_SECRET}")
|
||||||
|
|
||||||
file(GLOB NIB_FILES "nib/*.xib")
|
file(GLOB NIB_FILES "nib/*.xib")
|
||||||
|
|
|
@ -50,6 +50,11 @@ function(set_from_env _RESULT_NAME _ENV_VAR_NAME _DEFAULT_VALUE)
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
set_from_env(LAUNCHER_HMAC_SECRET LAUNCHER_HMAC_SECRET "")
|
set_from_env(LAUNCHER_HMAC_SECRET LAUNCHER_HMAC_SECRET "")
|
||||||
|
|
||||||
|
if (LAUNCHER_HMAC_SECRET STREQUAL "")
|
||||||
|
message(FATAL_ERROR "LAUNCHER_HMAC_SECRET is not set")
|
||||||
|
endif()
|
||||||
|
|
||||||
target_compile_definitions(${PROJECT_NAME} PRIVATE LAUNCHER_HMAC_SECRET="${LAUNCHER_HMAC_SECRET}")
|
target_compile_definitions(${PROJECT_NAME} PRIVATE LAUNCHER_HMAC_SECRET="${LAUNCHER_HMAC_SECRET}")
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -112,9 +112,6 @@ def fixupWinZip(filename):
|
||||||
shutil.move(outFullPath, fullPath)
|
shutil.move(outFullPath, fullPath)
|
||||||
|
|
||||||
def buildLightLauncher():
|
def buildLightLauncher():
|
||||||
# FIXME remove once MFC is enabled on the windows build hosts
|
|
||||||
if sys.platform == 'win32':
|
|
||||||
return
|
|
||||||
launcherSourcePath = os.path.join(SOURCE_PATH, 'launchers', sys.platform)
|
launcherSourcePath = os.path.join(SOURCE_PATH, 'launchers', sys.platform)
|
||||||
launcherBuildPath = os.path.join(BUILD_PATH, 'launcher')
|
launcherBuildPath = os.path.join(BUILD_PATH, 'launcher')
|
||||||
if not os.path.exists(launcherBuildPath):
|
if not os.path.exists(launcherBuildPath):
|
||||||
|
@ -146,7 +143,7 @@ def buildLightLauncher():
|
||||||
elif sys.platform == 'win32':
|
elif sys.platform == 'win32':
|
||||||
# FIXME
|
# FIXME
|
||||||
launcherDestFile = os.path.join(BUILD_PATH, "{}.exe".format(computeArchiveName('Launcher')))
|
launcherDestFile = os.path.join(BUILD_PATH, "{}.exe".format(computeArchiveName('Launcher')))
|
||||||
launcherSourceFile = os.path.join(launcherBuildPath, "Launcher.exe")
|
launcherSourceFile = os.path.join(launcherBuildPath, "Release", "HQLauncher.exe")
|
||||||
print("Moving {} to {}".format(launcherSourceFile, launcherDestFile))
|
print("Moving {} to {}".format(launcherSourceFile, launcherDestFile))
|
||||||
shutil.move(launcherSourceFile, launcherDestFile)
|
shutil.move(launcherSourceFile, launcherDestFile)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue