forked from axiom-team/astroport
19 lines
487 B
Bash
19 lines
487 B
Bash
|
#!/bin/sh
|
||
|
{
|
||
|
ws_host='http://localhost:8989'
|
||
|
ssb_npm_registry_blob="&ICm1gBw79PitW1qUuq5jIJJtjyfkfPfpuHQfPeGpmJ4=.sha256"
|
||
|
pkg_name=ssb-npm
|
||
|
pkg_version=2.0.1
|
||
|
pkg_msg=%/hNT8vXLGN9IoVUwLdSbw/9UgKjFI0AOnlQl/0129Tw=.sha256
|
||
|
|
||
|
dir=$(mktemp -d "${TMPDIR:-/tmp}/ssb-npm.XXXXXXXXX") &&
|
||
|
cd "$dir" &&
|
||
|
curl -s "$ws_host/blobs/get/$ssb_npm_registry_blob" | tar xz &&
|
||
|
./package/bootstrap/bin.js \
|
||
|
--ws-url "$ws_host" \
|
||
|
--branch "$pkg_msg" \
|
||
|
install -g "$pkg_name@$pkg_version"
|
||
|
cd -
|
||
|
rm -rf "$dir"
|
||
|
}
|