diff options
author | Oliver Schneider <oliver@assarbad.net> | 2017-11-16 22:26:43 +0300 |
---|---|---|
committer | Oliver Schneider <oliver@assarbad.net> | 2017-11-16 22:26:43 +0300 |
commit | 8ab90e44e7c518aff890b9981639bd04d34095c8 (patch) | |
tree | 2dc044d0977e2f5b7c00898660a955b3f5ccdab1 /public_build.cmd | |
parent | 89d059c3fcfdcac814c3d5705b2c03a220ac3f3f (diff) |
Removed the duplicate icons and bitmaps
Renaming the script for builds, planning to also use that for other than release build types
Renamed one of the WiX language files
Diffstat (limited to 'public_build.cmd')
-rw-r--r-- | public_build.cmd | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/public_build.cmd b/public_build.cmd new file mode 100644 index 0000000..deffe10 --- /dev/null +++ b/public_build.cmd @@ -0,0 +1,30 @@ +@echo off +setlocal ENABLEEXTENSIONS & pushd . +set TGTNAME=wds +set PRJNAME=%TGTNAME%_release +set SIGURL=https://windirstat.net +set SIGDESC=WinDirStat +call "%~dp0common\hgid.cmd" +premake4.exe --release vs2005 +call "setvcvars.cmd" 2005 +:: premake4.exe --release --xp vs2017 +:: call "setvcvars.cmd" 2017 +echo %VCVER_FRIENDLY% +vcbuild.exe /time /rebuild /showenv /M1 /nologo "/htmllog:$(SolutionDir)buildlog.html" "%~dp0%PRJNAME%.vs8.sln" "$ALL" +del /f %PRJNAME%\*.idb +rd /s /q "%~dp0%PRJNAME%_intermediate" +set SEVENZIP=%ProgramFiles%\7-Zip\7z.exe +if not exist "%SEVENZIP%" set SEVENZIP=%ProgramFiles(x86)%\7-Zip\7z.exe +for /f %%i in ('hg id -i') do @set RELEASE=%%i +for /f %%i in ('hg id -n') do @set RELEASE=%%i-%RELEASE% +set RELARCHIVE=%~dp0%TGTNAME%-%RELEASE%.7z +if exist "%SEVENZIP%" @( + pushd "%~dp0%PRJNAME%" + "%SEVENZIP%" a -y -t7z "%RELARCHIVE%" "*.exe" "*.pdb" "*.wdslng" + gpg -ba %RELARCHIVE% + popd +) +:: msbuild.exe "%~dp0\setup\wds_setup.wixproj" +:: Sign the MSIs +:: Create NSIS wrapper +popd & endlocal & goto :EOF |