summaryrefslogtreecommitdiffstats
path: root/packaging
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2011-10-29 09:14:15 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2011-10-29 09:14:15 -0700
commit7f0c866f486eab549e25853bedd2e96b1b211773 (patch)
tree4c04e9415eaec48ad24e8f0a7ba866ceeab8758e /packaging
parent2101f37c1b81840beda99a7b4e87e938f9e52a7a (diff)
downloadsubsurface-7f0c866f486eab549e25853bedd2e96b1b211773.tar.gz
Get icons working correctly under Windows
With this we are able to include both a separate .ico file that the program can load at runtime and a .res file (that is created from the .rc file, both in the packaging/windows directory) that is linked into the executable and makes the Windows Explorer show the correct icon for subsurface. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'packaging')
-rw-r--r--packaging/windows/subsurface.icobin0 -> 16958 bytes
-rw-r--r--packaging/windows/subsurface.rc25
-rw-r--r--packaging/windows/subsurface.resbin0 -> 18056 bytes
3 files changed, 25 insertions, 0 deletions
diff --git a/packaging/windows/subsurface.ico b/packaging/windows/subsurface.ico
new file mode 100644
index 000000000..fe7d1090b
--- /dev/null
+++ b/packaging/windows/subsurface.ico
Binary files differ
diff --git a/packaging/windows/subsurface.rc b/packaging/windows/subsurface.rc
new file mode 100644
index 000000000..af79f6de9
--- /dev/null
+++ b/packaging/windows/subsurface.rc
@@ -0,0 +1,25 @@
+1 VERSIONINFO
+FILEVERSION 1,1,0,0
+PRODUCTVERSION 1,1,0,0
+BEGIN
+ BLOCK "StringFileInfo"
+ BEGIN
+ BLOCK "080904E4"
+ BEGIN
+ VALUE "CompanyName", "subsurface team"
+ VALUE "FileDescription", "subsurface dive log"
+ VALUE "FileVersion", "1.1"
+ VALUE "InternalName", "subsurface"
+ VALUE "LegalCopyright", "Linus Torvalds, Dirk Hohndel and others"
+ VALUE "OriginalFilename", "subsurface.exe"
+ VALUE "ProductName", "subsurface"
+ VALUE "ProductVersion", "1.1"
+ END
+ END
+
+ BLOCK "VarFileInfo"
+ BEGIN
+ VALUE "Translation", 0x809, 1252
+ END
+END
+ID ICON "subsurface.ico" \ No newline at end of file
diff --git a/packaging/windows/subsurface.res b/packaging/windows/subsurface.res
new file mode 100644
index 000000000..616cf5ea9
--- /dev/null
+++ b/packaging/windows/subsurface.res
Binary files differ