Skip to content

Commit 7917f2c

Browse files
committed
write version to text file in build script
1 parent 3f16e7f commit 7917f2c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

build.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ version="$1"
1212

1313
echo "Building version $version"
1414

15+
# 2. Write the version to version.txt. This is read by the UI to know the current version.
16+
echo "$version" > AvaGui/version.txt
17+
1518
## 2. Build the project for different platforms
1619
echo "Building"
1720
dotnet publish AvaGui/AvaGui.csproj -c Release -p:PublishSingleFile=true -p:Version=$version --self-contained --runtime win-x64

0 commit comments

Comments
 (0)