From dff9bd32d771ba3c9d67b4cb62979e6ec9ff2e65 Mon Sep 17 00:00:00 2001 From: "Julien M." Date: Wed, 8 Nov 2023 11:46:35 +0100 Subject: [PATCH] Fix missing shortcut template in packaging --- builder/pyinstaller_build_macos.py | 5 +++++ builder/pyinstaller_build_ubuntu.py | 7 ++++++- builder/pyinstaller_build_windows.py | 9 ++++++--- 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/builder/pyinstaller_build_macos.py b/builder/pyinstaller_build_macos.py index 4bf9d33e..94bdbe3f 100644 --- a/builder/pyinstaller_build_macos.py +++ b/builder/pyinstaller_build_macos.py @@ -31,6 +31,11 @@ PyInstaller.__main__.run( [ + "--add-data=LICENSE:.", + "--add-data=README.md:.", + "--add-data={}:profiles/".format( + (package_folder / "profiles/shortcut_freedesktop.template/").resolve() + ), "--log-level={}".format(getenv("PYINSTALLER_LOG_LEVEL", "WARN")), "--name={}_{}_MacOS{}_Python{}-{}".format( __about__.__title_clean__, diff --git a/builder/pyinstaller_build_ubuntu.py b/builder/pyinstaller_build_ubuntu.py index 4f39a672..76ea4279 100644 --- a/builder/pyinstaller_build_ubuntu.py +++ b/builder/pyinstaller_build_ubuntu.py @@ -29,6 +29,11 @@ PyInstaller.__main__.run( [ + "--add-data=LICENSE:.", + "--add-data=README.md:.", + "--add-data={}:profiles/".format( + (package_folder / "profiles/shortcut_freedesktop.template/").resolve() + ), "--log-level={}".format(getenv("PYINSTALLER_LOG_LEVEL", "WARN")), "--name={}_{}_{}{}_{}_Python{}".format( __about__.__title_clean__, @@ -40,7 +45,7 @@ ).replace(".", "-"), "--noconfirm", "--noupx", - "--onefile", + # "--onefile", "--console", str(package_folder / "cli.py"), ] diff --git a/builder/pyinstaller_build_windows.py b/builder/pyinstaller_build_windows.py index 45b89eb4..1a89bd5d 100644 --- a/builder/pyinstaller_build_windows.py +++ b/builder/pyinstaller_build_windows.py @@ -28,8 +28,11 @@ PyInstaller.__main__.run( [ - "--add-data=LICENSE;.", - "--add-data=README.md;.", + "--add-data=LICENSE:.", + "--add-data=README.md:.", + "--add-data={}:profiles/".format( + (package_folder / "profiles/shortcut_freedesktop.template/").resolve() + ), # "--clean", f"--icon={package_folder.parent.resolve()}/docs/static/logo_qdt.ico", "--log-level={}".format(getenv("PYINSTALLER_LOG_LEVEL", "WARN")), @@ -44,7 +47,7 @@ ), "--noconfirm", "--noupx", - "--onefile", + # "--onefile", "--version-file={}".format("version_info.txt"), "--console", str(package_folder / "cli.py"),