-
Notifications
You must be signed in to change notification settings - Fork 4
/
install-all-in-one.sh
executable file
路30 lines (26 loc) 路 1002 Bytes
/
install-all-in-one.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/usr/bin/env bash
export BLUE='\033[0;34m'
export NC='\033[0m'
echo -e "${BLUE}[*] Prepare home dir etc..${NC}"
SH=$(echo $SHELL|cut -d "/" -f 3)
mkdir -p "$HOME/.local/bin/"
echo "export PATH=$PATH:$HOME/.local/bin/" >> ~/.${SH}rc
mkdir -p $HOME/.tacos/
echo -e "\t[+] install nim"
curl https://nim-lang.org/choosenim/init.sh -sSf | sh
echo -e "\t[+] install gitar"
go install github.com/ariary/gitar@latest #custom http server
echo -e "\t[+] install gum"
go install github.com/charmbracelet/gum@latest
echo -e "${BLUE}[*] Install tacos..${NC}"
git clone https://github.com/ariary/tacos.git && cd tacos
go mod tidy
make before.build
make build.tacos.static && mv tacos $HOME/.local/bin/
mv light-pty4all/socat-forker-windows.sh.tpl $HOME/.tacos/
mv light-pty4all/socat-forker.sh.tpl $HOME/.tacos/
nimble install cligen && make build.wrap && mv wrap/bin/wrap $HOME/.local/bin/
cp ./wrap/tacos.listener $HOME/.local/bin
cd .. && rm -rf tacos
echo
echo "Enjoy your meal with 'tacos.listener' 馃尞