mirror of
https://github.com/Threnklyn/wg-ui.git
synced 2026-06-05 21:28:29 +02:00
update makefile and documentation (#74)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# WireGuard UI
|
||||
|
||||
[](https://github.com/EmbarkStudios/wg-ui/actions)
|
||||
[](https://github.com/EmbarkStudios/wg-ui/actions)
|
||||
[](https://github.com/EmbarkStudios)
|
||||
[](CODE_OF_CONDUCT.md)
|
||||
|
||||
@@ -13,7 +13,7 @@ Current stable release: [v1.1.0](https://github.com/EmbarkStudios/wg-ui/releases
|
||||
* QR-Code for convenient mobile client configuration
|
||||
* Optional multi-user support behind an authenticating proxy
|
||||
* Zero external dependencies - just a single binary using the wireguard kernel module
|
||||
* Container-first deployment
|
||||
* Binary and container deployment
|
||||
|
||||

|
||||
|
||||
@@ -80,24 +80,36 @@ curl -sL https://deb.nodesource.com/setup_12.x | sudo bash -
|
||||
git clone https://github.com/EmbarkStudios/wg-ui.git && cd wg-ui
|
||||
```
|
||||
|
||||
### Build frontend
|
||||
### Build binary with ui
|
||||
|
||||
```
|
||||
make build
|
||||
```
|
||||
|
||||
### Crosscompiling
|
||||
|
||||
```
|
||||
make build-amd64
|
||||
```
|
||||
|
||||
```
|
||||
make build-armv5
|
||||
```
|
||||
|
||||
```
|
||||
make build-armv6
|
||||
```
|
||||
|
||||
```
|
||||
make build-armv7
|
||||
```
|
||||
|
||||
### Build step by step
|
||||
|
||||
```
|
||||
make ui
|
||||
```
|
||||
|
||||
### Build Go binary
|
||||
|
||||
```
|
||||
go get -u github.com/go-bindata/go-bindata/...
|
||||
go get github.com/elazarl/go-bindata-assetfs/...
|
||||
make go-binary
|
||||
```
|
||||
|
||||
### Build Go binary for ARM
|
||||
|
||||
```
|
||||
env GOOS=linux GOARCH=arm GOARM=5 go build .
|
||||
make assets
|
||||
make build
|
||||
```
|
||||
|
||||
## Developing
|
||||
@@ -111,10 +123,8 @@ npm run --prefix=ui dev
|
||||
### Use frontend server when running the server
|
||||
|
||||
```
|
||||
go get -u github.com/go-bindata/go-bindata/...
|
||||
go get github.com/elazarl/go-bindata-assetfs/...
|
||||
make go-binary
|
||||
sudo ./wireguard-ui --log-level=debug --dev-ui-server http://localhost:5000
|
||||
make build
|
||||
sudo ./bin/wireguard-ui --log-level=debug --dev-ui-server http://localhost:5000
|
||||
```
|
||||
|
||||
## Contributing
|
||||
|
||||
Reference in New Issue
Block a user