diff options
Diffstat (limited to 'packaging')
-rw-r--r-- | packaging/win/delugewin.spec | 7 | ||||
-rw-r--r-- | packaging/win/pyi_rth_gtk_csd.py | 3 |
2 files changed, 7 insertions, 3 deletions
diff --git a/packaging/win/delugewin.spec b/packaging/win/delugewin.spec index fb7ec6895..d6c93d923 100644 --- a/packaging/win/delugewin.spec +++ b/packaging/win/delugewin.spec @@ -9,6 +9,7 @@ from PyInstaller.utils.hooks import collect_all, copy_metadata datas = [] binaries = [] hiddenimports = [] +runtime_hooks_gtk = [os.path.join(SPECPATH, 'pyi_rth_gtk_csd.py')] # Collect Meta Data datas += copy_metadata('deluge', recursive=True) @@ -72,7 +73,7 @@ b = Analysis([os.path.abspath(os.path.join(HOMEPATH,os.pardir,os.pardir)) + '\Sc hiddenimports=hiddenimports, hookspath=[], hooksconfig={}, - runtime_hooks=[], + runtime_hooks=runtime_hooks_gtk, excludes=[], win_no_prefer_redirects=False, win_private_assemblies=False, @@ -166,7 +167,7 @@ e = Analysis([os.path.abspath(os.path.join(HOMEPATH,os.pardir,os.pardir)) + '\Sc hiddenimports=hiddenimports, hookspath=[], hooksconfig={}, - runtime_hooks=[], + runtime_hooks=runtime_hooks_gtk, excludes=[], win_no_prefer_redirects=False, win_private_assemblies=False, @@ -197,7 +198,7 @@ f = Analysis([os.path.abspath(os.path.join(HOMEPATH,os.pardir,os.pardir)) + '\Sc hiddenimports=hiddenimports, hookspath=[], hooksconfig={}, - runtime_hooks=[], + runtime_hooks=runtime_hooks_gtk, excludes=[], win_no_prefer_redirects=False, win_private_assemblies=False, diff --git a/packaging/win/pyi_rth_gtk_csd.py b/packaging/win/pyi_rth_gtk_csd.py new file mode 100644 index 000000000..345122dd6 --- /dev/null +++ b/packaging/win/pyi_rth_gtk_csd.py @@ -0,0 +1,3 @@ +import os + +os.environ['GTK_CSD'] = os.getenv('GTK_CSD', '0') |