aboutsummaryrefslogtreecommitdiff
path: root/scripts/deploybuild.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/deploybuild.py')
-rw-r--r--scripts/deploybuild.py22
1 files changed, 11 insertions, 11 deletions
diff --git a/scripts/deploybuild.py b/scripts/deploybuild.py
index c81235a8c..d137c3da1 100644
--- a/scripts/deploybuild.py
+++ b/scripts/deploybuild.py
@@ -50,20 +50,20 @@ while not os.path.exists(os.path.join(zenroot, "zen.sln")):
zenroot = os.path.dirname(zenroot)
jazz_print("Zen root:", zenroot)
-
# Build fresh binaries
-if use_xmake:
- build_cmd = ["xmake", "-b", "zenserver"]
- build_output_dir = r'build\windows\x64\release'
-else:
- vs_path = vswhere.get_latest_path() # can also specify prerelease=True
- jazz_print("BUILDING CODE", f"using VS root: {vs_path}")
- devenv_path = os.path.join(vs_path, "Common7\\IDE\\devenv.com")
- build_cmd = [devenv_path, "/build", "Release", "zen.sln"]
- build_output_dir = r'x64\Release'
-
try:
+ if use_xmake:
+ subprocess.run(["xmake.exe", "config", "-p", "windows", "-a", "x64", "-m", "release"], check=True)
+ build_cmd = ["xmake.exe", "build", "--rebuild", "zenserver"]
+ build_output_dir = r'build\windows\x64\release'
+ else:
+ vs_path = vswhere.get_latest_path() # can also specify prerelease=True
+ jazz_print("BUILDING CODE", f"using VS root: {vs_path}")
+ devenv_path = os.path.join(vs_path, "Common7\\IDE\\devenv.com")
+ build_cmd = [devenv_path, "/build", "Release", "zen.sln"]
+ build_output_dir = r'x64\Release'
+
subprocess.run(build_cmd, check=True)
except:
jazz_fail("Build failed!")