Reorganizing paths
This commit is contained in:
parent
e9d204daab
commit
34cb856dd4
249 changed files with 118 additions and 294 deletions
|
@ -1,20 +1,17 @@
|
|||
#!/usr/bin/env bash
|
||||
DIR="$(cd -P "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
cd "$DIR/.."
|
||||
cd "$DIR/.." || exit 1
|
||||
|
||||
rm -rf build
|
||||
bash scripts/build.sh
|
||||
cd build || exit 1
|
||||
|
||||
rm $(find . -name "*.qmlc")
|
||||
rm $(find . -name "*.pyc")
|
||||
|
||||
# Building translations
|
||||
cd "LogarithmPlotter/i18n/"
|
||||
bash release.sh
|
||||
cd ../../
|
||||
|
||||
pyinstaller --add-data "LogarithmPlotter/qml:qml" \
|
||||
--add-data "LogarithmPlotter/i18n:i18n" \
|
||||
--add-data "LICENSE.md:." \
|
||||
--add-data "mac/logarithmplotterfile.icns:." \
|
||||
--add-data "../assets/native/mac/logarithmplotterfile.icns:." \
|
||||
--add-data "README.md:." \
|
||||
--exclude-module "FixTk" \
|
||||
--exclude-module "tcl" \
|
||||
|
@ -24,21 +21,19 @@ pyinstaller --add-data "LogarithmPlotter/qml:qml" \
|
|||
--exclude-module "Tkinter" \
|
||||
--noconsole \
|
||||
--noconfirm \
|
||||
--icon=mac/logarithmplotter.icns \
|
||||
--icon=../assets/native/mac/logarithmplotter.icns \
|
||||
--osx-bundle-identifier eu.ad5001.LogarithmPlotter \
|
||||
-n LogarithmPlotter \
|
||||
LogarithmPlotter/logarithmplotter.py
|
||||
|
||||
cp mac/Info.plist dist/LogarithmPlotter.app/Contents/Info.plist
|
||||
cp ../assets/native/mac/Info.plist dist/LogarithmPlotter.app/Contents/Info.plist
|
||||
|
||||
# Remove QtWebEngine, 3D and all other unused libs libs
|
||||
rm -rf dist/LogarithmPlotter.app/Contents/MacOS/{QtWeb*,*3D*,QtRemote*,QtPdf,QtCharts,QtLocation,QtTest,QtMultimedia,QtSpatialAudio,QtDataVisualization,QtQuickParticles,QtChartsQml,QtScxml,QtDataVisualizationQml,QtTest,QtPositioningQuick,QtQuickTest,QtSql,QtSensorsQuick}
|
||||
rm -rf dist/LogarithmPlotter.app/Contents/MacOS/PySide6/{QtNetwork.abi3.so}
|
||||
|
||||
# Removing QtQuick3D
|
||||
rm -rf dist/LogarithmPlotter.app/Contents/MacOS/PySide6/Qt/qml/QtQuick3D
|
||||
rm -rf dist/LogarithmPlotter.app/Contents/MacOS/PySide6/Qt/qml/Qt3D
|
||||
rm -rf dist/LogarithmPlotter.app/Contents/MacOS/PySide6/Qt/qml/QtWebEngine
|
||||
rm -rf dist/LogarithmPlotter.app/Contents/MacOS/PySide6/Qt/qml/{QtQuick3D,Qt3D,QtWebEngine}
|
||||
|
||||
# Remove the QtQuick styles that are unused
|
||||
rm -rf dist/LogarithmPlotter.app/Contents/MacOS/PySide6/Qt/qml/QtQuick/Controls/{Imagine,Material,iOS,Universal,designer}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue