mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 05:58:27 +02:00
create zip file for launcher
This commit is contained in:
parent
de233e456e
commit
58dea69ecf
1 changed files with 25 additions and 3 deletions
|
@ -148,6 +148,27 @@ def signBuild(executablePath):
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
|
def zipDarwinLauncher():
|
||||||
|
launcherSourcePath = os.path.join(SOURCE_PATH, 'launchers', sys.platform)
|
||||||
|
launcherBuildPath = os.path.join(BUILD_PATH, 'launcher')
|
||||||
|
|
||||||
|
archiveName = computeArchiveName('HQ Launcher')
|
||||||
|
|
||||||
|
cpackCommand = [
|
||||||
|
'cpack',
|
||||||
|
'-G', 'ZIP',
|
||||||
|
'-D', "CPACK_PACKAGE_FILE_NAME={}".format(archiveName),
|
||||||
|
'-D', "CPACK_INCLUDE_TOPLEVEL_DIRECTORY=OFF"
|
||||||
|
]
|
||||||
|
print("Create ZIP version of installer archive")
|
||||||
|
print(cpackCommand)
|
||||||
|
hifi_utils.executeSubprocess(cpackCommand, folder=launcherBuildPath)
|
||||||
|
launcherZipDestFile = os.path.join(BUILD_PATH, "{}.zip".format(archiveName))
|
||||||
|
launcherZipSourceFile = os.path.join(launcherBuildPath, "{}.zip".format(archiveName))
|
||||||
|
print("Moving {} to {}".format(launcherZipSourceFile, launcherZipDestFile))
|
||||||
|
shutil.move(launcherZipSourceFile, launcherZipDestFile)
|
||||||
|
|
||||||
|
|
||||||
def buildLightLauncher():
|
def buildLightLauncher():
|
||||||
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')
|
||||||
|
@ -175,6 +196,7 @@ def buildLightLauncher():
|
||||||
'--target', buildTarget
|
'--target', buildTarget
|
||||||
], folder=launcherBuildPath)
|
], folder=launcherBuildPath)
|
||||||
if sys.platform == 'darwin':
|
if sys.platform == 'darwin':
|
||||||
|
zipDarwinLauncher()
|
||||||
launcherDestFile = os.path.join(BUILD_PATH, "{}.dmg".format(computeArchiveName('Launcher')))
|
launcherDestFile = os.path.join(BUILD_PATH, "{}.dmg".format(computeArchiveName('Launcher')))
|
||||||
launcherSourceFile = os.path.join(launcherBuildPath, "HQ Launcher.dmg")
|
launcherSourceFile = os.path.join(launcherBuildPath, "HQ Launcher.dmg")
|
||||||
elif sys.platform == 'win32':
|
elif sys.platform == 'win32':
|
||||||
|
|
Loading…
Reference in a new issue