Skip to content

Commit

Permalink
Fix missing shortcut template in packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
Guts committed Nov 8, 2023
1 parent 4081ab3 commit dff9bd3
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
5 changes: 5 additions & 0 deletions builder/pyinstaller_build_macos.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__,
Expand Down
7 changes: 6 additions & 1 deletion builder/pyinstaller_build_ubuntu.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__,
Expand All @@ -40,7 +45,7 @@
).replace(".", "-"),
"--noconfirm",
"--noupx",
"--onefile",
# "--onefile",
"--console",
str(package_folder / "cli.py"),
]
Expand Down
9 changes: 6 additions & 3 deletions builder/pyinstaller_build_windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")),
Expand All @@ -44,7 +47,7 @@
),
"--noconfirm",
"--noupx",
"--onefile",
# "--onefile",
"--version-file={}".format("version_info.txt"),
"--console",
str(package_folder / "cli.py"),
Expand Down

0 comments on commit dff9bd3

Please sign in to comment.