2021-06-22 01:33:42 +02:00
|
|
|
#!/usr/bin/env bash
|
2022-01-26 19:48:46 +01:00
|
|
|
cd "$(dirname "$(readlink -f "$0" || realpath "$0")")/.."
|
|
|
|
|
|
|
|
|
2021-06-22 01:33:42 +02:00
|
|
|
rm $(find . -name "*.qmlc")
|
|
|
|
rm $(find . -name "*.pyc")
|
|
|
|
python3 -m pip install -U pyinstaller
|
2022-01-20 18:19:36 +01:00
|
|
|
|
2022-01-24 16:16:58 +01:00
|
|
|
# Building translations
|
2022-01-20 18:19:36 +01:00
|
|
|
cd "LogarithmPlotter/i18n/"
|
|
|
|
bash release.sh
|
|
|
|
cd ../../
|
|
|
|
|
2021-06-22 18:39:03 +02:00
|
|
|
pyinstaller --add-data "LogarithmPlotter/qml:qml" \
|
2022-01-20 18:19:36 +01:00
|
|
|
--add-data "LogarithmPlotter/i18n:i18n" \
|
2021-06-22 01:33:42 +02:00
|
|
|
--add-data "LICENSE.md:." \
|
2021-07-11 22:46:21 +02:00
|
|
|
--add-data "mac/logarithmplotterfile.icns:." \
|
2021-06-22 01:33:42 +02:00
|
|
|
--add-data "README.md:." \
|
|
|
|
--exclude-module "FixTk" \
|
|
|
|
--exclude-module "tcl" \
|
|
|
|
--exclude-module "tk" \
|
|
|
|
--exclude-module "_tkinter" \
|
|
|
|
--exclude-module "tkinter" \
|
|
|
|
--exclude-module "Tkinter" \
|
|
|
|
--noconsole \
|
|
|
|
--noconfirm \
|
|
|
|
--icon=mac/logarithmplotter.icns \
|
2021-07-19 19:06:29 +02:00
|
|
|
--osx-bundle-identifier eu.ad5001.LogarithmPlotter \
|
2021-06-22 01:33:42 +02:00
|
|
|
-n LogarithmPlotter \
|
2021-08-16 19:50:54 +02:00
|
|
|
LogarithmPlotter/logarithmplotter.py
|
2021-07-11 22:46:21 +02:00
|
|
|
|
|
|
|
cp mac/Info.plist dist/LogarithmPlotter.app/Contents/Info.plist
|