diff --git a/.gitignore b/.gitignore index 3961125..0bfb625 100644 --- a/.gitignore +++ b/.gitignore @@ -2,10 +2,10 @@ build/ dist/ deb_dist/ -assets/linux/flatpak/AppDir -assets/linux/flatpak/repo -assets/linux/flatpak/build-dir -assets/linux/flatpak/.flatpak-builder +linux/flatpak/AppDir +linux/flatpak/repo +linux/flatpak/build-dir +linux/flatpak/.flatpak-builder *.snap *.spec *.zip @@ -38,7 +38,7 @@ docs/html *.lgg # npm -common/node_modules -common/coverage/ -common/.coverage -runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/index.mjs* +node_modules +coverage/ +.coverage +LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/index.mjs* diff --git a/.gitmodules b/.gitmodules index 042c634..df81e42 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,3 @@ -[submodule "runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/MixedMenu"] - path = runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/MixedMenu +[submodule "LogarithmPlotter/qml/eu/ad5001/MixedMenu"] + path = LogarithmPlotter/qml/eu/ad5001/MixedMenu url = https://git.ad5001.eu/Ad5001/MixedMenu diff --git a/common/.mocharc.jsonc b/.mocharc.jsonc similarity index 96% rename from common/.mocharc.jsonc rename to .mocharc.jsonc index 56a6b31..5fa553a 100644 --- a/common/.mocharc.jsonc +++ b/.mocharc.jsonc @@ -20,6 +20,6 @@ "recursive": true, "require": [ "esm", - "./test/hooks.mjs" + "./tests/js/hooks.mjs" ] -} +} \ No newline at end of file diff --git a/runtime-pyside6/LogarithmPlotter/__init__.py b/LogarithmPlotter/__init__.py similarity index 100% rename from runtime-pyside6/LogarithmPlotter/__init__.py rename to LogarithmPlotter/__init__.py diff --git a/assets/i18n/lp_de.ts b/LogarithmPlotter/i18n/lp_de.ts similarity index 100% rename from assets/i18n/lp_de.ts rename to LogarithmPlotter/i18n/lp_de.ts diff --git a/assets/i18n/lp_en.ts b/LogarithmPlotter/i18n/lp_en.ts similarity index 100% rename from assets/i18n/lp_en.ts rename to LogarithmPlotter/i18n/lp_en.ts diff --git a/assets/i18n/lp_es.ts b/LogarithmPlotter/i18n/lp_es.ts similarity index 100% rename from assets/i18n/lp_es.ts rename to LogarithmPlotter/i18n/lp_es.ts diff --git a/assets/i18n/lp_fr.ts b/LogarithmPlotter/i18n/lp_fr.ts similarity index 100% rename from assets/i18n/lp_fr.ts rename to LogarithmPlotter/i18n/lp_fr.ts diff --git a/assets/i18n/lp_hu.ts b/LogarithmPlotter/i18n/lp_hu.ts similarity index 100% rename from assets/i18n/lp_hu.ts rename to LogarithmPlotter/i18n/lp_hu.ts diff --git a/assets/i18n/lp_nb_NO.ts b/LogarithmPlotter/i18n/lp_nb_NO.ts similarity index 100% rename from assets/i18n/lp_nb_NO.ts rename to LogarithmPlotter/i18n/lp_nb_NO.ts diff --git a/assets/i18n/lp_template.ts b/LogarithmPlotter/i18n/lp_template.ts similarity index 100% rename from assets/i18n/lp_template.ts rename to LogarithmPlotter/i18n/lp_template.ts diff --git a/assets/i18n/release.sh b/LogarithmPlotter/i18n/release.sh similarity index 100% rename from assets/i18n/release.sh rename to LogarithmPlotter/i18n/release.sh diff --git a/assets/i18n/update.sh b/LogarithmPlotter/i18n/update.sh similarity index 100% rename from assets/i18n/update.sh rename to LogarithmPlotter/i18n/update.sh diff --git a/runtime-pyside6/LogarithmPlotter/logarithmplotter.py b/LogarithmPlotter/logarithmplotter.py similarity index 100% rename from runtime-pyside6/LogarithmPlotter/logarithmplotter.py rename to LogarithmPlotter/logarithmplotter.py diff --git a/assets/logarithmplotter.svg b/LogarithmPlotter/logarithmplotter.svg similarity index 100% rename from assets/logarithmplotter.svg rename to LogarithmPlotter/logarithmplotter.svg diff --git a/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/AppMenuBar.qml b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/AppMenuBar.qml similarity index 100% rename from runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/AppMenuBar.qml rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/AppMenuBar.qml diff --git a/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/History/History.qml b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/History/History.qml similarity index 100% rename from runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/History/History.qml rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/History/History.qml diff --git a/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/History/HistoryBrowser.qml b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/History/HistoryBrowser.qml similarity index 100% rename from runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/History/HistoryBrowser.qml rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/History/HistoryBrowser.qml diff --git a/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/History/HistoryItem.qml b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/History/HistoryItem.qml similarity index 100% rename from runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/History/HistoryItem.qml rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/History/HistoryItem.qml diff --git a/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/History/qmldir b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/History/qmldir similarity index 100% rename from runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/History/qmldir rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/History/qmldir diff --git a/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/LogGraphCanvas.qml b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/LogGraphCanvas.qml similarity index 100% rename from runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/LogGraphCanvas.qml rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/LogGraphCanvas.qml diff --git a/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/LogarithmPlotter.qml b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/LogarithmPlotter.qml similarity index 100% rename from runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/LogarithmPlotter.qml rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/LogarithmPlotter.qml diff --git a/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/Editor/CustomPropertyList.qml b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/Editor/CustomPropertyList.qml similarity index 100% rename from runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/Editor/CustomPropertyList.qml rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/Editor/CustomPropertyList.qml diff --git a/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/Editor/Dialog.qml b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/Editor/Dialog.qml similarity index 100% rename from runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/Editor/Dialog.qml rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/Editor/Dialog.qml diff --git a/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/Editor/qmldir b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/Editor/qmldir similarity index 100% rename from runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/Editor/qmldir rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/Editor/qmldir diff --git a/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/ObjectCreationGrid.qml b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/ObjectCreationGrid.qml similarity index 100% rename from runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/ObjectCreationGrid.qml rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/ObjectCreationGrid.qml diff --git a/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/ObjectLists.qml b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/ObjectLists.qml similarity index 100% rename from runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/ObjectLists.qml rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/ObjectLists.qml diff --git a/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/ObjectRow.qml b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/ObjectRow.qml similarity index 100% rename from runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/ObjectRow.qml rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/ObjectRow.qml diff --git a/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/qmldir b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/qmldir similarity index 100% rename from runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/qmldir rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/qmldir diff --git a/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/PickLocationOverlay.qml b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/PickLocationOverlay.qml similarity index 100% rename from runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/PickLocationOverlay.qml rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/PickLocationOverlay.qml diff --git a/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/About.qml b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/About.qml similarity index 100% rename from runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/About.qml rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/About.qml diff --git a/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/Alert.qml b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/Alert.qml similarity index 100% rename from runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/Alert.qml rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/Alert.qml diff --git a/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/BaseDialog.qml b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/BaseDialog.qml similarity index 100% rename from runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/BaseDialog.qml rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/BaseDialog.qml diff --git a/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/Changelog.qml b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/Changelog.qml similarity index 100% rename from runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/Changelog.qml rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/Changelog.qml diff --git a/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/FileDialog.qml b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/FileDialog.qml similarity index 100% rename from runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/FileDialog.qml rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/FileDialog.qml diff --git a/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/GreetScreen.qml b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/GreetScreen.qml similarity index 100% rename from runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/GreetScreen.qml rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/GreetScreen.qml diff --git a/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/InsertCharacter.qml b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/InsertCharacter.qml similarity index 100% rename from runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/InsertCharacter.qml rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/InsertCharacter.qml diff --git a/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/Preferences.qml b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/Preferences.qml similarity index 100% rename from runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/Preferences.qml rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/Preferences.qml diff --git a/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/ThanksTo.qml b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/ThanksTo.qml similarity index 100% rename from runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/ThanksTo.qml rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/ThanksTo.qml diff --git a/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/qmldir b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/qmldir similarity index 100% rename from runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/qmldir rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/qmldir diff --git a/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Setting/AutocompletionCategory.qml b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Setting/AutocompletionCategory.qml similarity index 100% rename from runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Setting/AutocompletionCategory.qml rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Setting/AutocompletionCategory.qml diff --git a/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Setting/ComboBoxSetting.qml b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Setting/ComboBoxSetting.qml similarity index 100% rename from runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Setting/ComboBoxSetting.qml rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Setting/ComboBoxSetting.qml diff --git a/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Setting/ExpressionEditor.qml b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Setting/ExpressionEditor.qml similarity index 100% rename from runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Setting/ExpressionEditor.qml rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Setting/ExpressionEditor.qml diff --git a/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Setting/Icon.qml b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Setting/Icon.qml similarity index 100% rename from runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Setting/Icon.qml rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Setting/Icon.qml diff --git a/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Setting/ListSetting.qml b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Setting/ListSetting.qml similarity index 100% rename from runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Setting/ListSetting.qml rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Setting/ListSetting.qml diff --git a/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Setting/TextSetting.qml b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Setting/TextSetting.qml similarity index 100% rename from runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Setting/TextSetting.qml rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Setting/TextSetting.qml diff --git a/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Setting/qmldir b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Setting/qmldir similarity index 100% rename from runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Setting/qmldir rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Setting/qmldir diff --git a/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Settings.qml b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Settings.qml similarity index 100% rename from runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Settings.qml rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Settings.qml diff --git a/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ViewPositionChangeOverlay.qml b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ViewPositionChangeOverlay.qml similarity index 100% rename from runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ViewPositionChangeOverlay.qml rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ViewPositionChangeOverlay.qml diff --git a/assets/icons/common/angle.svg b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/common/angle.svg similarity index 100% rename from assets/icons/common/angle.svg rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/common/angle.svg diff --git a/assets/icons/common/appearance.svg b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/common/appearance.svg similarity index 100% rename from assets/icons/common/appearance.svg rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/common/appearance.svg diff --git a/assets/icons/common/arrow.svg b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/common/arrow.svg similarity index 100% rename from assets/icons/common/arrow.svg rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/common/arrow.svg diff --git a/assets/icons/common/close.svg b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/common/close.svg similarity index 100% rename from assets/icons/common/close.svg rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/common/close.svg diff --git a/assets/icons/common/delete.svg b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/common/delete.svg similarity index 100% rename from assets/icons/common/delete.svg rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/common/delete.svg diff --git a/assets/icons/common/label.svg b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/common/label.svg similarity index 100% rename from assets/icons/common/label.svg rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/common/label.svg diff --git a/assets/icons/common/manual.svg b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/common/manual.svg similarity index 100% rename from assets/icons/common/manual.svg rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/common/manual.svg diff --git a/assets/icons/common/new.svg b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/common/new.svg similarity index 100% rename from assets/icons/common/new.svg rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/common/new.svg diff --git a/assets/icons/common/position.svg b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/common/position.svg similarity index 100% rename from assets/icons/common/position.svg rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/common/position.svg diff --git a/assets/icons/common/settings.svg b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/common/settings.svg similarity index 100% rename from assets/icons/common/settings.svg rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/common/settings.svg diff --git a/assets/icons/common/target.svg b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/common/target.svg similarity index 100% rename from assets/icons/common/target.svg rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/common/target.svg diff --git a/assets/icons/common/text.svg b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/common/text.svg similarity index 100% rename from assets/icons/common/text.svg rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/common/text.svg diff --git a/assets/icons/history/appearance.svg b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/history/appearance.svg similarity index 100% rename from assets/icons/history/appearance.svg rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/history/appearance.svg diff --git a/assets/icons/history/create.svg b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/history/create.svg similarity index 100% rename from assets/icons/history/create.svg rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/history/create.svg diff --git a/assets/icons/history/delete.svg b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/history/delete.svg similarity index 100% rename from assets/icons/history/delete.svg rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/history/delete.svg diff --git a/assets/icons/history/modify.svg b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/history/modify.svg similarity index 100% rename from assets/icons/history/modify.svg rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/history/modify.svg diff --git a/assets/icons/history/name.svg b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/history/name.svg similarity index 100% rename from assets/icons/history/name.svg rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/history/name.svg diff --git a/assets/icons/history/position.svg b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/history/position.svg similarity index 100% rename from assets/icons/history/position.svg rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/history/position.svg diff --git a/assets/icons/history/visibility.svg b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/history/visibility.svg similarity index 100% rename from assets/icons/history/visibility.svg rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/history/visibility.svg diff --git a/assets/icons/logarithmplotter.svg b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/logarithmplotter.svg similarity index 100% rename from assets/icons/logarithmplotter.svg rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/logarithmplotter.svg diff --git a/assets/icons/objects/Function.svg b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/objects/Function.svg similarity index 100% rename from assets/icons/objects/Function.svg rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/objects/Function.svg diff --git a/assets/icons/objects/Gain Bode.svg b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/objects/Gain Bode.svg similarity index 100% rename from assets/icons/objects/Gain Bode.svg rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/objects/Gain Bode.svg diff --git a/assets/icons/objects/Phase Bode.svg b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/objects/Phase Bode.svg similarity index 100% rename from assets/icons/objects/Phase Bode.svg rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/objects/Phase Bode.svg diff --git a/assets/icons/objects/Point.svg b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/objects/Point.svg similarity index 100% rename from assets/icons/objects/Point.svg rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/objects/Point.svg diff --git a/assets/icons/objects/Repartition.svg b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/objects/Repartition.svg similarity index 100% rename from assets/icons/objects/Repartition.svg rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/objects/Repartition.svg diff --git a/assets/icons/objects/Sequence.svg b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/objects/Sequence.svg similarity index 100% rename from assets/icons/objects/Sequence.svg rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/objects/Sequence.svg diff --git a/assets/icons/objects/Text.svg b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/objects/Text.svg similarity index 100% rename from assets/icons/objects/Text.svg rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/objects/Text.svg diff --git a/assets/icons/objects/X Cursor.svg b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/objects/X Cursor.svg similarity index 100% rename from assets/icons/objects/X Cursor.svg rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/objects/X Cursor.svg diff --git a/assets/icons/settings/color.svg b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/color.svg similarity index 100% rename from assets/icons/settings/color.svg rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/color.svg diff --git a/assets/icons/settings/custom/Definition Domain.svg b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/custom/Definition Domain.svg similarity index 100% rename from assets/icons/settings/custom/Definition Domain.svg rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/custom/Definition Domain.svg diff --git a/assets/icons/settings/custom/Destination Domain.svg b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/custom/Destination Domain.svg similarity index 100% rename from assets/icons/settings/custom/Destination Domain.svg rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/custom/Destination Domain.svg diff --git a/assets/icons/settings/custom/Display Mode.svg b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/custom/Display Mode.svg similarity index 100% rename from assets/icons/settings/custom/Display Mode.svg rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/custom/Display Mode.svg diff --git a/assets/icons/settings/custom/Display Style.svg b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/custom/Display Style.svg similarity index 100% rename from assets/icons/settings/custom/Display Style.svg rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/custom/Display Style.svg diff --git a/assets/icons/settings/custom/Expression.svg b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/custom/Expression.svg similarity index 100% rename from assets/icons/settings/custom/Expression.svg rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/custom/Expression.svg diff --git a/assets/icons/settings/custom/Gain.svg b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/custom/Gain.svg similarity index 100% rename from assets/icons/settings/custom/Gain.svg rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/custom/Gain.svg diff --git a/assets/icons/settings/custom/Label Position.svg b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/custom/Label Position.svg similarity index 100% rename from assets/icons/settings/custom/Label Position.svg rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/custom/Label Position.svg diff --git a/assets/icons/settings/custom/Label X.svg b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/custom/Label X.svg similarity index 100% rename from assets/icons/settings/custom/Label X.svg rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/custom/Label X.svg diff --git a/assets/icons/settings/custom/Pass.svg b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/custom/Pass.svg similarity index 100% rename from assets/icons/settings/custom/Pass.svg rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/custom/Pass.svg diff --git a/assets/icons/settings/custom/Phase.svg b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/custom/Phase.svg similarity index 100% rename from assets/icons/settings/custom/Phase.svg rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/custom/Phase.svg diff --git a/assets/icons/settings/custom/Point Style.svg b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/custom/Point Style.svg similarity index 100% rename from assets/icons/settings/custom/Point Style.svg rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/custom/Point Style.svg diff --git a/assets/icons/settings/custom/Rounding.svg b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/custom/Rounding.svg similarity index 100% rename from assets/icons/settings/custom/Rounding.svg rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/custom/Rounding.svg diff --git a/assets/icons/settings/custom/Target Element.svg b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/custom/Target Element.svg similarity index 100% rename from assets/icons/settings/custom/Target Element.svg rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/custom/Target Element.svg diff --git a/assets/icons/settings/custom/Target Value Position.svg b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/custom/Target Value Position.svg similarity index 100% rename from assets/icons/settings/custom/Target Value Position.svg rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/custom/Target Value Position.svg diff --git a/assets/icons/settings/custom/Text.svg b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/custom/Text.svg similarity index 100% rename from assets/icons/settings/custom/Text.svg rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/custom/Text.svg diff --git a/assets/icons/settings/custom/Unit.svg b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/custom/Unit.svg similarity index 100% rename from assets/icons/settings/custom/Unit.svg rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/custom/Unit.svg diff --git a/assets/icons/settings/custom/X.svg b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/custom/X.svg similarity index 100% rename from assets/icons/settings/custom/X.svg rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/custom/X.svg diff --git a/assets/icons/settings/custom/Y.svg b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/custom/Y.svg similarity index 100% rename from assets/icons/settings/custom/Y.svg rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/custom/Y.svg diff --git a/assets/icons/settings/custom/ω_0.svg b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/custom/ω_0.svg similarity index 100% rename from assets/icons/settings/custom/ω_0.svg rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/custom/ω_0.svg diff --git a/assets/icons/settings/label.svg b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/label.svg similarity index 100% rename from assets/icons/settings/label.svg rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/label.svg diff --git a/assets/icons/settings/linewidth.svg b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/linewidth.svg similarity index 100% rename from assets/icons/settings/linewidth.svg rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/linewidth.svg diff --git a/assets/icons/settings/text.svg b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/text.svg similarity index 100% rename from assets/icons/settings/text.svg rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/text.svg diff --git a/assets/icons/settings/textsize.svg b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/textsize.svg similarity index 100% rename from assets/icons/settings/textsize.svg rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/textsize.svg diff --git a/assets/icons/settings/timeline.svg b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/timeline.svg similarity index 100% rename from assets/icons/settings/timeline.svg rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/timeline.svg diff --git a/assets/icons/settings/update.svg b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/update.svg similarity index 100% rename from assets/icons/settings/update.svg rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/update.svg diff --git a/assets/icons/settings/xaxisstep.svg b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/xaxisstep.svg similarity index 100% rename from assets/icons/settings/xaxisstep.svg rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/xaxisstep.svg diff --git a/assets/icons/settings/xlabel.svg b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/xlabel.svg similarity index 100% rename from assets/icons/settings/xlabel.svg rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/xlabel.svg diff --git a/assets/icons/settings/xmax.svg b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/xmax.svg similarity index 100% rename from assets/icons/settings/xmax.svg rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/xmax.svg diff --git a/assets/icons/settings/xmin.svg b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/xmin.svg similarity index 100% rename from assets/icons/settings/xmin.svg rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/xmin.svg diff --git a/assets/icons/settings/xzoom.svg b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/xzoom.svg similarity index 100% rename from assets/icons/settings/xzoom.svg rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/xzoom.svg diff --git a/assets/icons/settings/yaxisstep.svg b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/yaxisstep.svg similarity index 100% rename from assets/icons/settings/yaxisstep.svg rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/yaxisstep.svg diff --git a/assets/icons/settings/ylabel.svg b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/ylabel.svg similarity index 100% rename from assets/icons/settings/ylabel.svg rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/ylabel.svg diff --git a/assets/icons/settings/ymax.svg b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/ymax.svg similarity index 100% rename from assets/icons/settings/ymax.svg rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/ymax.svg diff --git a/assets/icons/settings/ymin.svg b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/ymin.svg similarity index 100% rename from assets/icons/settings/ymin.svg rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/ymin.svg diff --git a/assets/icons/settings/yzoom.svg b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/yzoom.svg similarity index 100% rename from assets/icons/settings/yzoom.svg rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/settings/yzoom.svg diff --git a/common/src/index.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/autoload.mjs similarity index 100% rename from common/src/index.mjs rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/autoload.mjs diff --git a/common/src/history/color.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/history/color.mjs similarity index 100% rename from common/src/history/color.mjs rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/history/color.mjs diff --git a/common/src/history/common.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/history/common.mjs similarity index 100% rename from common/src/history/common.mjs rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/history/common.mjs diff --git a/common/src/history/create.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/history/create.mjs similarity index 100% rename from common/src/history/create.mjs rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/history/create.mjs diff --git a/common/src/history/delete.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/history/delete.mjs similarity index 100% rename from common/src/history/delete.mjs rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/history/delete.mjs diff --git a/common/src/history/editproperty.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/history/editproperty.mjs similarity index 100% rename from common/src/history/editproperty.mjs rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/history/editproperty.mjs diff --git a/common/src/history/index.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/history/index.mjs similarity index 100% rename from common/src/history/index.mjs rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/history/index.mjs diff --git a/common/src/history/name.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/history/name.mjs similarity index 100% rename from common/src/history/name.mjs rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/history/name.mjs diff --git a/common/src/history/position.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/history/position.mjs similarity index 100% rename from common/src/history/position.mjs rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/history/position.mjs diff --git a/common/src/history/visibility.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/history/visibility.mjs similarity index 100% rename from common/src/history/visibility.mjs rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/history/visibility.mjs diff --git a/common/src/lib/expr-eval/expression.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/lib/expr-eval/expression.mjs similarity index 100% rename from common/src/lib/expr-eval/expression.mjs rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/lib/expr-eval/expression.mjs diff --git a/common/src/lib/expr-eval/instruction.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/lib/expr-eval/instruction.mjs similarity index 100% rename from common/src/lib/expr-eval/instruction.mjs rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/lib/expr-eval/instruction.mjs diff --git a/common/src/lib/expr-eval/parser.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/lib/expr-eval/parser.mjs similarity index 100% rename from common/src/lib/expr-eval/parser.mjs rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/lib/expr-eval/parser.mjs diff --git a/common/src/lib/expr-eval/parserstate.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/lib/expr-eval/parserstate.mjs similarity index 100% rename from common/src/lib/expr-eval/parserstate.mjs rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/lib/expr-eval/parserstate.mjs diff --git a/common/src/lib/expr-eval/polyfill.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/lib/expr-eval/polyfill.mjs similarity index 100% rename from common/src/lib/expr-eval/polyfill.mjs rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/lib/expr-eval/polyfill.mjs diff --git a/common/src/lib/expr-eval/tokens.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/lib/expr-eval/tokens.mjs similarity index 100% rename from common/src/lib/expr-eval/tokens.mjs rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/lib/expr-eval/tokens.mjs diff --git a/common/src/lib/polyfills/js.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/lib/polyfills/js.mjs similarity index 100% rename from common/src/lib/polyfills/js.mjs rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/lib/polyfills/js.mjs diff --git a/common/src/lib/polyfills/qt.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/lib/polyfills/qt.mjs similarity index 100% rename from common/src/lib/polyfills/qt.mjs rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/lib/polyfills/qt.mjs diff --git a/common/src/math/domain.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/math/domain.mjs similarity index 100% rename from common/src/math/domain.mjs rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/math/domain.mjs diff --git a/common/src/math/expression.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/math/expression.mjs similarity index 100% rename from common/src/math/expression.mjs rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/math/expression.mjs diff --git a/common/src/math/index.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/math/index.mjs similarity index 100% rename from common/src/math/index.mjs rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/math/index.mjs diff --git a/common/src/math/sequence.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/math/sequence.mjs similarity index 100% rename from common/src/math/sequence.mjs rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/math/sequence.mjs diff --git a/common/src/module/canvas.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/module/canvas.mjs similarity index 100% rename from common/src/module/canvas.mjs rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/module/canvas.mjs diff --git a/common/src/module/common.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/module/common.mjs similarity index 100% rename from common/src/module/common.mjs rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/module/common.mjs diff --git a/common/src/module/expreval.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/module/expreval.mjs similarity index 100% rename from common/src/module/expreval.mjs rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/module/expreval.mjs diff --git a/common/src/module/history.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/module/history.mjs similarity index 100% rename from common/src/module/history.mjs rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/module/history.mjs diff --git a/common/src/module/index.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/module/index.mjs similarity index 100% rename from common/src/module/index.mjs rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/module/index.mjs diff --git a/common/src/module/interface.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/module/interface.mjs similarity index 100% rename from common/src/module/interface.mjs rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/module/interface.mjs diff --git a/common/src/module/io.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/module/io.mjs similarity index 100% rename from common/src/module/io.mjs rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/module/io.mjs diff --git a/common/src/module/latex.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/module/latex.mjs similarity index 100% rename from common/src/module/latex.mjs rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/module/latex.mjs diff --git a/common/src/module/objects.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/module/objects.mjs similarity index 100% rename from common/src/module/objects.mjs rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/module/objects.mjs diff --git a/common/src/module/preferences.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/module/preferences.mjs similarity index 100% rename from common/src/module/preferences.mjs rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/module/preferences.mjs diff --git a/common/src/objs/autoload.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/autoload.mjs similarity index 100% rename from common/src/objs/autoload.mjs rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/autoload.mjs diff --git a/common/src/objs/bodemagnitude.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/bodemagnitude.mjs similarity index 100% rename from common/src/objs/bodemagnitude.mjs rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/bodemagnitude.mjs diff --git a/common/src/objs/bodemagnitudesum.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/bodemagnitudesum.mjs similarity index 100% rename from common/src/objs/bodemagnitudesum.mjs rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/bodemagnitudesum.mjs diff --git a/common/src/objs/bodephase.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/bodephase.mjs similarity index 100% rename from common/src/objs/bodephase.mjs rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/bodephase.mjs diff --git a/common/src/objs/bodephasesum.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/bodephasesum.mjs similarity index 100% rename from common/src/objs/bodephasesum.mjs rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/bodephasesum.mjs diff --git a/common/src/objs/common.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/common.mjs similarity index 100% rename from common/src/objs/common.mjs rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/common.mjs diff --git a/common/src/objs/distribution.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/distribution.mjs similarity index 100% rename from common/src/objs/distribution.mjs rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/distribution.mjs diff --git a/common/src/objs/function.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/function.mjs similarity index 100% rename from common/src/objs/function.mjs rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/function.mjs diff --git a/common/src/objs/point.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/point.mjs similarity index 100% rename from common/src/objs/point.mjs rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/point.mjs diff --git a/common/src/objs/sequence.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/sequence.mjs similarity index 100% rename from common/src/objs/sequence.mjs rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/sequence.mjs diff --git a/common/src/objs/text.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/text.mjs similarity index 100% rename from common/src/objs/text.mjs rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/text.mjs diff --git a/common/src/objs/xcursor.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/xcursor.mjs similarity index 100% rename from common/src/objs/xcursor.mjs rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/xcursor.mjs diff --git a/common/src/parameters.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/parameters.mjs similarity index 100% rename from common/src/parameters.mjs rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/parameters.mjs diff --git a/common/src/parsing/README.md b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/parsing/README.md similarity index 100% rename from common/src/parsing/README.md rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/parsing/README.md diff --git a/common/src/parsing/common.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/parsing/common.mjs similarity index 100% rename from common/src/parsing/common.mjs rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/parsing/common.mjs diff --git a/common/src/parsing/index.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/parsing/index.mjs similarity index 100% rename from common/src/parsing/index.mjs rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/parsing/index.mjs diff --git a/common/src/parsing/reference.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/parsing/reference.mjs similarity index 100% rename from common/src/parsing/reference.mjs rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/parsing/reference.mjs diff --git a/common/src/parsing/tokenizer.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/parsing/tokenizer.mjs similarity index 100% rename from common/src/parsing/tokenizer.mjs rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/parsing/tokenizer.mjs diff --git a/common/src/preferences/common.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/preferences/common.mjs similarity index 100% rename from common/src/preferences/common.mjs rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/preferences/common.mjs diff --git a/common/src/preferences/default.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/preferences/default.mjs similarity index 100% rename from common/src/preferences/default.mjs rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/preferences/default.mjs diff --git a/common/src/preferences/expression.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/preferences/expression.mjs similarity index 100% rename from common/src/preferences/expression.mjs rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/preferences/expression.mjs diff --git a/common/src/preferences/general.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/preferences/general.mjs similarity index 100% rename from common/src/preferences/general.mjs rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/preferences/general.mjs diff --git a/common/src/utils.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/utils.mjs similarity index 100% rename from common/src/utils.mjs rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/utils.mjs diff --git a/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/qmldir b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/qmldir similarity index 100% rename from runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/qmldir rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/qmldir diff --git a/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/MixedMenu b/LogarithmPlotter/qml/eu/ad5001/MixedMenu similarity index 100% rename from runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/MixedMenu rename to LogarithmPlotter/qml/eu/ad5001/MixedMenu diff --git a/runtime-pyside6/LogarithmPlotter/util/__init__.py b/LogarithmPlotter/util/__init__.py similarity index 100% rename from runtime-pyside6/LogarithmPlotter/util/__init__.py rename to LogarithmPlotter/util/__init__.py diff --git a/runtime-pyside6/LogarithmPlotter/util/config.py b/LogarithmPlotter/util/config.py similarity index 100% rename from runtime-pyside6/LogarithmPlotter/util/config.py rename to LogarithmPlotter/util/config.py diff --git a/runtime-pyside6/LogarithmPlotter/util/debug.py b/LogarithmPlotter/util/debug.py similarity index 98% rename from runtime-pyside6/LogarithmPlotter/util/debug.py rename to LogarithmPlotter/util/debug.py index 8b57687..05271ac 100644 --- a/runtime-pyside6/LogarithmPlotter/util/debug.py +++ b/LogarithmPlotter/util/debug.py @@ -52,7 +52,7 @@ def map_javascript_source(source_file: str, line: str) -> tuple[str, str]: try: if SOURCEMAP_INDEX is not None: token = SOURCEMAP_INDEX.lookup(line, 20) - source_file = token.src.split("../")[-1] + source_file = source_file[:-len("index.mjs")] + token.src line = token.src_line except IndexError: pass # Unable to find source, leave as is. diff --git a/runtime-pyside6/LogarithmPlotter/util/helper.py b/LogarithmPlotter/util/helper.py similarity index 100% rename from runtime-pyside6/LogarithmPlotter/util/helper.py rename to LogarithmPlotter/util/helper.py diff --git a/runtime-pyside6/LogarithmPlotter/util/js.py b/LogarithmPlotter/util/js.py similarity index 100% rename from runtime-pyside6/LogarithmPlotter/util/js.py rename to LogarithmPlotter/util/js.py diff --git a/runtime-pyside6/LogarithmPlotter/util/latex.py b/LogarithmPlotter/util/latex.py similarity index 100% rename from runtime-pyside6/LogarithmPlotter/util/latex.py rename to LogarithmPlotter/util/latex.py diff --git a/runtime-pyside6/LogarithmPlotter/util/native.py b/LogarithmPlotter/util/native.py similarity index 100% rename from runtime-pyside6/LogarithmPlotter/util/native.py rename to LogarithmPlotter/util/native.py diff --git a/runtime-pyside6/LogarithmPlotter/util/update.py b/LogarithmPlotter/util/update.py similarity index 100% rename from runtime-pyside6/LogarithmPlotter/util/update.py rename to LogarithmPlotter/util/update.py diff --git a/runtime-pyside6/MANIFEST.in b/MANIFEST.in similarity index 100% rename from runtime-pyside6/MANIFEST.in rename to MANIFEST.in diff --git a/README.md b/README.md index 4a44ced..8402402 100644 --- a/README.md +++ b/README.md @@ -19,15 +19,15 @@ You can find more screenshots on the [app's website](https://apps.ad5001.eu/loga First, you'll need to install all the required dependencies: -- [Python 3](https://python.org) with [poetry](https://python-poetry.org/), setup a virtual environment, go to the `runtime-pyside6` directory, and call +- [Python 3](https://python.org) with [poetry](https://python-poetry.org/), and setup a virtual environment and call `poetry install`. -- [npm](https://npmjs.com) (or [yarn](https://yarnpkg.com/)), go to the `common` directory, and run `npm install` (or `yarn install`). +- [npm](https://npmjs.com) (or [yarn](https://yarnpkg.com/)), and run `npm install` (or `yarn install`). You can simply run LogarithmPlotter using `python3 run.py`. It automatically compiles the language files (requires `lrelease` to be installed and in path), and the JavaScript modules. -If you do not wish do recompile the files again on every run, you can use the build script (`scripts/build.sh`) and run -`python3 build/runtime-pyside6/LogarithmPlotter/logarithmplotter.py`. +If you do not wish do recompile the files again on every run, you can use +`python3 LogarithmPlotter/logarithmplotter.py`. In order to test translations, you can use the `--lang=` commandline option to force the locale. @@ -39,18 +39,22 @@ All scripts noted here can be found in the `scripts` directory. You can generate installers for LogarithmPlotter after installing all the dependencies. -- Windows installer (crosscompiling from Linux): - - Run `build-wine.sh` (requires wine) to build an exe for LogarithmPlotter in build/runtime-pyside6/dist. - - You also need [NSIS](https://nsis.sourceforge.io/Main_Page) (the [nsis](https://pkgs.org/download/nsis) package is available on linux). - - Run the `package-wine.sh` script. You will find a logarithmplotter-setup.exe installer in the build/runtime-pyside6/dist/logarithmplotter/ folder. +- Windows installer: + - Run the `build-windows.bat` script (or `build-wine.sh` if you're cross-compiling with wine on Linux) to build an + exe for LogarithmPlotter. + - You also need [NSIS](https://nsis.sourceforge.io/Main_Page) (Linux users can install + the [nsis](https://pkgs.org/download/nsis) package). + - Run the `package-windows.bat` script (or `package-wine.sh`if you're cross-compiling on Linux). You will find a + logarithmplotter-setup.exe installer in the dist/logarithmplotter/ folder. - MacOS Archive creator installer: - - Run the `build-macosx.sh` script to build an .app for LogarithmPlotter which can be found in the build/runtime-pyside6/dist directory. + - Run the `build-macosx.sh` script to build an .app for LogarithmPlotter which can be found in the dist directory. - Run the `package-macosx.sh` script. You will find a LogarithmPlotter-v<version>-setup.dmg installer in the - build/runtime-pyside6/build/pysdist/ folder. + dist/ folder. - Linux packages: - - Run `package-deb.sh`. It will create an DSC and a DEB in build/runtime-pyside6/deb_dist/ - - Run `scripts/build.sh` followed by `snapcraft`. It .snap file in the root directory. - - See [the flatpak repo](https://github.com/Ad5001/eu.ad5001.LogarithmPlotter) for instrutions on how to build the flatpak. + - To build and install the flatpak, you + need [flatpak-builder](https://docs.flatpak.org/en/latest/flatpak-builder.html) installed. + - To build the snap, you need [snapcraft](https://snapcraft.io) installed. + - Run `package-linux.sh`. ## Contribute diff --git a/assets/native/linux/application-x-logarithm-plot.svg b/assets/native/linux/application-x-logarithm-plot.svg deleted file mode 120000 index 4e7d218..0000000 --- a/assets/native/linux/application-x-logarithm-plot.svg +++ /dev/null @@ -1 +0,0 @@ -../../logplotterfile.svg \ No newline at end of file diff --git a/assets/native/linux/debian/depends b/assets/native/linux/debian/depends deleted file mode 100644 index 5b7d902..0000000 --- a/assets/native/linux/debian/depends +++ /dev/null @@ -1 +0,0 @@ -python3 (>= 3.9), python3-pip, python3-pyside6-essentials (>= 6.7.0), texlive-latex-base, dvipng diff --git a/common/babel.config.json b/babel.config.json similarity index 100% rename from common/babel.config.json rename to babel.config.json diff --git a/ci/drone.yml b/ci/drone.yml index 2800cb6..4ff14ff 100644 --- a/ci/drone.yml +++ b/ci/drone.yml @@ -18,7 +18,8 @@ steps: - apt update - apt install -y qtchooser qttools5-dev-tools # Start building - - bash scripts/build.sh + - cd LogarithmPlotter/i18n && bash release.sh && cd ../.. + - npm run build when: event: [ push, tag ] diff --git a/assets/logplotterfile.svg b/linux/application-x-logarithm-plot.svg similarity index 100% rename from assets/logplotterfile.svg rename to linux/application-x-logarithm-plot.svg diff --git a/assets/native/linux/debian/changelog b/linux/debian/changelog similarity index 100% rename from assets/native/linux/debian/changelog rename to linux/debian/changelog diff --git a/assets/native/linux/debian/control b/linux/debian/control similarity index 69% rename from assets/native/linux/debian/control rename to linux/debian/control index a1089e7..57281bc 100644 --- a/assets/native/linux/debian/control +++ b/linux/debian/control @@ -3,9 +3,9 @@ Source: logarithmplotter Version: 0.6.0 Architecture: all Maintainer: Ad5001 -Depends: python3 (>= 3.9), python3-pip, python3-pyside6-essentials (>= 6.7.0), texlive-latex-base, dvipng +Depends: python3, python3-pip, python3-pyside6-essentials (>= 6.7.0), texlive-latex-base, dvipng -Build-Depends: debhelper (>=11~), dh-python, dpkg-dev (>= 1.16.1~), python-setuptools +Build-Depends: debhelper (>=11~), dh-python, dpkg-dev (>= 1.16.1~), python-setuptools, python3-all-dev (>=3.9) Section: science Priority: optional Homepage: https://apps.ad5001.eu/logarithmplotter/ diff --git a/assets/native/linux/debian/copyright b/linux/debian/copyright similarity index 100% rename from assets/native/linux/debian/copyright rename to linux/debian/copyright diff --git a/linux/debian/depends b/linux/debian/depends new file mode 100644 index 0000000..5eea4fd --- /dev/null +++ b/linux/debian/depends @@ -0,0 +1 @@ +python3, python3-pip, python3-pyside6-essentials (>= 6.7.0), texlive-latex-base, dvipng diff --git a/assets/native/linux/debian/recommends b/linux/debian/recommends similarity index 100% rename from assets/native/linux/debian/recommends rename to linux/debian/recommends diff --git a/assets/native/linux/debian/rules b/linux/debian/rules similarity index 100% rename from assets/native/linux/debian/rules rename to linux/debian/rules diff --git a/assets/native/linux/eu.ad5001.LogarithmPlotter.metainfo.xml b/linux/eu.ad5001.LogarithmPlotter.metainfo.xml similarity index 100% rename from assets/native/linux/eu.ad5001.LogarithmPlotter.metainfo.xml rename to linux/eu.ad5001.LogarithmPlotter.metainfo.xml diff --git a/assets/native/linux/logarithmplotter.desktop b/linux/logarithmplotter.desktop similarity index 97% rename from assets/native/linux/logarithmplotter.desktop rename to linux/logarithmplotter.desktop index 70637c5..00c871f 100644 --- a/assets/native/linux/logarithmplotter.desktop +++ b/linux/logarithmplotter.desktop @@ -14,7 +14,7 @@ Comment[hu]=Bode-ábrák, sorozatok és újraosztási függvények létrehozása TryExec=logarithmplotter Exec=logarithmplotter %f -Icon=logarithmplotter +Icon=logplotter MimeType=application/x-logarithm-plot; Terminal=false StartupNotify=false diff --git a/assets/native/linux/snapcraft/launcher/launch-logarithmplotter b/linux/snapcraft/launcher/launch-logarithmplotter similarity index 100% rename from assets/native/linux/snapcraft/launcher/launch-logarithmplotter rename to linux/snapcraft/launcher/launch-logarithmplotter diff --git a/assets/native/linux/x-logarithm-plot.xml b/linux/x-logarithm-plot.xml similarity index 100% rename from assets/native/linux/x-logarithm-plot.xml rename to linux/x-logarithm-plot.xml diff --git a/runtime-pyside6/LogarithmPlotter/logarithmplotter.svg b/logplotter.svg similarity index 100% rename from runtime-pyside6/LogarithmPlotter/logarithmplotter.svg rename to logplotter.svg diff --git a/logplotterfile.svg b/logplotterfile.svg new file mode 100644 index 0000000..580277f --- /dev/null +++ b/logplotterfile.svg @@ -0,0 +1,177 @@ + + + LogarithmPlotter Icon + + + + + + + + + + + + + + + + + + + image/svg+xml + + LogarithmPlotter File Icon + 2021 + + + Ad5001 + + + + + (c) Copyright Ad5001 2021 + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/assets/native/mac/Info.plist b/mac/Info.plist similarity index 100% rename from assets/native/mac/Info.plist rename to mac/Info.plist diff --git a/assets/native/mac/install-bg.png b/mac/install-bg.png similarity index 100% rename from assets/native/mac/install-bg.png rename to mac/install-bg.png diff --git a/assets/native/mac/install-bg.xcf b/mac/install-bg.xcf similarity index 100% rename from assets/native/mac/install-bg.xcf rename to mac/install-bg.xcf diff --git a/assets/native/mac/logarithmplotter.icns b/mac/logarithmplotter.icns similarity index 100% rename from assets/native/mac/logarithmplotter.icns rename to mac/logarithmplotter.icns diff --git a/assets/native/mac/logarithmplotter.iconset/icon_128x128.png b/mac/logarithmplotter.iconset/icon_128x128.png similarity index 100% rename from assets/native/mac/logarithmplotter.iconset/icon_128x128.png rename to mac/logarithmplotter.iconset/icon_128x128.png diff --git a/assets/native/mac/logarithmplotter.iconset/icon_16x16.png b/mac/logarithmplotter.iconset/icon_16x16.png similarity index 100% rename from assets/native/mac/logarithmplotter.iconset/icon_16x16.png rename to mac/logarithmplotter.iconset/icon_16x16.png diff --git a/assets/native/mac/logarithmplotter.iconset/icon_256x256.png b/mac/logarithmplotter.iconset/icon_256x256.png similarity index 100% rename from assets/native/mac/logarithmplotter.iconset/icon_256x256.png rename to mac/logarithmplotter.iconset/icon_256x256.png diff --git a/assets/native/mac/logarithmplotter.iconset/icon_32x32.png b/mac/logarithmplotter.iconset/icon_32x32.png similarity index 100% rename from assets/native/mac/logarithmplotter.iconset/icon_32x32.png rename to mac/logarithmplotter.iconset/icon_32x32.png diff --git a/assets/native/mac/logarithmplotter.iconset/icon_512x512.png b/mac/logarithmplotter.iconset/icon_512x512.png similarity index 100% rename from assets/native/mac/logarithmplotter.iconset/icon_512x512.png rename to mac/logarithmplotter.iconset/icon_512x512.png diff --git a/assets/native/mac/logarithmplotterfile.icns b/mac/logarithmplotterfile.icns similarity index 100% rename from assets/native/mac/logarithmplotterfile.icns rename to mac/logarithmplotterfile.icns diff --git a/assets/native/mac/logarithmplotterfile.iconset/icon_128x128.png b/mac/logarithmplotterfile.iconset/icon_128x128.png similarity index 100% rename from assets/native/mac/logarithmplotterfile.iconset/icon_128x128.png rename to mac/logarithmplotterfile.iconset/icon_128x128.png diff --git a/assets/native/mac/logarithmplotterfile.iconset/icon_128x128@2x.png b/mac/logarithmplotterfile.iconset/icon_128x128@2x.png similarity index 100% rename from assets/native/mac/logarithmplotterfile.iconset/icon_128x128@2x.png rename to mac/logarithmplotterfile.iconset/icon_128x128@2x.png diff --git a/assets/native/mac/logarithmplotterfile.iconset/icon_16x16.png b/mac/logarithmplotterfile.iconset/icon_16x16.png similarity index 100% rename from assets/native/mac/logarithmplotterfile.iconset/icon_16x16.png rename to mac/logarithmplotterfile.iconset/icon_16x16.png diff --git a/assets/native/mac/logarithmplotterfile.iconset/icon_16x16@2x.png b/mac/logarithmplotterfile.iconset/icon_16x16@2x.png similarity index 100% rename from assets/native/mac/logarithmplotterfile.iconset/icon_16x16@2x.png rename to mac/logarithmplotterfile.iconset/icon_16x16@2x.png diff --git a/assets/native/mac/logarithmplotterfile.iconset/icon_256x256.png b/mac/logarithmplotterfile.iconset/icon_256x256.png similarity index 100% rename from assets/native/mac/logarithmplotterfile.iconset/icon_256x256.png rename to mac/logarithmplotterfile.iconset/icon_256x256.png diff --git a/assets/native/mac/logarithmplotterfile.iconset/icon_256x256@2x.png b/mac/logarithmplotterfile.iconset/icon_256x256@2x.png similarity index 100% rename from assets/native/mac/logarithmplotterfile.iconset/icon_256x256@2x.png rename to mac/logarithmplotterfile.iconset/icon_256x256@2x.png diff --git a/assets/native/mac/logarithmplotterfile.iconset/icon_32x32.png b/mac/logarithmplotterfile.iconset/icon_32x32.png similarity index 100% rename from assets/native/mac/logarithmplotterfile.iconset/icon_32x32.png rename to mac/logarithmplotterfile.iconset/icon_32x32.png diff --git a/assets/native/mac/logarithmplotterfile.iconset/icon_32x32@2x.png b/mac/logarithmplotterfile.iconset/icon_32x32@2x.png similarity index 100% rename from assets/native/mac/logarithmplotterfile.iconset/icon_32x32@2x.png rename to mac/logarithmplotterfile.iconset/icon_32x32@2x.png diff --git a/assets/native/mac/logarithmplotterfile.iconset/icon_512x512.png b/mac/logarithmplotterfile.iconset/icon_512x512.png similarity index 100% rename from assets/native/mac/logarithmplotterfile.iconset/icon_512x512.png rename to mac/logarithmplotterfile.iconset/icon_512x512.png diff --git a/assets/native/mac/logarithmplotterfile.iconset/icon_512x512@2x.png b/mac/logarithmplotterfile.iconset/icon_512x512@2x.png similarity index 100% rename from assets/native/mac/logarithmplotterfile.iconset/icon_512x512@2x.png rename to mac/logarithmplotterfile.iconset/icon_512x512@2x.png diff --git a/common/package-lock.json b/package-lock.json similarity index 100% rename from common/package-lock.json rename to package-lock.json diff --git a/common/package.json b/package.json similarity index 95% rename from common/package.json rename to package.json index 9ef203c..aaa4841 100644 --- a/common/package.json +++ b/package.json @@ -5,7 +5,7 @@ "main": "LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/autoload.mjs", "scripts": { "build": "rollup --config rollup.config.mjs", - "test": "c8 mocha test/**/*.mjs" + "test": "c8 mocha tests/js/**/*.mjs" }, "repository": { "type": "git", diff --git a/runtime-pyside6/poetry.lock b/poetry.lock similarity index 92% rename from runtime-pyside6/poetry.lock rename to poetry.lock index a4727e1..c94f9e7 100644 --- a/runtime-pyside6/poetry.lock +++ b/poetry.lock @@ -261,36 +261,36 @@ setuptools = ">=42.0.0" [[package]] name = "pyside6-addons" -version = "6.7.3" +version = "6.7.2" description = "Python bindings for the Qt cross-platform application and UI framework (Addons)" optional = false python-versions = "<3.13,>=3.9" files = [ - {file = "PySide6_Addons-6.7.3-cp39-abi3-macosx_11_0_universal2.whl", hash = "sha256:3174cb3a373c09c98740b452e8e8f4945d64cfa18ed8d43964111d570f0dc647"}, - {file = "PySide6_Addons-6.7.3-cp39-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:bde1eb03dbffd089b50cd445847aaecaf4056cea84c49ea592d00f84f247251e"}, - {file = "PySide6_Addons-6.7.3-cp39-abi3-manylinux_2_31_aarch64.whl", hash = "sha256:5a9e0df31345fe6caea677d916ea48b53ba86f95cc6499c57f89e392447ad6db"}, - {file = "PySide6_Addons-6.7.3-cp39-abi3-win_amd64.whl", hash = "sha256:d8a19c2b2446407724c81c33ebf3217eaabd092f0f72da8130c17079e04a7813"}, + {file = "PySide6_Addons-6.7.2-cp39-abi3-macosx_11_0_universal2.whl", hash = "sha256:90b995efce61058d995c603ea480a9a3054fe8206739dcbc273fc3b53d40650f"}, + {file = "PySide6_Addons-6.7.2-cp39-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:94b9bf6a2a4a7ac671e1776633e50d51326c86f4184f1c6e556f4dd5498fd52a"}, + {file = "PySide6_Addons-6.7.2-cp39-abi3-manylinux_2_31_aarch64.whl", hash = "sha256:22979b1aa09d9cf1d7a86c8a9aa0cb4791d6bd1cc94f96c5b6780c5ef8a9e34e"}, + {file = "PySide6_Addons-6.7.2-cp39-abi3-win_amd64.whl", hash = "sha256:ebf549eb25998665d8e4ec24014fbbd37bebc5ecdcb050b34db1e1c03e1bf81d"}, ] [package.dependencies] -PySide6-Essentials = "6.7.3" -shiboken6 = "6.7.3" +PySide6-Essentials = "6.7.2" +shiboken6 = "6.7.2" [[package]] name = "pyside6-essentials" -version = "6.7.3" +version = "6.7.2" description = "Python bindings for the Qt cross-platform application and UI framework (Essentials)" optional = false python-versions = "<3.13,>=3.9" files = [ - {file = "PySide6_Essentials-6.7.3-cp39-abi3-macosx_11_0_universal2.whl", hash = "sha256:f9e08a4e9e7dc7b5ab72fde20abce8c97df7af1b802d9743f098f577dfe1f649"}, - {file = "PySide6_Essentials-6.7.3-cp39-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:cda6fd26aead48f32e57f044d18aa75dc39265b49d7957f515ce7ac3989e7029"}, - {file = "PySide6_Essentials-6.7.3-cp39-abi3-manylinux_2_31_aarch64.whl", hash = "sha256:acdde06b74f26e7d26b4ae1461081b32a6cb17fcaa2a580050b5e0f0f12236c9"}, - {file = "PySide6_Essentials-6.7.3-cp39-abi3-win_amd64.whl", hash = "sha256:f0950fcdcbcd4f2443336dc6a5fe692172adc225f876839583503ded0ab2f2a7"}, + {file = "PySide6_Essentials-6.7.2-cp39-abi3-macosx_11_0_universal2.whl", hash = "sha256:4d13666e796ec140ecfb432c4f3d7baef6dfafc11929985a83b22c0025532fb7"}, + {file = "PySide6_Essentials-6.7.2-cp39-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:a1a4c09f1e916b9cfe53151fe4a503a6acb1f6621ba28204d1bfe636f80d6780"}, + {file = "PySide6_Essentials-6.7.2-cp39-abi3-manylinux_2_31_aarch64.whl", hash = "sha256:9135513e1c4c6e2fbb1e4f9afcb3d42e54708b0d9ed870cb3213ea4874cafa1e"}, + {file = "PySide6_Essentials-6.7.2-cp39-abi3-win_amd64.whl", hash = "sha256:0111d5fa8cf826de3ca9d82fed54726cce116d57f454f88a6467578652032d69"}, ] [package.dependencies] -shiboken6 = "6.7.3" +shiboken6 = "6.7.2" [[package]] name = "pytest" @@ -384,15 +384,15 @@ type = ["importlib-metadata (>=7.0.2)", "jaraco.develop (>=7.21)", "mypy (==1.11 [[package]] name = "shiboken6" -version = "6.7.3" +version = "6.7.2" description = "Python/C++ bindings helper module" optional = false python-versions = "<3.13,>=3.9" files = [ - {file = "shiboken6-6.7.3-cp39-abi3-macosx_11_0_universal2.whl", hash = "sha256:285fe3cf79be3135fe1ad1e2b9ff6db3a48698887425af6aa6ed7a05a9abc3d6"}, - {file = "shiboken6-6.7.3-cp39-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:f0852e5781de78be5b13c140ec4c7fb9734e2aaf2986eb2d6a224363e03efccc"}, - {file = "shiboken6-6.7.3-cp39-abi3-manylinux_2_31_aarch64.whl", hash = "sha256:f0dd635178e64a45be2f84c9f33dd79ac30328da87f834f21a0baf69ae210e6e"}, - {file = "shiboken6-6.7.3-cp39-abi3-win_amd64.whl", hash = "sha256:5f29325dfa86fde0274240f1f38e421303749d3174ce3ada178715b5f4719db9"}, + {file = "shiboken6-6.7.2-cp39-abi3-macosx_11_0_universal2.whl", hash = "sha256:50c33ac6317b673a1eb97a9abaafccb162c4ba0c9ca658a8e449c49a8aadc379"}, + {file = "shiboken6-6.7.2-cp39-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:70e80737b27cd5d83504b373013b55e70462bd4a27217d919ff9a83958731990"}, + {file = "shiboken6-6.7.2-cp39-abi3-manylinux_2_31_aarch64.whl", hash = "sha256:98bedf9a15f1d8ba1af3e4d1e7527f7946ce36da541e08074fd9dc9ab5ff1adf"}, + {file = "shiboken6-6.7.2-cp39-abi3-win_amd64.whl", hash = "sha256:9024e6afb2af1568ebfc8a5d07e4ff6c8829f40923eeb28901f535463e2b6b65"}, ] [[package]] @@ -449,4 +449,4 @@ type = ["pytest-mypy"] [metadata] lock-version = "2.0" python-versions = ">=3.9,<3.13" -content-hash = "5636605737f21954e102a0110972e6bd3df07f2d5929f41fe541c7347c3ecf08" +content-hash = "30da53f0a05c06c5f93aa1260217d807ce2ab64debd26f313b47c664931e67c7" diff --git a/runtime-pyside6/pyproject.toml b/pyproject.toml similarity index 87% rename from runtime-pyside6/pyproject.toml rename to pyproject.toml index 5293365..7b5b6f6 100644 --- a/runtime-pyside6/pyproject.toml +++ b/pyproject.toml @@ -9,13 +9,12 @@ package-mode = false [tool.poetry.dependencies] python = ">=3.9,<3.13" -PySide6-Essentials = "^6.7" -PySide6-Addons = "^6.7" +PySide6-Essentials = "^6.7.2" +pyside6-addons = "^6.7.2" [tool.poetry.group.packaging.dependencies] pyinstaller = "^6.10.0" stdeb = "^0.10.0" -setuptools = "^75.1.0" [tool.poetry.group.test.dependencies] pytest = "^8.3.3" diff --git a/common/rollup.config.mjs b/rollup.config.mjs similarity index 88% rename from common/rollup.config.mjs rename to rollup.config.mjs index 6a18a41..892c9fb 100644 --- a/common/rollup.config.mjs +++ b/rollup.config.mjs @@ -21,13 +21,12 @@ import commonjs from "@rollup/plugin-commonjs" import { babel } from "@rollup/plugin-babel" import cleanup from "rollup-plugin-cleanup" -const src = "./src/index.mjs" -const dest = "../build/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/index.mjs" +const path = "LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js" export default { - input: src, + input: `${path}/autoload.mjs`, output: { - file: dest, + file: `${path}/index.mjs`, compact: false, sourcemap: true, format: "es" diff --git a/run.py b/run.py index 2fae168..7978a15 100644 --- a/run.py +++ b/run.py @@ -15,23 +15,22 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . """ -from os import system, getcwd, path -from sys import path as sys_path - -def build(): +def update_translations(): """ Updates all binary translations """ - system("./scripts/build.sh") + from os import system, getcwd, chdir, path + pwd = getcwd() + system("npm run build") + chdir(path.join("LogarithmPlotter", "i18n")) + system("./release.sh") + chdir(pwd) def run(): + update_translations() from LogarithmPlotter import logarithmplotter logarithmplotter.run() if __name__ == "__main__": - build() - logplotter_path = path.realpath(path.join(getcwd(), "build", "runtime-pyside6")) - print("Appending " + logplotter_path + " to path...") - sys_path.append(logplotter_path) run() diff --git a/scripts/build-macosx.sh b/scripts/build-macosx.sh index c76b5ec..a8f0783 100755 --- a/scripts/build-macosx.sh +++ b/scripts/build-macosx.sh @@ -1,17 +1,20 @@ #!/usr/bin/env bash DIR="$(cd -P "$(dirname "${BASH_SOURCE[0]}")" && pwd)" -cd "$DIR/.." || exit 1 +cd "$DIR/.." -rm -rf build -bash scripts/build.sh -cd build/runtime-pyside6 || 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 "../assets/native/mac/logarithmplotterfile.icns:." \ + --add-data "mac/logarithmplotterfile.icns:." \ --add-data "README.md:." \ --exclude-module "FixTk" \ --exclude-module "tcl" \ @@ -21,19 +24,21 @@ pyinstaller --add-data "LogarithmPlotter/qml:qml" \ --exclude-module "Tkinter" \ --noconsole \ --noconfirm \ - --icon=../../assets/native/mac/logarithmplotter.icns \ + --icon=mac/logarithmplotter.icns \ --osx-bundle-identifier eu.ad5001.LogarithmPlotter \ -n LogarithmPlotter \ LogarithmPlotter/logarithmplotter.py -cp ../../assets/native/mac/Info.plist dist/LogarithmPlotter.app/Contents/Info.plist +cp 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,Qt3D,QtWebEngine} +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 # Remove the QtQuick styles that are unused rm -rf dist/LogarithmPlotter.app/Contents/MacOS/PySide6/Qt/qml/QtQuick/Controls/{Imagine,Material,iOS,Universal,designer} diff --git a/scripts/build-windows.bat b/scripts/build-windows.bat new file mode 100644 index 0000000..ef92aee --- /dev/null +++ b/scripts/build-windows.bat @@ -0,0 +1,17 @@ +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 diff --git a/scripts/build-wine.sh b/scripts/build-wine.sh index bf8a7ff..39b2312 100644 --- a/scripts/build-wine.sh +++ b/scripts/build-wine.sh @@ -1,18 +1,22 @@ #!/bin/bash -cd "$(dirname "$(readlink -f "$0" || realpath "$0")")/.." || exit +cd "$(dirname "$(readlink -f "$0" || realpath "$0")")/.." -rm -rf build -bash scripts/build.sh -cd build/runtime-pyside6 || exit 1 +rm -rf dist +rm $(find . -name "*.qmlc") rm -rf $(find . -name "*.pyc") -wine_py pyinstaller --add-data "LogarithmPlotter/logarithmplotter.svg;." \ +# Building translations +cd "LogarithmPlotter/i18n/" +bash release.sh +cd ../../ + +wine pyinstaller --add-data "logplotter.svg;." \ --add-data "LogarithmPlotter/qml;qml" \ --add-data "LogarithmPlotter/i18n;i18n" \ --noconsole \ LogarithmPlotter/logarithmplotter.py \ - --icon=../../assets/native/win/logarithmplotter.ico \ + --icon=win/logarithmplotter.ico \ -n logarithmplotter # Copy Qt6ShaderTools, a required library for for Qt5Compat diff --git a/scripts/build.sh b/scripts/build.sh deleted file mode 100755 index be25274..0000000 --- a/scripts/build.sh +++ /dev/null @@ -1,49 +0,0 @@ -#!/usr/bin/env bash -# -# LogarithmPlotter - 2D plotter software to make BODE plots, sequences and distribution functions. -# Copyright (C) 2021-2024 Ad5001 -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -# - -# This script builds a dist version of LogarithmPlotter - -DIR="$(cd -P "$(dirname "${BASH_SOURCE[0]}")" && pwd)" -cd "$DIR/.." || exit 1 - -box() { - len=${#1} - echo "┌─$(printf '─%.0s' $(seq 1 "$len"))─┐" - echo "│ $1 │" - echo "└─$(printf '─%.0s' $(seq 1 "$len"))─┘" -} - -rm -rf build -mkdir -p build/runtime-pyside6 - -# Copy python -box "Copying pyside6 python runtime..." -cp -r runtime-pyside6/{setup.py,LogarithmPlotter} build/runtime-pyside6 - -box "Building ecmascript modules..." -mkdir -p build/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js -cd common && (npm run build || exit) && cd .. - -box "Building translations..." -cd assets/i18n/ && (bash release.sh || exit) && cd ../../ -mkdir -p build/runtime-pyside6/LogarithmPlotter/i18n && cp assets/i18n/*.qm build/runtime-pyside6/LogarithmPlotter/i18n/ - -box "Building icons..." -cp -r assets/icons build/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ -cp assets/logarithmplotter.svg build/runtime-pyside6/LogarithmPlotter/ diff --git a/scripts/package-deb.sh b/scripts/package-deb.sh deleted file mode 100755 index b280675..0000000 --- a/scripts/package-deb.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash -cd "$(dirname "$(readlink -f "$0" || realpath "$0")")/.." || exit 1 - -rm -rf build -bash scripts/build.sh -cd build/runtime-pyside6 || exit 1 - -mkdir assets -cp -r ../../assets/{native,*.svg} assets/ -cp ../../README.md . - -python3 setup.py --remove-git-version --command-packages=stdeb.command sdist_dsc \ - --package logarithmplotter --copyright-file assets/native/linux/debian/copyright \ - --suite noble --depends3 "$(cat assets/native/linux/debian/depends)" --section science \ - bdist_deb diff --git a/scripts/package-linux.sh b/scripts/package-linux.sh new file mode 100755 index 0000000..ca2bcf7 --- /dev/null +++ b/scripts/package-linux.sh @@ -0,0 +1,32 @@ +#!/bin/bash +cd "$(dirname "$(readlink -f "$0" || realpath "$0")")/.." + +# Building translations +cd "LogarithmPlotter/i18n/" +bash release.sh +cd ../../ + +# Deb +sudo python3 setup.py --remove-git-version --command-packages=stdeb.command sdist_dsc \ + --package logarithmplotter --copyright-file linux/debian/copyright --suite noble --depends3 "$(cat linux/debian/depends)" --section science \ + bdist_deb + +# Flatpak building +FLATPAK_BUILDER=$(which flatpak-builder) +if [ -z $FLATPAK_BUILDER ]; then + echo "flatpak-builder not installed. Will not proceed to build flatpak." +else + cd linux + git clone https://github.com/Ad5001/eu.ad5001.LogarithmPlotter + cd eu.ad5001.LogarithmPlotter + flatpak-builder AppDir eu.ad5001.LogarithmPlotter.json --user --force-clean --install + cd ../../ +fi + +# Snapcraft building +SNAPCRAFT=$(which snapcraft) +if [ -z $SNAPCRAFT ]; then + echo "snapcraft not installed. Will not proceed to build snap" +else + snapcraft +fi diff --git a/scripts/package-macosx.sh b/scripts/package-macosx.sh index d38ecdc..745f05b 100644 --- a/scripts/package-macosx.sh +++ b/scripts/package-macosx.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -cd "$(dirname "$(readlink -f "$0" || realpath "$0")")/../build/runtime-pyside6/dist" || exit 1 +cd "$(dirname "$(readlink -f "$0" || realpath "$0")")/.." VERSION=0.6.0 title="LogarithmPlotter v${VERSION} Setup" @@ -8,13 +8,14 @@ applicationName=LogarithmPlotter backgroundPictureName=logarithmplotter-installer-background.png source=Installer +cd dist rm -rf Installer mkdir -p Installer mkdir -p Installer/.background -cp ../../../assets/native/mac/install-bg.png "./Installer/.background/${backgroundPictureName}" +cp ../mac/install-bg.png "./Installer/.background/${backgroundPictureName}" cp -r LogarithmPlotter.app Installer/LogarithmPlotter.app -cp ../../../LICENSE.md Installer/LICENSE.md -cp ../../../README.md Installer/README.md +cp ../LICENSE.md Installer/LICENSE.md +cp ../README.md Installer/README.md # Calculating folder size duoutput=$(du -h Installer | tail -n1) diff --git a/scripts/package-windows.bat b/scripts/package-windows.bat new file mode 100644 index 0000000..777f2f9 --- /dev/null +++ b/scripts/package-windows.bat @@ -0,0 +1,7 @@ +XCOPY win\*.* dist\logarithmplotter /C /S /D /Y /I +XCOPY README.md dist\logarithmplotter /C /D /Y +XCOPY LICENSE.md dist\logarithmplotter /C /D /Y +rem Creating installer +cd dist\logarithmplotter +"C:\Program Files (x86)\NSIS\makensis" installer.nsi +cd ..\.. diff --git a/scripts/package-wine.sh b/scripts/package-wine.sh index 89295e7..98209e0 100644 --- a/scripts/package-wine.sh +++ b/scripts/package-wine.sh @@ -1,8 +1,8 @@ #!/bin/bash -cd "$(dirname "$(readlink -f "$0" || realpath "$0")")/.." || exit 1 +cd "$(dirname "$(readlink -f "$0" || realpath "$0")")/.." # Moving files -cp assets/native/win/* README.md LICENSE.md build/runtime-pyside6/dist/logarithmplotter/ +cp win/* README.md LICENSE.md dist/logarithmplotter/ # Creating installer -cd build/runtime-pyside6/dist/logarithmplotter/ || exit 1 +cd dist/logarithmplotter/ makensis installer.nsi diff --git a/scripts/run-tests.sh b/scripts/run-tests.sh index 21b1f41..257d748 100644 --- a/scripts/run-tests.sh +++ b/scripts/run-tests.sh @@ -1,17 +1,7 @@ #!/bin/bash cd "$(dirname "$(readlink -f "$0" || realpath "$0")")/.." -rm -rf build -bash scripts/build.sh - # Run python tests -cp -r runtime-pyside6/tests build/runtime-pyside6 -cp -r ci CHANGELOG.md build/runtime-pyside6 -cd build/runtime-pyside6 || exit 1 PYTHONPATH="$PYTHONPATH:." pytest --cov=LogarithmPlotter --cov-report term-missing . -cd ../../ - -# Run js tests -cd common npm test diff --git a/scripts/sign-deb.sh b/scripts/sign-deb.sh index f8e0a9a..6939243 100755 --- a/scripts/sign-deb.sh +++ b/scripts/sign-deb.sh @@ -1,10 +1,11 @@ #!/bin/bash # This script is used to sign the LogarithmPlotter deb directly from it's DSC file. # Adapted from https://github.com/astraw/stdeb/issues/181 -cd "$(dirname "$(readlink -f "$0" || realpath "$0")")/../build/runtime-pyside6/deb_dist" || exit 1 PPA_ARCHIVE="ppa:ad5001/logarithmplotter" +cd ../deb_dist + # create a temporary folder mkdir tmp -p cd tmp diff --git a/runtime-pyside6/setup.py b/setup.py similarity index 67% rename from runtime-pyside6/setup.py rename to setup.py index e2bbd57..5d1aae7 100644 --- a/runtime-pyside6/setup.py +++ b/setup.py @@ -96,30 +96,30 @@ def package_data(): data_files = [] if sys.platform == 'linux': - data_files.append(('share/applications/', ['assets/native/linux/logarithmplotter.desktop'])) - data_files.append(('share/mime/packages/', ['assets/native/linux/x-logarithm-plot.xml'])) - data_files.append(('share/icons/hicolor/scalable/mimetypes/', ['assets/native/linux/application-x-logarithm-plot.svg'])) - data_files.append(('share/icons/hicolor/scalable/apps/', ['assets/logarithmplotter.svg'])) - # data_files.append((os.environ["PREFIX"] + '/applications/', ['linux/logarithmplotter.desktop'])) - # data_files.append((os.environ["PREFIX"] + '/mime/packages/', ['linux/x-logarithm-plot.xml'])) - # data_files.append((os.environ["PREFIX"] + '/icons/hicolor/scalable/mimetypes/', ['linux/application-x-logarithm-plot.svg'])) - # data_files.append((os.environ["PREFIX"] + '/icons/hicolor/scalable/apps/', ['logplotter.svg'])) - # if len(sys.argv) > 1: - # if sys.argv[1] == "install": - # os.makedirs(os.environ["PREFIX"] + '/applications/', exist_ok=True) - # os.makedirs(os.environ["PREFIX"] + '/mime/packages/', exist_ok=True) - # os.makedirs(os.environ["PREFIX"] + '/icons/hicolor/scalable/mimetypes/', exist_ok=True) - # os.makedirs(os.environ["PREFIX"] + '/icons/hicolor/scalable/apps/', exist_ok=True) - # os.makedirs(os.environ["PREFIX"] + '/metainfo/', exist_ok=True) - # copyfile(current_dir + '/linux/x-logarithm-plot.xml', os.environ["PREFIX"] + '/mime/packages/x-logarithm-plot.xml') - # copyfile(current_dir + '/linux/application-x-logarithm-plot.svg', - # os.environ["PREFIX"] + '/icons/hicolor/scalable/mimetypes/application-x-logarithm-plot.svg') - # copyfile(current_dir + '/logplotter.svg', os.environ["PREFIX"] + '/icons/hicolor/scalable/apps/logplotter.svg') - # elif sys.argv[1] == "uninstall": - # os.remove(os.environ["PREFIX"] + '/applications/logarithmplotter.desktop') - # os.remove(os.environ["PREFIX"] + '/mime/packages/x-logarithm-plot.xml') - # os.remove(os.environ["PREFIX"] + '/icons/hicolor/scalable/mimetypes/application-x-logarithm-plot.svg') - # os.remove(os.environ["PREFIX"] + '/icons/hicolor/scalable/apps/logplotter.svg') + data_files.append(('share/applications/', ['linux/logarithmplotter.desktop'])) + data_files.append(('share/mime/packages/', ['linux/x-logarithm-plot.xml'])) + data_files.append(('share/icons/hicolor/scalable/mimetypes/', ['linux/application-x-logarithm-plot.svg'])) + data_files.append(('share/icons/hicolor/scalable/apps/', ['logplotter.svg'])) + data_files.append((os.environ["PREFIX"] + '/applications/', ['linux/logarithmplotter.desktop'])) + data_files.append((os.environ["PREFIX"] + '/mime/packages/', ['linux/x-logarithm-plot.xml'])) + data_files.append((os.environ["PREFIX"] + '/icons/hicolor/scalable/mimetypes/', ['linux/application-x-logarithm-plot.svg'])) + data_files.append((os.environ["PREFIX"] + '/icons/hicolor/scalable/apps/', ['logplotter.svg'])) + if len(sys.argv) > 1: + if sys.argv[1] == "install": + os.makedirs(os.environ["PREFIX"] + '/applications/', exist_ok=True) + os.makedirs(os.environ["PREFIX"] + '/mime/packages/', exist_ok=True) + os.makedirs(os.environ["PREFIX"] + '/icons/hicolor/scalable/mimetypes/', exist_ok=True) + os.makedirs(os.environ["PREFIX"] + '/icons/hicolor/scalable/apps/', exist_ok=True) + os.makedirs(os.environ["PREFIX"] + '/metainfo/', exist_ok=True) + copyfile(current_dir + '/linux/x-logarithm-plot.xml', os.environ["PREFIX"] + '/mime/packages/x-logarithm-plot.xml') + copyfile(current_dir + '/linux/application-x-logarithm-plot.svg', + os.environ["PREFIX"] + '/icons/hicolor/scalable/mimetypes/application-x-logarithm-plot.svg') + copyfile(current_dir + '/logplotter.svg', os.environ["PREFIX"] + '/icons/hicolor/scalable/apps/logplotter.svg') + elif sys.argv[1] == "uninstall": + os.remove(os.environ["PREFIX"] + '/applications/logarithmplotter.desktop') + os.remove(os.environ["PREFIX"] + '/mime/packages/x-logarithm-plot.xml') + os.remove(os.environ["PREFIX"] + '/icons/hicolor/scalable/mimetypes/application-x-logarithm-plot.svg') + os.remove(os.environ["PREFIX"] + '/icons/hicolor/scalable/apps/logplotter.svg') setuptools.setup( install_requires=([] if "FLATPAK_INSTALL" in os.environ else ["PySide6-Essentials"]), diff --git a/snapcraft.yaml b/snapcraft.yaml index 12b41d2..e8c8628 100644 --- a/snapcraft.yaml +++ b/snapcraft.yaml @@ -5,7 +5,7 @@ summary: Create and edit Bode plots confinement: strict base: core22 grade: stable -icon: assets/logarithmplotter.svg +icon: LogarithmPlotter/logarithmplotter.svg adopt-info: linuxfiles license: GPL-3.0+ @@ -57,26 +57,21 @@ parts: # - fcitx-frontend-gtk3 # - libgtk2.0-0 launchers: - source: assets/native/linux/snapcraft/launcher/ + source: linux/snapcraft/launcher/ plugin: dump organize: '*': bin/ linuxfiles: - source: assets/native/linux/ + source: linux/ plugin: dump parse-info: [eu.ad5001.LogarithmPlotter.metainfo.xml] organize: logarithmplotter.desktop: usr/share/applications/logarithmplotter.desktop x-logarithm-plot.xml: usr/share/mime/packages/x-logarithm-plot.xml application-x-logarithm-plot.svg: usr/share/mime/packages/application-x-logarithm-plot.svg - filetypeicon: - source: assets/ - plugin: dump - organize: - logplotterfile.svg: usr/share/mime/packages/application-x-logarithm-plot.svg logarithmplotter: plugin: python - source: build + source: . stage-packages: - breeze-icon-theme # Latex dependencies @@ -150,7 +145,7 @@ parts: source: . plugin: dump organize: - CHANGELOG.md: lib/python3.12/site-packages/LogarithmPlotter/util/ + CHANGELOG.md: lib/python3.8/site-packages/LogarithmPlotter/util/ apps: logarithmplotter: diff --git a/common/test/hooks.mjs b/tests/js/hooks.mjs similarity index 91% rename from common/test/hooks.mjs rename to tests/js/hooks.mjs index e48525e..8c3e929 100644 --- a/common/test/hooks.mjs +++ b/tests/js/hooks.mjs @@ -19,7 +19,7 @@ import * as fs from "./mock/fs.mjs"; import Qt from "./mock/qt.mjs"; import { MockHelper } from "./mock/helper.mjs"; import { MockLatex } from "./mock/latex.mjs"; -import Modules from "../src/module/index.mjs"; +import Modules from "../../LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/module/index.mjs"; function setup() { globalThis.Helper = new MockHelper() @@ -27,4 +27,4 @@ function setup() { Modules.Latex.initialize({ latex: Latex, helper: Helper }) } -setup() +setup() \ No newline at end of file diff --git a/common/test/math/domain.mjs b/tests/js/math/domain.mjs similarity index 96% rename from common/test/math/domain.mjs rename to tests/js/math/domain.mjs index c00384f..6c185d4 100644 --- a/common/test/math/domain.mjs +++ b/tests/js/math/domain.mjs @@ -19,7 +19,7 @@ import { describe, it } from "mocha" import { expect } from "chai" -import { Domain, parseDomainSimple } from "../../src/math/domain.mjs" +import { Domain, parseDomainSimple } from "../../../LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/math/domain.mjs" describe("math.domain", function() { describe("#parseDomainSimple", function() { diff --git a/common/test/mock/fs.mjs b/tests/js/mock/fs.mjs similarity index 100% rename from common/test/mock/fs.mjs rename to tests/js/mock/fs.mjs diff --git a/common/test/mock/helper.mjs b/tests/js/mock/helper.mjs similarity index 100% rename from common/test/mock/helper.mjs rename to tests/js/mock/helper.mjs diff --git a/common/test/mock/latex.mjs b/tests/js/mock/latex.mjs similarity index 100% rename from common/test/mock/latex.mjs rename to tests/js/mock/latex.mjs diff --git a/common/test/mock/qt.mjs b/tests/js/mock/qt.mjs similarity index 100% rename from common/test/mock/qt.mjs rename to tests/js/mock/qt.mjs diff --git a/runtime-pyside6/tests/globals.py b/tests/python/globals.py similarity index 100% rename from runtime-pyside6/tests/globals.py rename to tests/python/globals.py diff --git a/runtime-pyside6/tests/test_config.py b/tests/python/test_config.py similarity index 100% rename from runtime-pyside6/tests/test_config.py rename to tests/python/test_config.py diff --git a/runtime-pyside6/tests/test_debug.py b/tests/python/test_debug.py similarity index 100% rename from runtime-pyside6/tests/test_debug.py rename to tests/python/test_debug.py diff --git a/runtime-pyside6/tests/test_helper.py b/tests/python/test_helper.py similarity index 100% rename from runtime-pyside6/tests/test_helper.py rename to tests/python/test_helper.py diff --git a/runtime-pyside6/tests/test_latex.py b/tests/python/test_latex.py similarity index 100% rename from runtime-pyside6/tests/test_latex.py rename to tests/python/test_latex.py diff --git a/runtime-pyside6/tests/test_main.py b/tests/python/test_main.py similarity index 100% rename from runtime-pyside6/tests/test_main.py rename to tests/python/test_main.py diff --git a/runtime-pyside6/tests/test_native.py b/tests/python/test_native.py similarity index 100% rename from runtime-pyside6/tests/test_native.py rename to tests/python/test_native.py diff --git a/runtime-pyside6/tests/test_pyjs.py b/tests/python/test_pyjs.py similarity index 100% rename from runtime-pyside6/tests/test_pyjs.py rename to tests/python/test_pyjs.py diff --git a/runtime-pyside6/tests/test_update.py b/tests/python/test_update.py similarity index 100% rename from runtime-pyside6/tests/test_update.py rename to tests/python/test_update.py diff --git a/assets/native/win/inst_banner.bmp b/win/inst_banner.bmp similarity index 100% rename from assets/native/win/inst_banner.bmp rename to win/inst_banner.bmp diff --git a/assets/native/win/installer.nsi b/win/installer.nsi similarity index 99% rename from assets/native/win/installer.nsi rename to win/installer.nsi index ebb84c9..58261ff 100644 --- a/assets/native/win/installer.nsi +++ b/win/installer.nsi @@ -14,7 +14,7 @@ Unicode True !define VERSION_SHORT "0.6.0" !define APP_VERSION "${VERSION_SHORT}.0" !define COPYRIGHT "Ad5001 (c) 2021-2024" -!define DESCRIPTION "Create graphs with logarithmic scales." +!define DESCRIPTION "Create graphs with logarithm scales." !define REG_UNINSTALL "Software\Microsoft\Windows\CurrentVersion\Uninstall\LogarithmPlotter" !define REG_APPPATHS "Software\Microsoft\Windows\CurrentVersion\App Paths\logarithmplotter.exe" diff --git a/assets/native/win/logarithmplotter.ico b/win/logarithmplotter.ico similarity index 100% rename from assets/native/win/logarithmplotter.ico rename to win/logarithmplotter.ico