Skip to content

Commit 28c4571

Browse files
committed
Move libxcb-cursor
1 parent e6befda commit 28c4571

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

utils/build_appimage.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def appImage(args: argparse.Namespace) -> None:
9191
writeFile(imgDir / "novelwriter.appdata.xml", appdataXml())
9292
writeFile(imgDir / "requirements.txt", str(outDir))
9393
writeFile(imgDir / "entrypoint.sh", (
94-
f"export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${{APPDIR}}/usr/lib/{mArch}-linux-gnu/\n"
94+
# f"export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${{APPDIR}}/usr/lib/{mArch}-linux-gnu/\n"
9595
'{{ python-executable }} -sE ${APPDIR}/opt/python{{ python-version }}/bin/novelwriter "$@"'
9696
))
9797

@@ -109,9 +109,9 @@ def appImage(args: argparse.Namespace) -> None:
109109

110110
# Copy Libraries
111111
libPath = Path(f"/usr/lib/{mArch}-linux-gnu")
112-
appLibs = appDir / "usr" / "lib" / f"{mArch}-linux-gnu"
113-
appLibs.mkdir(exist_ok=True)
114-
shutil.copyfile(libPath / "libxcb-cursor.so.0", appLibs / "libxcb-cursor.so.0")
112+
siteDir = appDir / "opt" / f"python{pyVer}" / "lib" / f"python{pyVer}" / "site-packages"
113+
qt6Lib = siteDir / "PyQt6" / "Qt6" / "lib"
114+
shutil.copyfile(libPath / "libxcb-cursor.so.0", qt6Lib / "libxcb-cursor.so.0")
115115

116116
# Build Image
117117
appToolExec = os.environ.get("APPIMAGE_TOOL_EXEC", "appimagetool")

0 commit comments

Comments
 (0)