LogarithmPlotter/scripts/build-windows.bat
Ad5001 66da751b36
All checks were successful
continuous-integration/drone/push Build is passing
Updating windows builders for pyside6 (halving the bundled installer size)
2023-05-26 06:25:29 +02:00

18 lines
747 B
Batchfile

rem Make sure pyinstaller is installed
python -m pip install -U pyinstaller
rem Building translations
cd "LogarithmPlotter\i18n"
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