From 9c9c8d13bbc9b58de02271d4690cb20840c1d7c2 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Thu, 7 Mar 2019 06:27:53 +0100 Subject: ui: embed resource the old fashioned way If we ever get rid of the cgo requirement, we can return to rsrc or some variant of it. But given that win32 GUI stuff benefits from the larger cgo stacks, that seems unlikely. This gives us a bit more latitude to embed all sorts of interesting things in here as well. Clean up the makefile while we're at it and reduce the size of the exe. --- resources.rc | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 resources.rc (limited to 'resources.rc') diff --git a/resources.rc b/resources.rc new file mode 100644 index 00000000..fd3a521d --- /dev/null +++ b/resources.rc @@ -0,0 +1,39 @@ +/* SPDX-License-Identifier: MIT + * + * Copyright (C) 2019 WireGuard LLC. All Rights Reserved. + */ + +#include +#include "version.h" + +CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST manifest.xml + +1 ICON ui/icon/icon.ico + +VS_VERSION_INFO VERSIONINFO +FILEVERSION 0,0,0,1 +PRODUCTVERSION 0,0,0,1 +FILEOS VOS_NT_WINDOWS32 +FILETYPE VFT_APP +FILESUBTYPE VFT2_UNKNOWN +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "040904b0" + BEGIN + VALUE "CompanyName", "WireGuard LLC" + VALUE "FileDescription", "WireGuard: Fast, Modern, Secure VPN Tunnel" + VALUE "FileVersion", WIREGUARD_WINDOWS_VERSION + VALUE "InternalName", "wireguard" + VALUE "LegalCopyright", "Copyright \xa9 2015-2019 Jason A. Donenfeld . All Rights Reserved." + VALUE "OriginalFilename", "wireguard.exe" + VALUE "ProductName", "WireGuard" + VALUE "ProductVersion", WIREGUARD_WINDOWS_VERSION + VALUE "Comments", "https://www.wireguard.com/" + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x409, 1200 + END +END -- cgit v1.2.3-59-g8ed1b