Browse Source

fix: added missing ldflags to normal builds

dependabot/npm_and_yarn/web/prismjs-1.21.0
Max Schmitt 8 years ago
parent
commit
7b1da8b3c4
  1. 2
      Makefile
  2. 6
      static/package.json

2
Makefile

@ -23,7 +23,7 @@ getGoDependencies:
buildProject: buildProject:
rm -rf releases rm -rf releases
mkdir releases mkdir releases
gox -output="releases/{{.Dir}}_{{.OS}}_{{.Arch}}/{{.Dir}}" -osarch="linux/amd64 linux/arm windows/amd64 windows/386" gox -output="releases/{{.Dir}}_{{.OS}}_{{.Arch}}/{{.Dir}}" -osarch="linux/amd64 linux/arm windows/amd64 windows/386" -ldflags="-X github.com/maxibanki/golang-url-shortener/util.ldFlagNodeJS=`node --version` -X github.com/maxibanki/golang-url-shortener/util.ldFlagCommit=`git rev-parse HEAD` -X github.com/maxibanki/golang-url-shortener/util.ldFlagYarn=`yarn --version` -X github.com/maxibanki/golang-url-shortener/util.ldFlagCompilationTime=`date --iso-8601=seconds`"
find releases -maxdepth 1 -mindepth 1 -type d -exec cp build/config.yaml {} \; find releases -maxdepth 1 -mindepth 1 -type d -exec cp build/config.yaml {} \;
find releases -maxdepth 1 -mindepth 1 -type d -exec tar -cvjf {}.tar.bz2 {} \; find releases -maxdepth 1 -mindepth 1 -type d -exec tar -cvjf {}.tar.bz2 {} \;

6
static/package.json

@ -4,12 +4,10 @@
"private": true, "private": true,
"proxy": { "proxy": {
"/api": { "/api": {
"target": "http://127.0.0.1:8080", "target": "http://127.0.0.1:8080"
"ws": true
}, },
"/d": { "/d": {
"target": "http://127.0.0.1:8080", "target": "http://127.0.0.1:8080"
"ws": true
} }
}, },
"dependencies": { "dependencies": {

Loading…
Cancel
Save