Skip to content

Commit

Permalink
strip debug info from builds
Browse files Browse the repository at this point in the history
  • Loading branch information
lian committed Aug 28, 2020
1 parent 8334fab commit 9e8bf05
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions build-vfrmap.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#!/bin/bash
set -e

go generate github.com/lian/msfs2020-go/simconnect
go generate github.com/lian/msfs2020-go/vfrmap
go generate github.com/lian/msfs2020-go/vfrmap/html/leafletjs
[ -x "$(command -v go-bindata)" ] && go generate github.com/lian/msfs2020-go/simconnect
[ -x "$(command -v go-bindata)" ] && go generate github.com/lian/msfs2020-go/vfrmap
[ -x "$(command -v go-bindata)" ] && go generate github.com/lian/msfs2020-go/vfrmap/html/leafletjs

build_time=$(date -u +'%Y-%m-%d_%T')
set +e
build_version=$(git describe --tags)
set -e

GOOS=windows GOARCH=amd64 go build -ldflags "-X main.buildVersion=$build_version -X main.buildTime=$build_time" -v github.com/lian/msfs2020-go/vfrmap
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags "-s -w -X main.buildVersion=$build_version -X main.buildTime=$build_time" -v github.com/lian/msfs2020-go/vfrmap

0 comments on commit 9e8bf05

Please sign in to comment.