diff options
| author | ruki <[email protected]> | 2017-06-02 22:41:13 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-06-02 22:41:13 +0800 |
| commit | daa2475834699f070c838a54a826e075f6042287 (patch) | |
| tree | 7393ba0c680993429fdc2e8e0a458b79df4749c7 | |
| parent | 35f224c360fcab3a6d26d84d50e55af0af469968 (diff) | |
add icon to the windows installer and program
| -rw-r--r-- | core/src/demo/xmake.lua | 5 | ||||
| -rw-r--r-- | core/src/demo/xmake.rc | 1 | ||||
| -rw-r--r-- | docs/favicon.ico | bin | 9375 -> 119943 bytes | |||
| -rw-r--r-- | scripts/installer.nsi | 6 |
4 files changed, 11 insertions, 1 deletions
diff --git a/core/src/demo/xmake.lua b/core/src/demo/xmake.lua index 174b2fd38..db70a88b7 100644 --- a/core/src/demo/xmake.lua +++ b/core/src/demo/xmake.lua @@ -33,4 +33,9 @@ target("demo") -- add the common source files add_files("**.c") + + -- add the resource files + if is_plat("windows") then + add_files("*.rc") + end diff --git a/core/src/demo/xmake.rc b/core/src/demo/xmake.rc new file mode 100644 index 000000000..9892b8a5f --- /dev/null +++ b/core/src/demo/xmake.rc @@ -0,0 +1 @@ +IDI_APP ICON DISCARDABLE "../../../docs/favicon.ico"
diff --git a/docs/favicon.ico b/docs/favicon.ico Binary files differindex 937a26fff..52c8ef389 100644 --- a/docs/favicon.ico +++ b/docs/favicon.ico diff --git a/scripts/installer.nsi b/scripts/installer.nsi index b9997abbb..e2deebfc0 100644 --- a/scripts/installer.nsi +++ b/scripts/installer.nsi @@ -31,6 +31,10 @@ RequestExecutionLevel admin !define MUI_ABORTWARNING
;--------------------------------
+; Icon
+!define MUI_ICON "..\docs\favicon.ico"
+
+;--------------------------------
; Pages
!insertmacro MUI_PAGE_LICENSE "..\LICENSE.md"
@@ -40,7 +44,7 @@ RequestExecutionLevel admin !insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES
-
+
;--------------------------------
; Languages
|
