aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/resources.rc
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-03-07 06:27:53 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2019-03-07 20:55:12 +0100
commit439748fdeecad1e97307c2b0b154a6d1370b518c (patch)
tree2c825b68c237a877878ffbd626a822b63e2d8fac /resources.rc
parentnames: better casing (diff)
downloadwireguard-windows-439748fdeecad1e97307c2b0b154a6d1370b518c.tar.xz
wireguard-windows-439748fdeecad1e97307c2b0b154a6d1370b518c.zip
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. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to '')
-rw-r--r--resources.rc39
1 files changed, 39 insertions, 0 deletions
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 <windows.h>
+#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 <Jason@zx2c4.com>. 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