diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/AppMenuBar.qml b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/AppMenuBar.qml index 5cc6394..33718bd 100644 --- a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/AppMenuBar.qml +++ b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/AppMenuBar.qml @@ -74,7 +74,7 @@ MenuBar { } MenuSeparator { } Action { - text: qsTr("&Copy diagram") + text: qsTr("&Copy plot") shortcut: StandardKey.Copy onTriggered: root.copyDiagramToClipboard() icon.name: 'edit-copy' diff --git a/linux/eu.ad5001.LogarithmPlotter.metainfo.flatpak.xml b/linux/eu.ad5001.LogarithmPlotter.metainfo.flatpak.xml new file mode 100644 index 0000000..5cc281d --- /dev/null +++ b/linux/eu.ad5001.LogarithmPlotter.metainfo.flatpak.xml @@ -0,0 +1,49 @@ + + + + eu.ad5001.LogarithmPlotter + eu.ad5001.LogarithmPlotter.desktop + eu.ad5001.LogarithmPlotter.desktop + CC0-1.0 + GPL-3.0+ + + LogarithmPlotter + LogarithmPlotter + http://apps.ad5001.eu/icons/apps/logarithmplotter.svg + 2D plotter software to make BODE plots, sequences and repartition functions + Logiciel de traçage 2D pour les diagrammes de BODE, les suites et les fonctions de répartition + +

+ LogarithmPlotter is, as it's name suggests, a plotter made with logarithm scales in mind. With an object system similar to Geogebra's, it allows dynamic creation of plots with very few limitations. +

+

+ It's primary use is to quickly create [asymptotic Bode Diagrams/plots](https://en.wikipedia.org/wiki/Bode_plot), but it's extensible nature and ability to switch to non-logarithmic scales allow it to create other things with it, like sequences or statistical repartition functions. +

+
+ +

+ LogarithmPlotter est, comme son nom l'indique, un créateur de graphes et diagrammes 2D réalisé avec l'échelle logarithmique en tête. Avec un système d'objets similaire à Geogebra, ce qui lui permet de créer des graphes avec peu de limitations. +

+

+ Son intérêt principal est de permettre de créer des [diagrammes asymptotiques de Bode](https://fr.wikipedia.org/wiki/Diagramme_de_Bode), mais sa nature extensible et sa capacité à passer à une échelle non-logarithmique lui permet de créer d'autres choses. +

+
+ + + Network + Feed + + https://apps.ad5001.eu/logarithmplotter/ + https://git.ad5001.eu/Ad5001/LogarithmPlotter/issues/ + https://git.ad5001.eu/Ad5001/LogarithmPlotter/wiki/ + + http://apps.ad5001.eu/img/full/logarithmplotter.png + + + + + + + mail@ad5001.eu +
+ diff --git a/linux/eu.ad5001.LogarithmPlotter.metainfo.xml b/linux/eu.ad5001.LogarithmPlotter.metainfo.xml new file mode 100644 index 0000000..b9918d3 --- /dev/null +++ b/linux/eu.ad5001.LogarithmPlotter.metainfo.xml @@ -0,0 +1,50 @@ + + + + eu.ad5001.LogarithmPlotter + logarithmplotter.desktop + logarithmplotter.desktop + CC0-1.0 + GPL-3.0+ + + LogarithmPlotter + LogarithmPlotter + http://apps.ad5001.eu/icons/apps/logarithmplotter.svg + 2D plotter software to make BODE plots, sequences and repartition functions + Logiciel de traçage 2D pour les diagrammes de BODE, les suites et les fonctions de répartition + +

+ LogarithmPlotter is, as it's name suggests, a plotter made with logarithm scales in mind. With an object system similar to Geogebra's, it allows dynamic creation of plots with very few limitations. +

+

+ It's primary use is to quickly create [asymptotic Bode Diagrams/plots](https://en.wikipedia.org/wiki/Bode_plot), but it's extensible nature and ability to switch to non-logarithmic scales allow it to create other things with it, like sequences or statistical repartition functions. +

+
+ +

+ LogarithmPlotter est, comme son nom l'indique, un créateur de graphes et diagrammes 2D réalisé avec l'échelle logarithmique en tête. Avec un système d'objets similaire à Geogebra, ce qui lui permet de créer des graphes avec peu de limitations. +

+

+ Son intérêt principal est de permettre de créer des [diagrammes asymptotiques de Bode](https://fr.wikipedia.org/wiki/Diagramme_de_Bode), mais sa nature extensible et sa capacité à passer à une échelle non-logarithmique lui permet de créer d'autres choses. +

+
+ + + Network + Feed + + https://apps.ad5001.eu/logarithmplotter/ + https://git.ad5001.eu/Ad5001/LogarithmPlotter/issues/ + https://git.ad5001.eu/Ad5001/LogarithmPlotter/wiki/ + + http://apps.ad5001.eu/img/full/logarithmplotter.png + + + + + + + mail@ad5001.eu +
+ + diff --git a/setup.py b/setup.py index 3894efd..53a8034 100644 --- a/setup.py +++ b/setup.py @@ -74,19 +74,33 @@ if sys.platform == 'linux': 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 and sys.argv[1] == "install": - from shutil import copyfile - 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) - copyfile(current_dir + '/linux/logarithmplotter.desktop', os.environ["PREFIX"] + '/applications/logarithmplotter.desktop') - 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') + if len(sys.argv) > 1: + if sys.argv[1] == "install": + from shutil import copyfile + 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) + copyfile(current_dir + '/linux/logarithmplotter.desktop', os.environ["PREFIX"] + '/applications/logarithmplotter.desktop') + 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') + if "FLATPAK_INSTALL" in os.environ: + os.makedirs(os.environ["PREFIX"] + '/metainfo/', exist_ok=True) + copyfile(current_dir + '/linux/eu.ad5001.LogarithmPlotter.metainfo.flatpak.xml', + os.environ["PREFIX"] + '/metainfo/eu.ad5001.LogarithmPlotter.metainfo.xml') + 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') + +print("FLATPAK_INSTALL=", "FLATPAK_INSTALL" in os.environ) +print("Dependencies:", [] if "FLATPAK_INSTALL" in os.environ else ["PySide2"]) setuptools.setup( - install_requires=["PySide2"], + install_requires=([] if "FLATPAK_INSTALL" in os.environ else ["PySide2"]), python_requires='>=3.8', name='logarithmplotter', diff --git a/snapcraft.yaml b/snapcraft.yaml index 9d632ab..65add5c 100644 --- a/snapcraft.yaml +++ b/snapcraft.yaml @@ -1,4 +1,5 @@ name: logarithmplotter +title: LogarithmPlotter version: '0.0.1' summary: 2D plotter software to make BODE plots, sequences and repartition functions. description: | @@ -8,6 +9,12 @@ confinement: strict base: core20 grade: devel icon: LogarithmPlotter/logarithmplotter.svg +adopt-info: linuxfiles +license: GPL-3.0+ + +architectures: + - build-on: amd64 + run-on: amd64 plugs: #gnome-3-38-2004: @@ -19,7 +26,7 @@ plugs: interface: content target: $SNAP/data-dir/themes sound-themes: - default-provider: gtk-common-themes:sound-themes + defauwebsitelt-provider: gtk-common-themes:sound-themes interface: content target: $SNAP/data-dir/sounds icon-themes: @@ -65,6 +72,7 @@ parts: linuxfiles: 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