Skip to content

Commit f081987

Browse files
committed
add manifestfile + dummy icon
1 parent dfb39db commit f081987

File tree

4 files changed

+33
-0
lines changed

4 files changed

+33
-0
lines changed

src/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,13 @@ OPTION(PRD_CONSOLETOOL
109109
"Enables compilation and installation of the console tool ${PRDOWNLOADER}" ON)
110110

111111
if (PRD_CONSOLETOOL)
112+
### Add icon and manifest to exe using windres
113+
if(WIN32 AND MINGW)
114+
set(PRD_ICON "${CURRENT_SOURCE_DIR}/icon.rc")
115+
endif()
116+
112117
add_executable(${PRDOWNLOADER}
118+
${PRD_ICON}
113119
main.cpp
114120
)
115121

src/icon.rc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#if defined(__MWERKS__)
2+
#include <winresrc.h>
3+
#else
4+
#include <windows.h>
5+
#endif
6+
7+
// see "about isolated applications" topic in MSDN
8+
#ifdef ISOLATION_AWARE_ENABLED
9+
#define MANIFEST_ID 2
10+
#else
11+
#define MANIFEST_ID 1
12+
#endif
13+
14+
MANIFEST_ID 24 "pr-downloader.exe.manifest"
15+
16+
//1 ICON "pr-downloader.ico"

src/pr-downloader.exe.manifest

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2+
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
3+
<assemblyIdentity version="1.0.0.0" processorArchitecture="X86" name="spring" type="win32"/>
4+
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
5+
<security>
6+
<requestedPrivileges>
7+
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
8+
</requestedPrivileges>
9+
</security>
10+
</trustInfo>
11+
</assembly>

src/pr-downloader.ico

134 KB
Binary file not shown.

0 commit comments

Comments
 (0)