From cae41d98588153b972b28337b676660eff388a2a Mon Sep 17 00:00:00 2001 From: kozec Date: Mon, 3 Jul 2017 20:50:12 +0200 Subject: [PATCH] Finally managed to get windows build again --- build_windows.py | 31 +++++++++++++------------------ syncthing_gtk/windows.py | 2 +- 2 files changed, 14 insertions(+), 19 deletions(-) diff --git a/build_windows.py b/build_windows.py index 9ae40de5..03604b47 100644 --- a/build_windows.py +++ b/build_windows.py @@ -25,15 +25,12 @@ #'libgirepository-1.0-1.dll', #'libgmodule-2.0-0.dll', #'libgladeui-2-6.dll', - 'libpango-1.0-0.dll', - 'libp11-kit-0.dll', - 'libproxy.dll', + 'libpango-1.0-0.dll', 'libpangocairo-1.0-0.dll', 'libpangoft2-1.0-0.dll', 'libpangowin32-1.0-0.dll', 'libffi-6.dll', #'libgio-2.0-0.dll', - 'libgnutls-28.dll', 'libharfbuzz-gobject-0.dll', 'libharfbuzz-0.dll', #'libpng16-16.dll', @@ -48,7 +45,6 @@ 'libepoxy-0.dll', 'libjasper-1.dll', 'libjpeg-8.dll', - 'libstdc++.dll', 'gspawn-win32-helper.exe', 'gspawn-win32-helper-console.exe', @@ -97,14 +93,12 @@ executables = [ Executable( "scripts/syncthing-gtk-exe.py", - compress = True, targetName = "syncthing-gtk.exe", base = "Win32GUI", icon = "icons/st-logo-128.ico", ), Executable( "scripts/syncthing-gtk-exe.py", - compress = True, targetName = "syncthing-gtk-console.exe", base = "console", icon = "icons/st-logo-128.ico", @@ -115,18 +109,20 @@ get_version = lambda : "%s-win32" % (_get_version(),) # Monkey-patch _AddVersionResource in cx_Freeze so win32verstamp will -# not bitch about non-numeric version +# not bitch about non-numeric version RE_NUMBER = re.compile(r'v?([0-9]+).*') extract_number = lambda x : RE_NUMBER.match(x).group(1) if \ RE_NUMBER.match(x) else "0" win32version = lambda x : ".".join([ extract_number(i) for i in x.split(".")[0:4] ]) -Freezer._AddVersionResource = lambda self, filename : \ - stamp(filename, VersionInfo( - win32version(self.metadata.version), - comments = self.metadata.long_description, - description = self.metadata.description, - company = self.metadata.author, - product = self.metadata.name +Freezer._AddVersionResource = lambda self, exe : \ + stamp(exe.targetName, VersionInfo( + win32version(self.metadata.version), + comments = self.metadata.long_description, + description = self.metadata.description, + company = self.metadata.author, + product = self.metadata.name, + copyright = exe.copyright, + trademarks = exe.trademarks )) setup( @@ -136,9 +132,8 @@ description = "Windows port of Syncthing GTK", options = dict( build_exe = dict( - compressed = False, - includes = ["gi"], - packages = ["gi"], + includes = [ "gi" ], + packages = [ "gi", "bcrypt", "cffi" ], include_files = include_files ), ), diff --git a/syncthing_gtk/windows.py b/syncthing_gtk/windows.py index d14a18a5..c2474d11 100644 --- a/syncthing_gtk/windows.py +++ b/syncthing_gtk/windows.py @@ -15,7 +15,7 @@ log = logging.getLogger("windows.py") SM_SHUTTINGDOWN = 0x2000 -ST_INOTIFY_EXE = "syncthing-inotify-v0.8.3.exe" +ST_INOTIFY_EXE = "syncthing-inotify-v0.8.7.exe" def fix_localized_system_error_messages(): """