2023-05-26 04:25:29 +00:00
|
|
|
rem Make sure pyinstaller is installed
|
|
|
|
python -m pip install -U pyinstaller
|
2022-01-20 17:19:36 +00:00
|
|
|
|
2022-01-24 15:16:58 +00:00
|
|
|
rem Building translations
|
2022-01-20 17:19:36 +00:00
|
|
|
cd "LogarithmPlotter\i18n"
|
2022-01-24 15:16:58 +00:00
|
|
|
cmd release.sh
|
2022-01-20 17:19:36 +00:00
|
|
|
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
|
2023-05-26 04:25:29 +00:00
|
|
|
|
|
|
|
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
|