Skip to content

Commit 620d63c

Browse files
committed
chore(build): Default to dev version if unset
1 parent b291a05 commit 620d63c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CONTRIBUTING.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,6 @@ $ dotnet tool install --global wix --version 5.0.0
163163
Now use the `pkg` target from the `./make.bat` script to build the MSI package.
164164

165165
```
166-
$ $env:VERSION="0.0.0"
167166
$ ./make.bat pkg
168167
```
169168

make.bat

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ set GOTEST=go test -timeout=10m -v -gcflags=all=-d=checkptr=0
2222
set GOFMT=gofmt -e -s -l -w
2323
set GOLINT=%GOBIN%\golangci-lint
2424

25+
if NOT DEFINED VERSION (
26+
set VERSION="0.0.0"
27+
)
28+
2529
FOR /F "tokens=* USEBACKQ" %%F IN (`powershell -Command get-date -format "{dd-MM-yyyy.HH:mm:ss}"`) DO (
2630
SET BUILD_DATE=%%F
2731
)

0 commit comments

Comments
 (0)