1
0
Fork 0
mirror of synced 2024-06-26 19:01:09 -04:00
ovpn-admin/build.sh
2021-10-21 13:01:03 +03:00

12 lines
235 B
Bash
Executable file

#!/usr/bin/env bash
PATH=$PATH:~/go/bin
cd frontend && npm install && npm run build && cd ..
packr2
CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -ldflags "-linkmode external -extldflags -static -s -w" -o ovpn-admin
packr2 clean