Skip to content

Commit

Permalink
Fix for build script
Browse files Browse the repository at this point in the history
  • Loading branch information
lkarlslund committed Aug 26, 2022
1 parent df2a31b commit 9ca2a86
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ function BuildVariants {

Set-Location $PSScriptRoot

$BUILDDATE = Get-Date -Format "yyyyMMdd"

$COMMIT = git rev-parse --short HEAD
$VERSION = git describe --tags --exclude latest
$DIRTYFILES = git status --porcelain
Expand All @@ -39,7 +37,7 @@ if ("$DIRTYFILES" -ne "") {
$VERSION = "$VERSION-local-changes"
}

$LDFLAGS = "-X github.com/lkarlslund/adalanche/modules/version.Program=adalanche -X github.com/lkarlslund/adalanche/modules/version.Builddate=$BUILDDATE -X github.com/lkarlslund/adalanche/modules/version.Commit=$COMMIT -X github.com/lkarlslund/adalanche/modules/version.Version=$VERSION"
$LDFLAGS = "-X github.com/lkarlslund/adalanche/modules/version.Commit=$COMMIT -X github.com/lkarlslund/adalanche/modules/version.Version=$VERSION"

# Release
BuildVariants -ldflags "$LDFLAGS -s"

0 comments on commit 9ca2a86

Please sign in to comment.