Add splash screen and PyInstaller build script
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user