periphery -> periphery-x86_64 setup script

This commit is contained in:
mbecker20
2024-12-02 03:31:55 -05:00
parent 4e554eb2a7
commit bb63892e10

View File

@@ -66,11 +66,13 @@ def copy_binary(user_install, bin_dir, version):
if os.path.isfile(bin_path):
os.remove(bin_path)
periphery_bin = "periphery"
periphery_bin = "periphery-x86_64"
arch = platform.machine().lower()
if arch == "aarch64" or arch == "amd64":
print("aarch64 detected")
periphery_bin = "periphery-aarch64"
else:
print("using x86_64 binary")
# download the binary to bin path
print(os.popen(f'curl -sSL https://github.com/mbecker20/komodo/releases/download/{version}/{periphery_bin} > {bin_path}').read())