diff --git a/pyproject.toml b/pyproject.toml index 15e97b8..c01b376 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "pyqulator" -version = "1.6.1" +version = "1.6.2" dependencies = [ "PyQt6>=6.4.2", "sympy>=1.13.3", diff --git a/setup.py b/setup.py index 46be45d..8a1e6c7 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,5 @@ import shutil -from os import path +from os import makedirs, path from platform import system from setuptools import setup @@ -11,7 +11,9 @@ def run(self): super().run() if system() == "Linux": try: - source = path.join(path.dirname(__file__), "Pyqulator.desktop") + destination_dir = path.expanduser("~/.local/share/applications") + makedirs(destination_dir, exist_ok=True) + source = path.join(path.dirname(__file__), "src/pyqulator/Pyqulator.desktop") destination = path.expanduser("~/.local/share/applications/Pyqulator.desktop") shutil.copy(source, destination) except: # noqa diff --git a/Pyqulator.desktop b/src/pyqulator/Pyqulator.desktop similarity index 100% rename from Pyqulator.desktop rename to src/pyqulator/Pyqulator.desktop