Skip to content

Commit

Permalink
update install script
Browse files Browse the repository at this point in the history
  • Loading branch information
jpopesculian committed Mar 5, 2024
1 parent e3f81b8 commit a95a416
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ members = [

[package]
name = "aqora"
version = "0.1.0"
version = "0.1.1"
edition = "2021"
default-run = "aqora"
publish = false
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
11 changes: 6 additions & 5 deletions install.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a95a416

Please sign in to comment.