Skip to content

Commit

Permalink
Add splash screen to pyinstaller exe
Browse files Browse the repository at this point in the history
  • Loading branch information
nimaid committed Dec 20, 2023
1 parent dfb29a9 commit c284a0a
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 3 deletions.
7 changes: 7 additions & 0 deletions binary-waterfall.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
import os
import importlib.util

from src import binary_waterfall

if '_PYIBoot_SPLASH' in os.environ and importlib.util.find_spec("pyi_splash"):
import pyi_splash
pyi_splash.close()

if __name__ == "__main__":
binary_waterfall.run()
2 changes: 2 additions & 0 deletions build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ set VERSION_INFO=%ORIGDIR%\file_version_info.txt

set RESOURCEDIR=%SOURCEDIR%\resources
set ICON_ICO=%RESOURCEDIR%\icon.ico
set SPLASH_IMG=%RESOURCEDIR%\splash.jpg

echo Cleaning up before making release...
del /f /q "%TARGETEXE%" 1>nul 2>&1
Expand All @@ -45,6 +46,7 @@ call conda run -n %ENVNAME% pyinstaller ^
--add-data %SOURCEDIR%\resources\*;.\src\%MODULENAME%\resources ^
--onefile ^
--icon=%ICON_ICO% ^
--splash=%SPLASH_IMG% ^
--version-file=%VERSION_INFO% ^
"%PY%"
if errorlevel 1 goto ERROR
Expand Down
Binary file modified docs/splash.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "binary-waterfall"
version = "3.5.1"
version = "3.5.2"
readme = "README_pypi.md"
description = "A Raw Data Media Player"
license= {file = "LICENSE"}
Expand Down
2 changes: 1 addition & 1 deletion src/binary_waterfall/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
from .core import run
from .core import run, constants
Binary file added src/binary_waterfall/resources/splash.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/binary_waterfall/version.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Version: 3.5.1
Version: 3.5.2
CompanyName: Ella Jameson (nimaid)
FileDescription: A Raw Data Media Player
InternalName: Binary Waterfall
Expand Down

0 comments on commit c284a0a

Please sign in to comment.