build.sh 276 B

12345678910111213
  1. #!/bin/bash
  2. PATH=$PATH:~/go/bin
  3. # go get -u github.com/gobuffalo/packr/v2/packr2
  4. cd frontend && npm install && npm run build && cd ..
  5. packr2
  6. CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -ldflags "-linkmode external -extldflags -static -s -w" -o ovpn-admin
  7. packr2 clean