From 945ee1305830e227b2da3cf568669abc5d827bfb Mon Sep 17 00:00:00 2001 From: DYefremov Date: Sun, 10 Apr 2022 10:39:59 +0300 Subject: [PATCH] hooks config for *.spec file --- build/mac/DemonEditor.spec | 13 ++++++++++++- build/win/DemonEditor.spec | 10 ++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/build/mac/DemonEditor.spec b/build/mac/DemonEditor.spec index 3b062b90..73ae2fd2 100644 --- a/build/mac/DemonEditor.spec +++ b/build/mac/DemonEditor.spec @@ -32,6 +32,16 @@ a = Analysis([EXE_NAME], hiddenimports=['fileinput', 'uuid'], hookspath=[], runtime_hooks=[], + hooksconfig={ + "gi": { + "languages": ["en", "be", "es", "it", "nl", + "pl", "pt", "ru", "tr", "zh_CN"], + "module-versions": { + "Gtk": "3.0", + "GtkSource": "3", + }, + }, + }, excludes=excludes, win_no_prefer_redirects=False, win_private_assemblies=False, @@ -71,5 +81,6 @@ app = BUNDLE(coll, 'LSMinimumSystemVersion': '10.13', 'CFBundleShortVersionString': f"2.2.2.{BUILD_DATE} Beta", 'NSHumanReadableCopyright': u"Copyright © 2022, Dmitriy Yefremov", - 'NSRequiresAquaSystemAppearance': 'false' + 'NSRequiresAquaSystemAppearance': 'false', + 'NSHighResolutionCapable': 'true' }) diff --git a/build/win/DemonEditor.spec b/build/win/DemonEditor.spec index b1de083e..8d2beb52 100644 --- a/build/win/DemonEditor.spec +++ b/build/win/DemonEditor.spec @@ -30,6 +30,16 @@ a = Analysis([EXE_NAME], hiddenimports=['fileinput', 'uuid', 'ctypes.wintypes'], hookspath=[], runtime_hooks=[], + hooksconfig={ + "gi": { + "languages": ["en", "be", "es", "it", "nl", + "pl", "pt", "ru", "tr", "zh_CN"], + "module-versions": { + "Gtk": "3.0", + "GtkSource": "3", + }, + }, + }, excludes=excludes, win_no_prefer_redirects=False, win_private_assemblies=False,