From 222e4c43dad770b2ba5dbcf7de55d24c98abc3e4 Mon Sep 17 00:00:00 2001 From: Mik-TF Date: Wed, 9 Oct 2024 12:36:22 -0700 Subject: [PATCH] started working on windows native version --- .gitignore | 3 ++- Makefile | 5 +++++ README.md | 22 +++++++++++++++++++++- 3 files changed, 28 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 6b7ce1b..405becf 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -flist \ No newline at end of file +flist +flist.exe \ No newline at end of file diff --git a/Makefile b/Makefile index 1efe5e7..a41e31c 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/README.md b/README.md index f16a56a..63ad8be 100644 --- a/README.md +++ b/README.md @@ -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 [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