Skip to content

Commit

Permalink
ease install
Browse files Browse the repository at this point in the history
  • Loading branch information
ariary committed Oct 26, 2023
1 parent 7681bd7 commit e758847
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 26 deletions.
31 changes: 5 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,35 +85,14 @@ mount /dev/sda1 /mnt/hostfs
</details>


## Install
### tacos
#### Docker
```shell
docker pull ariary/tacos
```
## Easy install

#### Release
```shell
curl -lO -L -s https://github.com/ariary/tacos/releases/latest/download/tacos && chmod +x tacos
```
* Requirements: go, git, tmux *(and ngrok, bore)*
* Install all the stuff: `./install-all-in-one.sh`

#### From git
need `go`:
```shell
git clone https://github.com/ariary/tacos.git && cd tacos
make before.build
make build.tacos # or make build.tacos.windows
You're now good to go !:
```

### wrap
need `nim`:

```shell
git clone https://github.com/ariary/tacos.git && cd tacos
make build.wrap
mkdir -p $HOME/.tacos
mv light-pty4all/socat-forker-windows.sh.tpl $HOME/.tacos
mv light-pty4all/socat-forker.sh.tpl $HOME/.tacos
tacos.listener
```

## Alternatives
Expand Down
30 changes: 30 additions & 0 deletions install-all-in-one.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,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' 馃尞

0 comments on commit e758847

Please sign in to comment.