diff --git a/BUILDING.md b/BUILDING.md index 40ee3e3..b575c97 100644 --- a/BUILDING.md +++ b/BUILDING.md @@ -39,6 +39,7 @@ pyinstaller ` --noconfirm ` --console ` --icon ".\assets\icon.ico" ` + --splash ".\assets\splash.png" ` --name "Drum Track Converter" ` --add-data ".\src;src/" ` --add-data=".\assets;assets/" ` diff --git a/assets/splash.afphoto b/assets/splash.afphoto new file mode 100644 index 0000000..264fd0b Binary files /dev/null and b/assets/splash.afphoto differ diff --git a/assets/splash.png b/assets/splash.png new file mode 100644 index 0000000..554ee98 Binary files /dev/null and b/assets/splash.png differ diff --git a/src/gui.py b/src/gui.py index 806fc40..29d84bc 100644 --- a/src/gui.py +++ b/src/gui.py @@ -2,6 +2,7 @@ @author: Jose Stovall | github.com/oitsjustjose | bsky||@oitsjustjose.com """ +import importlib import os import platform import subprocess @@ -91,8 +92,6 @@ class MainWindow(QMainWindow): prefix = "start /wait" if platform.system() == "Windows" else "" command = f"{prefix} {cli} {self.input_dir} {self.output_dir} -m {self.model_name}" - print(f"{command=}") - self.__child_proc = subprocess.Popen(command.split(" "), shell=True, creationflags=subprocess.CREATE_NEW_CONSOLE) self.__child_proc.wait() @@ -240,6 +239,13 @@ def main() -> None: When the app is closed, the exit code is stored for sys.exit() while in the meantime the off-thread processing (if any) is stopped. """ + # Tell the PyInstaller GUI that we're done loading + if "_PYI_SPLASH_IPC" in os.environ and importlib.util.find_spec("pyi_splash"): + import pyi_splash + + pyi_splash.update_text("Done Loading!") + pyi_splash.close() + app = QApplication(sys.argv) icon = QIcon()