From a95a4166bb2ce17120b6c3f34958e8bd810662a4 Mon Sep 17 00:00:00 2001 From: Julian Popescu Date: Tue, 5 Mar 2024 11:59:51 +0100 Subject: [PATCH] update install script --- Cargo.lock | 2 +- Cargo.toml | 2 +- README.md | 2 +- install.py | 11 ++++++----- 4 files changed, 9 insertions(+), 8 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index a30de27..96b35e0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -91,7 +91,7 @@ dependencies = [ [[package]] name = "aqora" -version = "0.1.0" +version = "0.1.1" dependencies = [ "aqora-config", "aqora-runner", diff --git a/Cargo.toml b/Cargo.toml index bff3ffb..e310073 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,7 +7,7 @@ members = [ [package] name = "aqora" -version = "0.1.0" +version = "0.1.1" edition = "2021" default-run = "aqora" publish = false diff --git a/README.md b/README.md index beb4bc8..ca689c6 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ To install the CLI, you can run the following script: ```bash -curl -LsSf https://raw.githubusercontent.com/aqora-io/cli/main/install.py | python +curl -LsSf https://raw.githubusercontent.com/aqora-io/cli/main/install.py | python3 ``` To verify the installation, the following should output helpful information: diff --git a/install.py b/install.py index 626463d..ac4d765 100644 --- a/install.py +++ b/install.py @@ -24,27 +24,28 @@ def get_release_asset_name(): machine = platform.machine() if sys.maxsize <= 2**32: raise Exception("32-bit not supported: " + machine) + py_version = f"py{sys.version_info.major}_{sys.version_info.minor}" system = platform.system() if system == "Windows": if machine != "x86_64": raise Exception("Unsupported processor: " + machine) - return "aqora-windows-x86_64-msvc.zip" + return f"aqora-windows-x86_64-msvc-{py_version}.zip" elif system == "Linux": if machine != "x86_64": raise Exception("Unsupported processor: " + machine) libc, _ = platform.libc_ver() if libc == "glibc": - return "aqora-linux-x86_64-gnu.tar.gz" + return f"aqora-linux-x86_64-gnu-{py_version}.tar.gz" else: raise Exception("Unsupported libc: " + libc) elif system == "Darwin": if machine == "arm64": - return "aqora-darwin-aarch64.tar.gz" + return f"aqora-darwin-aarch64-{py_version}.tar.gz" elif machine == "x86_64": if is_rosetta_translated(): - return "aqora-darwin-aarch64.tar.gz" + return f"aqora-darwin-aarch64-{py_version}.tar.gz" else: - return "aqora-darwin-x86_64.tar.gz" + return f"aqora-darwin-x86_64-{py_version}.tar.gz" else: raise Exception("Unsupported processor: " + machine) else: