build.zip.bat 672 B

1234567891011121314151617181920212223242526
  1. rem Prepare
  2. set /p VERSION=<%~dp0\..\..\..\..\VERSION
  3. set FOLDER=APK Editor Studio v%VERSION%
  4. rem Build
  5. cmake "%~dp0\..\..\..\.." ^
  6. -A Win32 ^
  7. -B build ^
  8. -DCMAKE_BUILD_TYPE=Release ^
  9. -DCMAKE_PREFIX_PATH="%QTDIR%" ^
  10. -DOPENSSL_ROOT_DIR=%OPENSSL% ^
  11. -DPORTABLE=ON
  12. cmake --build build --config Release || exit /b
  13. cmake --install build --prefix "%FOLDER%"
  14. del "%FOLDER%\imageformats\qtga.dll"
  15. del "%FOLDER%\imageformats\qtiff.dll"
  16. del "%FOLDER%\imageformats\qwbmp.dll"
  17. rmdir /s /q "%FOLDER%\bearer"
  18. rmdir /s /q "%FOLDER%\iconengines"
  19. rem Package
  20. set ARCHIVE=apk-editor-studio_windows_%VERSION%.zip
  21. 7z a -tzip -mx=9 "%ARCHIVE%" "%FOLDER%" || exit /b