From 88bfd0fa5f236eae48429eb4abe2b3e0ce179bca Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Thu, 2 Apr 2026 17:00:34 -0700 Subject: [PATCH] Add publish script and update install instructions --- scripts/publish | 20 ++++++++++++++++++++ web/index.html | 4 ++-- 2 files changed, 22 insertions(+), 2 deletions(-) create mode 100755 scripts/publish diff --git a/scripts/publish b/scripts/publish new file mode 100755 index 0000000..27bee5e --- /dev/null +++ b/scripts/publish @@ -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" diff --git a/web/index.html b/web/index.html index b24cd84..b33f2d0 100644 --- a/web/index.html +++ b/web/index.html @@ -176,8 +176,8 @@

$ shout

shell output tester

-
- $ bun install -g @because/shout --registry=https://npm.nose.space +
+ $ curl -fsSL https://because.sh/shout/install | sh click to copy