Skip to content

Commit

Permalink
Add build script and hooks for PyInstaller
Browse files Browse the repository at this point in the history
  • Loading branch information
enjoeyland committed Mar 11, 2024
1 parent 4f7f9a0 commit cb34dcf
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions build.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pyinstaller -w -F .\main.py --additional-hooks-dir=hooks
1 change: 1 addition & 0 deletions hooks/hook-openpyxl.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
hiddenimports = ["openpyxl.cell._writer"]
3 changes: 3 additions & 0 deletions hooks/hook-tkinterdnd2.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from PyInstaller.utils.hooks import collect_data_files

datas = collect_data_files('tkinterdnd2')
3 changes: 2 additions & 1 deletion src/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ def on_leave(event):
event.widget.configure(style='default.TButton')

def on_closing():
exit(0)
import sys
sys.exit(0)

def on_drop(event):
def to_list(data):
Expand Down

0 comments on commit cb34dcf

Please sign in to comment.