Skip to content

Commit

Permalink
#15 Add Version Number
Browse files Browse the repository at this point in the history
  • Loading branch information
Dumuzy committed Dec 10, 2022
1 parent 358f70d commit 2f4197a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 7 additions & 4 deletions create-pack.cmd
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@

set vers=1.0.1
set temp0=C:\tmp\cpp\
set tempdir=%temp0%ChessPuzzlePecker
set packname=CPPecker_%vers%
set tempdir=%temp0%%packname%



md %tempdir%
Expand All @@ -18,10 +20,11 @@ xcopy *.json %tempdir%

cd %tempdir%\..

7za a -tzip ChessPuzzlePecker ChessPuzzlePecker
7za a -tzip cpp %packname%
rename cpp.zip %packname%.zip

del /Q %tempdir%\*.*
rd %tempdir%

echo off
echo "ChessPuzzlePecker.zip created in %temp0%"
echo "%packname%.zip created in %temp0%"
2 changes: 2 additions & 0 deletions src/ChessUI/ChessPuzzlePecker.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
<UseWindowsForms>true</UseWindowsForms>
<StartupObject>ChessUI.Program</StartupObject>
<UseWPF>False</UseWPF>
<VersionPrefix>1.0.1</VersionPrefix>
<Version>$(VersionPrefix)</Version>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 2f4197a

Please sign in to comment.