set /p Build=<ver.txt

echo Building version %Build%

fart ..\Properties\AssemblyInfo.cs 1.0.0.0  1.0.%Build%
"C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\DEVENV"   ..\..\Budford.sln /Rebuild Release

call "c:\Program Files (x86)\NSIS\Bin\makensis.exe" Budford.nsi
ren "Budford - Setup.exe" "Budford - Setup - V1.0.%Build%.exe" 

set /a Build=%Build%+1
echo %Build% > ver.txt

git commit -m "New release" ver.txt
git status
git push origin master
git checkout ..\..

set /p Build=<ver.txt

echo Building version %Build%

fart ..\Properties\AssemblyInfo.cs 1.0.0.0  1.0.%Build%
"C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\DEVENV"   ..\..\Budford.sln /Rebuild Release

call "c:\Program Files (x86)\NSIS\Bin\makensis.exe" Budford.nsi
ren "Budford - Setup.exe" "Budford - Setup - V1.0.%Build%.exe" 

"C:\Program Files\7-Zip\7z.exe" a "Budford - V1.0.%Build%.zip" Users 
"C:\Program Files\7-Zip\7z.exe" a "Budford - V1.0.%Build%.zip" Budford.exe
"C:\Program Files\7-Zip\7z.exe" a "Budford - V1.0.%Build%.zip" CNUSLib.dll
"C:\Program Files\7-Zip\7z.exe" a "Budford - V1.0.%Build%.zip" discord-rpc.dll

set /a Build=%Build%+1
echo %Build% > ver.txt

git commit -m "New release" ver.txt
git status
git push origin master
git checkout ..\..

Build script now creates zip
Build script now creates zip
