Add publish script and update install instructions
This commit is contained in:
parent
5ae67ba391
commit
88bfd0fa5f
20
scripts/publish
Executable file
20
scripts/publish
Executable file
|
|
@ -0,0 +1,20 @@
|
||||||
|
#!/bin/sh
|
||||||
|
set -eu
|
||||||
|
|
||||||
|
NAME="shout"
|
||||||
|
BECAUSE="$HOME/dev/projects/because.sh"
|
||||||
|
|
||||||
|
# Build release
|
||||||
|
cargo build --release
|
||||||
|
|
||||||
|
# Compress
|
||||||
|
gzip -c target/release/"$NAME" > target/release/"$NAME"-aarch64-apple-darwin.gz
|
||||||
|
|
||||||
|
# Upload binary
|
||||||
|
"$BECAUSE/scripts/upload" put "$NAME/bin/$NAME-aarch64-apple-darwin.gz" target/release/"$NAME"-aarch64-apple-darwin.gz
|
||||||
|
|
||||||
|
# Upload install script + landing page
|
||||||
|
"$BECAUSE/scripts/upload" publish "$NAME"
|
||||||
|
"$BECAUSE/scripts/upload" put "$NAME/index.html" web/index.html
|
||||||
|
|
||||||
|
printf "\nPublished %s to https://because.sh/%s/\n" "$NAME" "$NAME"
|
||||||
|
|
@ -176,8 +176,8 @@
|
||||||
<header>
|
<header>
|
||||||
<h1><span>$</span> shout</h1>
|
<h1><span>$</span> shout</h1>
|
||||||
<p class="tagline">shell output tester</p>
|
<p class="tagline">shell output tester</p>
|
||||||
<div class="install" onclick="navigator.clipboard.writeText('bun install -g @because/shout --registry=https://npm.nose.space')">
|
<div class="install" onclick="navigator.clipboard.writeText('curl -fsSL https://because.sh/shout/install | sh')">
|
||||||
<span class="prompt">$</span> <span class="cmd">bun install -g @because/shout --registry=https://npm.nose.space</span>
|
<span class="prompt">$</span> <span class="cmd">curl -fsSL https://because.sh/shout/install | sh</span>
|
||||||
<span class="hint">click to copy</span>
|
<span class="hint">click to copy</span>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user