build.msi.bat 607 B

123456789101112131415161718192021
  1. rem Prepare
  2. set /p VERSION=<%~dp0\..\..\..\..\VERSION
  3. rem Build
  4. cmake "%~dp0\..\..\..\.." ^
  5. -A Win32 ^
  6. -B build ^
  7. -DCMAKE_BUILD_TYPE=Release ^
  8. -DCMAKE_RUNTIME_OUTPUT_DIRECTORY=. ^
  9. -DCMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE=. ^
  10. -DCMAKE_PREFIX_PATH="%QTDIR%" ^
  11. -DOPENSSL_ROOT_DIR=%OPENSSL%
  12. cmake --build build --config Release || exit /b
  13. rem Package
  14. set OUTPUT=apk-editor-studio_windows_%VERSION%.msi
  15. candle -dDistDir=build -arch x86 -ext WixUIExtension "%~dp0\wix\main.wxs" "%~dp0\wix\ui.wxs" || exit /b
  16. light -out %OUTPUT% -ext WixUIExtension main.wixobj ui.wixobj || exit /b