Add publish script and update install instructions

This commit is contained in:
Chris Wanstrath 2026-04-02 17:00:34 -07:00
parent 5ae67ba391
commit 88bfd0fa5f
2 changed files with 22 additions and 2 deletions

20
scripts/publish Executable file
View 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"

View File

@ -176,8 +176,8 @@
<header>
<h1><span>$</span> shout</h1>
<p class="tagline">shell output tester</p>
<div class="install" onclick="navigator.clipboard.writeText('bun install -g @because/shout --registry=https://npm.nose.space')">
<span class="prompt">$</span> <span class="cmd">bun install -g @because/shout --registry=https://npm.nose.space</span>
<div class="install" onclick="navigator.clipboard.writeText('curl -fsSL https://because.sh/shout/install | sh')">
<span class="prompt">$</span> <span class="cmd">curl -fsSL https://because.sh/shout/install | sh</span>
<span class="hint">click to copy</span>
</div>
</header>