Compare commits

..

2 Commits

2 changed files with 34 additions and 2 deletions

32
scripts/publish Executable file
View File

@ -0,0 +1,32 @@
#!/bin/sh
set -eu
NAME="shout"
BECAUSE="$HOME/dev/projects/because.sh"
TARGETS="
aarch64-apple-darwin
x86_64-unknown-linux-gnu
aarch64-unknown-linux-gnu
"
for TARGET in $TARGETS; do
echo "Building $TARGET..."
case "$TARGET" in
*-apple-*)
cargo build --release --target "$TARGET"
;;
*)
cross build --release --target "$TARGET"
;;
esac
gzip -c "target/$TARGET/release/$NAME" > "target/release/$NAME-$TARGET.gz"
"$BECAUSE/scripts/upload" put "$NAME/bin/$NAME-$TARGET.gz" "target/release/$NAME-$TARGET.gz"
done
# 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>