Compare commits

..

No commits in common. "0aeb97d1fc19c1e42bcd8aa7051a49f5690671b0" and "0b0a66b6d428d7fafc4f701b35bb6cc2253a079f" have entirely different histories.

3 changed files with 34 additions and 2 deletions

2
Cargo.lock generated
View File

@ -10,7 +10,7 @@ checksum = "48f5d2a454e16a5ea0f4ced81bd44e4cfc7bd3a507b61887c99fd3538b28e4af"
[[package]]
name = "shout"
version = "0.0.19"
version = "0.0.18"
dependencies = [
"libc",
]

View File

@ -1,6 +1,6 @@
[package]
name = "shout"
version = "0.0.19"
version = "0.0.18"
edition = "2024"
[dependencies]

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"