blob: 9a75cb5196b98db15ed0e3e60927d0d30e95b428 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
import os
import pathlib
import platform
import shutil
import httpx
def setup_ubpkg():
ubpkg = pathlib.Path.home() / ".local" / "bin" / "ubpkg"
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)
|