Skip to content

Commit

Permalink
package exe
Browse files Browse the repository at this point in the history
  • Loading branch information
cgsdfc committed Sep 5, 2022
1 parent 0573082 commit 0be68df
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ __pycache__/
*-checkpoint.ipynb
/build
/dist
/main.spec
/*.spec
/tmp/
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ pyqt5-tools
pyqtgraph
pyod
tensorflow
pyinstaller
10 changes: 10 additions & 0 deletions scripts/convert-ico.py
Original file line number Diff line number Diff line change
@@ -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")}')

2 changes: 2 additions & 0 deletions scripts/package-exe.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
python scripts/convert-ico.py ./splash.png
pyinstaller ./Application.py --name OutlierDetect -w --noconfirm -i splash.ico
Binary file added splash.ico
Binary file not shown.

0 comments on commit 0be68df

Please sign in to comment.