LogarithmPlotter/scripts/build-windows.bat

18 lines
747 B
Batchfile
Raw Permalink Normal View History

rem Make sure pyinstaller is installed
python -m pip install -U pyinstaller
2022-01-24 15:16:58 +00:00
rem Building translations
cd "LogarithmPlotter\i18n"
2022-01-24 15:16:58 +00:00
cmd release.sh
cd ..\..
pyinstaller --add-data "logplotter.svg;." --add-data "LogarithmPlotter/qml;qml" --add-data "LogarithmPlotter/i18n;i18n" --noconsole LogarithmPlotter/logarithmplotter.py --icon=win/logarithmplotter.ico -n logarithmplotter
rem Remove QtWebEngine
del dist\logarithmplotter\PySide6\Qt6WebEngineCore.dll
rem Remove the QtQuick styles that are unused
rmdir dist\logarithmplotter\PySide6\qml\QtQuick\Controls\Imagine /s /q
rmdir dist\logarithmplotter\PySide6\qml\QtQuick\Controls\Material /s /q
rmdir dist\logarithmplotter\PySide6\qml\QtQuick\Controls\designer /s /q
rem Remove unused translations