Add windows support to README

This commit is contained in:
lucheng
2024-07-02 11:19:04 +08:00
parent eacff68bac
commit 550901f699
5 changed files with 20 additions and 0 deletions

2
.gitignore vendored
View File

@@ -1,4 +1,6 @@
.vscode
virtuallan
virtuallan.exe
main
main.exe
test

View File

@@ -34,6 +34,24 @@ make
>IMG=\<your image name>:\<tag> make build-docker
```
**Windows support**
1. Before launch it, make sure [tap-windows](https://github.com/OpenVPN/tap-windows6) has been install.
2. Install a Tap-Windows Adapter
```
.\devcon.exe OemVista.inf tap0901
```
3. Checkout to win branch
4. Build a windows exe
```
GOOS=windows GOARCH=amd64 go build -o virtuallan.exe main.go
```
5. Launch virtuallan.exe
![](./docs/statics/login.png)
6. Enjoy it
![](./docs/statics/ip.png)
![](./docs/statics/ping.png)
go generate will generate an random aes key
## Ready to use

BIN
docs/statics/ip.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 120 KiB

BIN
docs/statics/login.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

BIN
docs/statics/ping.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 120 KiB