add entry. fix mach machine
This commit is contained in:
parent
9e148590de
commit
7a7e1b64d4
|
@ -1,6 +1,7 @@
|
||||||
ab:
|
ab:
|
||||||
fullname: Apache Benchmark
|
fullname: Apache Benchmark
|
||||||
desc: a tool for benchmarking your Apache Hypertext Transfer Protocol (HTTP) server
|
desc: a tool for benchmarking your Apache Hypertext Transfer Protocol (HTTP) server
|
||||||
|
website: https://httpd.apache.org/docs/2.4/programs/ab.html
|
||||||
|
|
||||||
arc:
|
arc:
|
||||||
desc: Easily create & extract archives, and compress & decompress files of various formats
|
desc: Easily create & extract archives, and compress & decompress files of various formats
|
||||||
|
@ -53,6 +54,10 @@ d2:
|
||||||
website: https://d2-lang.com/
|
website: https://d2-lang.com/
|
||||||
github: terrastruct/d2
|
github: terrastruct/d2
|
||||||
|
|
||||||
|
diskonaut:
|
||||||
|
desc: Terminal disk space navigator, disk tree-map
|
||||||
|
github: imsnif/diskonaut
|
||||||
|
|
||||||
dslcad:
|
dslcad:
|
||||||
desc: a programming language & interpreter for building 3D models
|
desc: a programming language & interpreter for building 3D models
|
||||||
github: DSchroer/dslcad
|
github: DSchroer/dslcad
|
||||||
|
@ -199,6 +204,10 @@ outrun:
|
||||||
github: Overv/outrun
|
github: Overv/outrun
|
||||||
pip:
|
pip:
|
||||||
|
|
||||||
|
pagefind:
|
||||||
|
desc: Static low-bandwidth search at scale
|
||||||
|
github: CloudCannon/pagefind
|
||||||
|
|
||||||
pandoc:
|
pandoc:
|
||||||
desc: Universal markup converter
|
desc: Universal markup converter
|
||||||
website: https://pandoc.org/
|
website: https://pandoc.org/
|
||||||
|
|
10
cliget.py
10
cliget.py
|
@ -278,6 +278,9 @@ def _match_arch_machine(name: str) -> bool:
|
||||||
machine = os.uname().machine.lower() # arch
|
machine = os.uname().machine.lower() # arch
|
||||||
# we don't consider libc - glic or musl - as musl is usually statically embed
|
# we don't consider libc - glic or musl - as musl is usually statically embed
|
||||||
lname = name.lower()
|
lname = name.lower()
|
||||||
|
if sysname == 'linux' and machine == 'x86_64':
|
||||||
|
if lname.find('linux64')>0:
|
||||||
|
return True
|
||||||
return lname.find(sysname) > 0 and (
|
return lname.find(sysname) > 0 and (
|
||||||
lname.find(machine) > 0 or (machine == "x86_64" and lname.find("amd64") > 0)
|
lname.find(machine) > 0 or (machine == "x86_64" and lname.find("amd64") > 0)
|
||||||
) # x86_64 and "amd64" are synonym
|
) # x86_64 and "amd64" are synonym
|
||||||
|
@ -307,9 +310,12 @@ def _perform_gh_install(cli, repo, version=None):
|
||||||
# dl asset if not already there
|
# dl asset if not already there
|
||||||
if not p.exists(location):
|
if not p.exists(location):
|
||||||
dlurl = http.get(asset.url).json()["browser_download_url"]
|
dlurl = http.get(asset.url).json()["browser_download_url"]
|
||||||
r = http.get(dlurl, allow_redirects=True, stream=True)
|
trace(f'{dlurl=}')
|
||||||
|
r = http.get(dlurl, allow_redirects=True) #, stream=True)
|
||||||
|
trace(f'{r=}')
|
||||||
with open(location, "wb") as fd:
|
with open(location, "wb") as fd:
|
||||||
shutil.copyfileobj(r.raw, fd)
|
#shutil.copyfileobj(r.raw, fd)
|
||||||
|
fd.write(r.content)
|
||||||
trace("downloaded")
|
trace("downloaded")
|
||||||
# unpack asset
|
# unpack asset
|
||||||
if not asset.name.endswith(".tar.gz"):
|
if not asset.name.endswith(".tar.gz"):
|
||||||
|
|
Loading…
Reference in New Issue