diff --git a/scripts/build.sh b/scripts/build.sh index 385efff..e06df82 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# Builds the client JS bundle set -euo pipefail echo ">> Building client bundle" diff --git a/scripts/build.ts b/scripts/build.ts index dffd576..3677ab5 100644 --- a/scripts/build.ts +++ b/scripts/build.ts @@ -1,4 +1,5 @@ #!/usr/bin/env bun +// Builds the self-contained CLI executable // Usage: bun scripts/build.ts [--all | --target=] // No flags: builds for current platform (dist/toes) // --all: builds for all targets (macos-arm64, macos-x64, linux-arm64, linux-x64) diff --git a/scripts/install.sh b/scripts/install.sh index 547edc3..25208bf 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -19,6 +19,15 @@ echo ">> Updating system libraries" quiet sudo apt-get update quiet sudo apt-get install -y libcap2-bin quiet sudo apt-get install -y avahi-utils +quiet sudo apt-get install -y fish + +echo ">> Setting fish as default shell for toes user" +if [ "$(getent passwd toes | cut -d: -f7)" != "/usr/bin/fish" ]; then + quiet sudo chsh -s /usr/bin/fish toes + echo "Default shell changed to fish" +else + echo "fish already set as default shell" +fi echo ">> Ensuring bun is available in /usr/local/bin" if [ ! -x "$BUN_SYMLINK" ]; then