Skip to content

Commit

Permalink
Reduced filesize from 8MB to about 2 MB
Browse files Browse the repository at this point in the history
  • Loading branch information
woehrl01 committed Dec 9, 2019
1 parent c0eb6d8 commit 6aeef28
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion release.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ $now = Get-Date -UFormat "%Y-%m-%d_%T"
$sha1 = (git rev-parse HEAD).Trim().Substring(0, 8)
$version = (git describe --tags $(git rev-list --tags --max-count=1)).Trim()

go build -ldflags "-X main.sha1ver=$sha1 -X main.buildTime=$now -X main.semVer=$version -H=windowsgui" -o Kalenderwoche.exe
go build -ldflags "-s -w -X main.sha1ver=$sha1 -X main.buildTime=$now -X main.semVer=$version -H=windowsgui" -o Kalenderwoche.exe
upx .\Kalenderwoche.exe

0 comments on commit 6aeef28

Please sign in to comment.