compile_ui.bat 697 B

1234567891011121314151617181920212223242526272829303132333435
  1. @ECHO OFF
  2. set OSGEO4W_ROOT=C:\Program Files\QGIS 3.4
  3. set PATH=%OSGEO4W_ROOT%\bin;%PATH%
  4. set PATH=%PATH%;%OSGEO4W_ROOT%\apps\qgis\bin
  5. @echo off
  6. call "%OSGEO4W_ROOT%\bin\o4w_env.bat"
  7. call "%OSGEO4W_ROOT%\bin\qt5_env.bat"
  8. call "%OSGEO4W_ROOT%\bin\py3_env.bat"
  9. @echo off
  10. path %OSGEO4W_ROOT%\apps\qgis-dev\bin;%OSGEO4W_ROOT%\apps\grass\grass-7.2.2\lib;%OSGEO4W_ROOT%\apps\grass\grass-7.2.2\bin;%PATH%
  11. cd /d %~dp0
  12. @ECHO ON
  13. ::Ui Compilation
  14. call pyuic5 ui\custom_dialog_base.ui -o gui\generated\ui_custom_dialog_base.py
  15. ::Resources
  16. call pyrcc5 resources.qrc -o gui\generated\resources_rc.py
  17. @ECHO OFF
  18. GOTO END
  19. :ERROR
  20. echo "Failed!"
  21. set ERRORLEVEL=%ERRORLEVEL%
  22. pause
  23. :END
  24. @ECHO ON
  25. Pause