Compare commits
2 Commits
5ae67ba391
...
ae2afc0ffd
| Author | SHA1 | Date | |
|---|---|---|---|
| ae2afc0ffd | |||
| 88bfd0fa5f |
32
scripts/publish
Executable file
32
scripts/publish
Executable 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"
|
||||||
|
|
@ -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