]> Some of my projects - localmylist.git/commitdiff
Add windows icon.
authorAPTX <marek321@gmail.com>
Mon, 31 Aug 2015 16:37:00 +0000 (18:37 +0200)
committerAPTX <marek321@gmail.com>
Mon, 31 Aug 2015 16:37:00 +0000 (18:37 +0200)
localmylist-management/localmylist-management.exe.manifest [new file with mode: 0644]
localmylist-management/localmylist-management.pro
localmylist-management/localmylist-management.rc [new file with mode: 0644]
localmylist-management/share/windows-icon.ico [new file with mode: 0644]

diff --git a/localmylist-management/localmylist-management.exe.manifest b/localmylist-management/localmylist-management.exe.manifest
new file mode 100644 (file)
index 0000000..bf74870
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
+<assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'>
+  <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
+    <security>
+      <requestedPrivileges>
+        <requestedExecutionLevel level='asInvoker' uiAccess='false' />
+      </requestedPrivileges>
+    </security>
+  </trustInfo>
+  <dependency>
+    <dependentAssembly>
+      <assemblyIdentity type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*' />
+    </dependentAssembly>
+  </dependency>
+  <compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1"> 
+       <application>
+               <supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"/> 
+       </application>
+  </compatibility>
+</assembly>
index 0016ebaaa53be470ce0bc59ddff6ebfb52cb82d4..70d3b6575e8d0b1bb8b4143c9246d67d8023efe3 100644 (file)
@@ -93,8 +93,10 @@ include(qtsingleapplication/qtsingleapplication.pri)
        DEFINES += LOCALMYLIST_NO_ANIDBUDPCLIENT
 }
 
-# Why is this required with Qt5.4?
 win32 {
+       CONFIG -= embed_manifest_exe
+       RC_FILE += localmylist-management.rc
+# Why is this required with Qt5.4?
        LIBS += -ladvapi32 -lshell32
 }
 
diff --git a/localmylist-management/localmylist-management.rc b/localmylist-management/localmylist-management.rc
new file mode 100644 (file)
index 0000000..c68ff38
--- /dev/null
@@ -0,0 +1,37 @@
+1 TYPELIB "localmylist-management.rc"
+IDI_ICON1              ICON            DISCARDABLE     "share/windows-icon.ico"
+1 24 "localmylist-management.exe.manifest"
+1 VERSIONINFO
+ FILEVERSION 1,0,0,0
+ PRODUCTVERSION 1,0,0,0
+ FILEFLAGSMASK 0x3fL
+#ifdef _DEBUG
+ FILEFLAGS 0x1L
+#else
+ FILEFLAGS 0x0L
+#endif
+ FILEOS 0x4L
+ FILETYPE 0x2L
+ FILESUBTYPE 0x0L
+BEGIN
+    BLOCK "StringFileInfo"
+    BEGIN
+        BLOCK "040904e4"
+        BEGIN
+            VALUE "CompanyName", "APTX\0"
+            VALUE "FileDescription", "localmylist-management\0"
+            VALUE "FileOpenName", "Video Files (*.*)\0"
+            VALUE "FileVersion", "1, 0, 0, 0\0"
+            VALUE "InternalName", "localmylist-management\0"
+                       VALUE "LegalCopyright", "Copyright © 2009 APTX\0"
+                       VALUE "MIMEType", "application/x-localmylist-management\0"
+            VALUE "OriginalFilename", "localmylist-management.exe\0"
+            VALUE "ProductName", "LocalMyList Management\0"
+            VALUE "ProductVersion", "1, 0, 0, 0\0"
+        END
+    END
+    BLOCK "VarFileInfo"
+    BEGIN
+        VALUE "Translation", 0x409, 1252
+    END
+END
diff --git a/localmylist-management/share/windows-icon.ico b/localmylist-management/share/windows-icon.ico
new file mode 100644 (file)
index 0000000..92c19e8
Binary files /dev/null and b/localmylist-management/share/windows-icon.ico differ