From cde02c28e7c8733705a71b5b66eff096f8e4d2fa Mon Sep 17 00:00:00 2001 From: Elias Steurer Date: Wed, 2 Nov 2022 16:41:06 +0100 Subject: [PATCH] Add build_and_publish window script none steam version Now: 1. Build steamless version 2. Upload to FTP 3. Build Steam version 4. Upload to Steam --- Tools/build_and_publish.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Tools/build_and_publish.py b/Tools/build_and_publish.py index ebd8e73b..e1ccaa08 100644 --- a/Tools/build_and_publish.py +++ b/Tools/build_and_publish.py @@ -75,8 +75,12 @@ if __name__ == "__main__": build_config.bin_dir = os.path.join(build_config.root_path,'build-universal-osx-release/bin/') print(f"Change binary dir to: {build_config.bin_dir}") macos_sign.sign(build_config=build_config) - else: + sys.exit(0) + + if platform.system() == "Windows": + # Steamless version first build_config.build_architecture = "x64" + build_config.build_steam = "OFF" build_result = build.execute(build_config) ssh = paramiko.SSHClient() @@ -101,6 +105,11 @@ if __name__ == "__main__": sftp.close() ssh.close() + # Now build the steam version + build_config.build_steam = "ON" + build_config.create_installer = "OFF" + build_result = build.execute(build_config) + # Make sure to reset to tools path os.chdir(tools_path) steam_publish.publish(