install fish, comments
This commit is contained in:
parent
e6046dafee
commit
b90a90ae92
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
# Builds the client JS bundle
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
echo ">> Building client bundle"
|
echo ">> Building client bundle"
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env bun
|
#!/usr/bin/env bun
|
||||||
|
// Builds the self-contained CLI executable
|
||||||
// Usage: bun scripts/build.ts [--all | --target=<name>]
|
// Usage: bun scripts/build.ts [--all | --target=<name>]
|
||||||
// No flags: builds for current platform (dist/toes)
|
// No flags: builds for current platform (dist/toes)
|
||||||
// --all: builds for all targets (macos-arm64, macos-x64, linux-arm64, linux-x64)
|
// --all: builds for all targets (macos-arm64, macos-x64, linux-arm64, linux-x64)
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,15 @@ echo ">> Updating system libraries"
|
||||||
quiet sudo apt-get update
|
quiet sudo apt-get update
|
||||||
quiet sudo apt-get install -y libcap2-bin
|
quiet sudo apt-get install -y libcap2-bin
|
||||||
quiet sudo apt-get install -y avahi-utils
|
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"
|
echo ">> Ensuring bun is available in /usr/local/bin"
|
||||||
if [ ! -x "$BUN_SYMLINK" ]; then
|
if [ ! -x "$BUN_SYMLINK" ]; then
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user