Skip to content

Commit

Permalink
Merge pull request #375 from gaphor/bug/fix-win-installer
Browse files Browse the repository at this point in the history
Fix Windows Packaging Fails for Missing Files
  • Loading branch information
danyeaw committed Jul 30, 2020
2 parents f1d499c + de0a831 commit 8caeaaa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion win-installer/gaphor.spec
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ a = Analysis(['gaphor-script.py'],
('../gaphor/locale/*', 'gaphor/locale')
]+copy_metadata('gaphor')+copy_metadata('gaphas'),
hiddenimports=[],
hookspath=[],
hookspath=['hooks'],
runtime_hooks=[],
excludes=['lib2to3', 'tcl', 'tk', '_tkinter', 'tkinter', 'Tkinter'],
win_no_prefer_redirects=False,
Expand Down
7 changes: 7 additions & 0 deletions win-installer/hooks/hook-tinycss2.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
"""This hook can be removed onces integrated in PyInstaller"""

from PyInstaller.utils.hooks import collect_data_files


def hook(hook_api):
hook_api.add_datas(collect_data_files(hook_api.__name__))

0 comments on commit 8caeaaa

Please sign in to comment.