1
0
Fork 0
mirror of synced 2024-11-17 22:45:34 -05:00
ovpn-admin/build.sh
2021-02-26 15:11:13 +03:00

12 lines
279 B
Bash
Executable file

#!/bin/bash
PATH=$PATH:~/go/bin
# go get -u github.com/gobuffalo/packr/v2/packr2
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 openvpn-admin
packr2 clean