diff options
| author | alex <alex@pdp7.net> | 2024-08-24 14:28:46 +0200 |
|---|---|---|
| committer | alexpdp7 <alex@corcoles.net> | 2024-08-24 14:30:50 +0200 |
| commit | fc19bf24362b33122f2ef9e866720c95915aebca (patch) | |
| tree | f5640909656b87ec92e82d5cdca6b6a39316fb80 /scripts | |
| parent | b942498d7bf9a81707312cd30cdfcc0991a819ff (diff) | |
Support ubpkg multiarch
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/p7s/ubpkg.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/p7s/ubpkg.py b/scripts/p7s/ubpkg.py index 72495f41..9a75cb51 100644 --- a/scripts/p7s/ubpkg.py +++ b/scripts/p7s/ubpkg.py @@ -1,5 +1,6 @@ import os import pathlib +import platform import shutil import httpx @@ -7,5 +8,5 @@ import httpx def setup_ubpkg(): ubpkg = pathlib.Path.home() / ".local" / "bin" / "ubpkg" - ubpkg.write_bytes(httpx.get("https://github.com/alexpdp7/ubpkg/releases/latest/download/ubpkg-linux", follow_redirects=True).content) + ubpkg.write_bytes(httpx.get(f"https://github.com/alexpdp7/ubpkg/releases/latest/download/ubpkg-linux-{platform.machine()}", follow_redirects=True).content) os.chmod(ubpkg, 0o700) |
