Add splash screen and PyInstaller build script

This commit is contained in:
2026-07-02 20:05:02 +02:00
parent a9604023b3
commit ca934fe4b9
5 changed files with 116 additions and 2 deletions

View File

@@ -141,6 +141,14 @@ def shortened_stem(stem, max_length=80):
def find_ghostscript():
bundled_root = getattr(sys, "_MEIPASS", None)
if bundled_root:
bundled_ghostscript = Path(bundled_root) / "ghostscript"
for executable in ("gswin64c.exe", "gswin32c.exe", "gs.exe"):
matches = list(bundled_ghostscript.rglob(executable))
if matches:
return str(matches[0])
for executable in ("gswin64c", "gswin32c", "gs"):
path = shutil.which(executable)
if path:
@@ -1432,6 +1440,13 @@ class ZipBundlerApp(ctk.CTk):
def run_gui():
app = ZipBundlerApp()
try:
import pyi_splash
pyi_splash.close()
except Exception:
pass
app.mainloop()