diff --git a/.gitignore b/.gitignore index f3c55d1..3ddd7a3 100644 --- a/.gitignore +++ b/.gitignore @@ -5,5 +5,5 @@ __pycache__/ *-checkpoint.ipynb /build /dist -/main.spec +/*.spec /tmp/ diff --git a/requirements.txt b/requirements.txt index 8048b8f..d9a5c94 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,3 +4,4 @@ pyqt5-tools pyqtgraph pyod tensorflow +pyinstaller diff --git a/scripts/convert-ico.py b/scripts/convert-ico.py new file mode 100644 index 0000000..1b055b4 --- /dev/null +++ b/scripts/convert-ico.py @@ -0,0 +1,10 @@ +import sys +from PIL import Image +from pathlib import Path as P + +args = sys.argv[1:] +args = list(map(P, args)) +for f in args: + img=Image.open(str(f)) + img.save(f'{f.with_suffix(".ico")}') + diff --git a/scripts/package-exe.cmd b/scripts/package-exe.cmd new file mode 100644 index 0000000..7e12890 --- /dev/null +++ b/scripts/package-exe.cmd @@ -0,0 +1,2 @@ +python scripts/convert-ico.py ./splash.png +pyinstaller ./Application.py --name OutlierDetect -w --noconfirm -i splash.ico diff --git a/splash.ico b/splash.ico new file mode 100644 index 0000000..bdcbd39 Binary files /dev/null and b/splash.ico differ