Flist CLI Updated for Linux, MacOS, Windows #7

Merged
mik-tf merged 16 commits from development_mac_2 into main 2024-10-11 04:50:59 +00:00
3 changed files with 28 additions and 2 deletions
Showing only changes of commit 222e4c43da - Show all commits

3
.gitignore vendored
View File

@ -1 +1,2 @@
flist
flist
flist.exe

View File

@ -3,6 +3,11 @@ build:
v -o flist .
sudo ./flist install
build-win:
v fmt -w flist.v
v -o flist .
./flist.exe install
rebuild:
sudo rm flist
sudo flist uninstall

View File

@ -13,6 +13,8 @@
- [Linux](#linux)
- [macOS](#macos)
- [Windows](#windows)
- [WSL](#wsl)
- [Native Windows](#native-windows)
- [Troubleshooting](#troubleshooting)
- [Development](#development)
- [Contributing](#contributing)
@ -99,7 +101,25 @@ flist <command> [arguments]
### Windows
For now, we recommend to use WSL and follow the Linux steps.
#### WSL
You can use WSL with Ubuntu to deploy the Flist CLI on Windows.
#### Native Windows
When using the make commands, add `-win` to the commands: `make build-win`, `make rebuild-win`, `make delete-win`.
- Run make for Windows on Powershell Admin:
```
git clone https://git.ourworld.tf/tfgrid/flist_cli_v
cd flist_cli_v
make build-win
```
- Run in Powershell Admin the following lines then restart the shell
```
$newPath = 'C:\Program Files\flist'
setx PATH "$($env:PATH);$newPath"
```
## Troubleshooting