From ef966170d4a564590c60be211959798554ad76f4 Mon Sep 17 00:00:00 2001 From: John Lindsay Date: Sat, 18 May 2024 21:06:52 -0400 Subject: [PATCH] Update build.py --- build.py | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/build.py b/build.py index 24d749d7..0db3059a 100755 --- a/build.py +++ b/build.py @@ -52,15 +52,18 @@ def build(do_clean=False, exclude_runner=False, create_zip_artifact=False): print("Compiling...") - if platform.system() != 'Linux': - result = subprocess.run(['cargo', 'build', "--release"], stdout=subprocess.PIPE) - if len(result.stdout) > 0: - print(result.stdout) - else: - print("Compiling for musl target...") - result = subprocess.run(['cargo', 'build', "--release", "--target=x86_64-unknown-linux-musl"], stdout=subprocess.PIPE) - if len(result.stdout) > 0: - print(result.stdout) + result = subprocess.run(['cargo', 'build', "--release"], stdout=subprocess.PIPE) + if len(result.stdout) > 0: + print(result.stdout) + # if platform.system() != 'Linux': + # result = subprocess.run(['cargo', 'build', "--release"], stdout=subprocess.PIPE) + # if len(result.stdout) > 0: + # print(result.stdout) + # else: + # print("Compiling for musl target...") + # result = subprocess.run(['cargo', 'build', "--release", "--target=x86_64-unknown-linux-musl"], stdout=subprocess.PIPE) + # if len(result.stdout) > 0: + # print(result.stdout) if not os.path.exists(output_plugin_dir): os.makedirs(output_plugin_dir)