diff --git a/build/conda/conda-3-8-env-full.yaml b/build/conda/conda-3-8-env-full.yaml deleted file mode 100644 index 29b1893e8dd..00000000000 --- a/build/conda/conda-3-8-env-full.yaml +++ /dev/null @@ -1,14 +0,0 @@ -channels: - - conda-forge - - defaults -dependencies: - - python=3.8 - - pip - - poetry=1.1.12 - - numpy=1.21.2 - - cvxpy=1.2.0 - - pytest - - black=22.1.0 - - sphinx=4.1.1 - - charset-normalizer=2.0.12 - - rich=10.16.2 diff --git a/build/conda/conda-3-8-env.yaml b/build/conda/conda-3-8-env.yaml deleted file mode 100644 index 29b1893e8dd..00000000000 --- a/build/conda/conda-3-8-env.yaml +++ /dev/null @@ -1,14 +0,0 @@ -channels: - - conda-forge - - defaults -dependencies: - - python=3.8 - - pip - - poetry=1.1.12 - - numpy=1.21.2 - - cvxpy=1.2.0 - - pytest - - black=22.1.0 - - sphinx=4.1.1 - - charset-normalizer=2.0.12 - - rich=10.16.2 diff --git a/build/pyinstaller/terminal.spec b/build/pyinstaller/terminal.spec index 54e64d21843..a5640af789f 100644 --- a/build/pyinstaller/terminal.spec +++ b/build/pyinstaller/terminal.spec @@ -48,15 +48,23 @@ a = Analysis( ) pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher) +splash = Splash('../../images/splashscreen.png', + binaries=a.binaries, + datas=a.datas, + text_pos=(200, 400), + text_size=12, + text_color='black') exe = EXE( pyz, a.scripts, + splash, + splash.binaries, a.binaries, a.zipfiles, a.datas, [], - name="terminal", + name="GameStonk", debug=False, bootloader_ignore_signals=False, strip=False, @@ -68,6 +76,7 @@ exe = EXE( target_arch="x86_64", codesign_identity=None, entitlements_file=None, + icon = "../../images/gst_app.ico", ) diff --git a/terminal.py b/terminal.py index a34302ff5b3..316e9177b06 100644 --- a/terminal.py +++ b/terminal.py @@ -39,6 +39,25 @@ from gamestonk_terminal.terminal_helper import ( welcome_message, ) +# This imports the package needed for the installer - Wrapped in try/except because +# it's not needed on the normal launch of project. +try: + import pyi_splash +except: + pass +# Below line tells the splash screen to go away on .exe launch when terminal is loaded. +try: + # Update the text on the splash screen + pyi_splash.update_text("Terminal Loaded!") + # Close the splash screen. It does not matter when the call + # to this function is made, the splash screen remains open until + # this function is called or the Python program is terminated. + pyi_splash.close() +except Exception as e: + print(e) + pass + + # pylint: disable=too-many-public-methods,import-outside-toplevel,too-many-branches logger = logging.getLogger(__name__)