Skip to content

Commit cb0b32f

Browse files
author
loki
committed
Add icon to windows executable
1 parent 9e93bb2 commit cb0b32f

File tree

6 files changed

+12
-2
lines changed

6 files changed

+12
-2
lines changed

CMakeLists.txt

+7
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ find_package(Boost COMPONENTS log filesystem REQUIRED)
2929
list(APPEND SUNSHINE_COMPILE_OPTIONS -Wall -Wno-missing-braces -Wno-maybe-uninitialized -Wno-sign-compare)
3030

3131
if(WIN32)
32+
enable_language(RC)
33+
set(CMAKE_RC_COMPILER windres)
3234
file(
3335
DOWNLOAD "https://github.com/TheElixZammuto/sunshine-prebuilt/releases/download/1.0.0/pre-compiled.zip" "${CMAKE_CURRENT_BINARY_DIR}/pre-compiled.zip"
3436
TIMEOUT 60
@@ -50,7 +52,12 @@ if(WIN32)
5052

5153
include_directories(third-party/ViGEmClient/include)
5254

55+
if(NOT DEFINED SUNSHINE_ICON_PATH)
56+
set(SUNSHINE_ICON_PATH "${CMAKE_CURRENT_SOURCE_DIR}/sunshine.ico")
57+
endif()
58+
configure_file(sunshine/platform/windows/windows.rs.in windows.rc @ONLY)
5359
set(PLATFORM_TARGET_FILES
60+
"${CMAKE_CURRENT_BINARY_DIR}/windows.rc"
5461
sunshine/platform/windows/publish.cpp
5562
sunshine/platform/windows/misc.h
5663
sunshine/platform/windows/misc.cpp

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
![Sunshine icon](gamepad.png "Sunshine")
12
# Introduction
23
Sunshine is a Gamestream host for Moonlight
34

@@ -113,7 +114,7 @@ It's necessary to allow Sunshine to use KMS
113114

114115
First you need to install [MSYS2](https://www.msys2.org), then startup "MSYS2 MinGW 64-bit" and install the following packages using `pacman -S`:
115116

116-
mingw-w64-x86_64-openssl mingw-w64-x86_64-cmake mingw-w64-x86_64-toolchain mingw-w64-x86_64-opus mingw-w64-x86_64-x265 mingw-w64-x86_64-boost git mingw-w64-x86_64-make cmake make gcc
117+
mingw-w64-x86_64-binutils mingw-w64-x86_64-openssl mingw-w64-x86_64-cmake mingw-w64-x86_64-toolchain mingw-w64-x86_64-opus mingw-w64-x86_64-x265 mingw-w64-x86_64-boost git mingw-w64-x86_64-make cmake make gcc
117118

118119
### Compilation:
119120
- `git clone https://github.com/loki-47-6F-64/sunshine.git --recursive`
@@ -153,6 +154,7 @@ All shortcuts start with CTRL + ALT + SHIFT, just like Moonlight
153154
- [Moonlight](https://github.com/moonlight-stream)
154155
- [Looking-Glass](https://github.com/gnif/LookingGlass) (For showing me how to properly capture frames on Windows, saving me a lot of time :)
155156
- [Eretik](http://eretik.omegahg.com/) (For creating PolicyConfig.h, allowing me to change the default audio device on Windows programmatically)
157+
- [Twitter emoji](https://github.com/twitter/twemoji/blob/master/LICENSE-GRAPHICS) (Sunshine's icon is made of twemoji)
156158

157159
## Application List:
158160
**Note:** You can change the Application List in the "Apps" section of the User Interface `https://xxx.xxx.xxx.xxx:47990/`

appveyor.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ environment:
1313
BUILD_TYPE: Release
1414

1515
install:
16-
- cmd: C:\msys64\usr\bin\bash -lc "pacman --needed --noconfirm -S mingw-w64-x86_64-openssl mingw-w64-x86_64-cmake mingw-w64-x86_64-toolchain mingw-w64-x86_64-opus mingw-w64-x86_64-x265 mingw-w64-x86_64-boost git yasm nasm diffutils make"
16+
- cmd: C:\msys64\usr\bin\bash -lc "pacman --needed --noconfirm -S mingw-w64-x86_64-binutils mingw-w64-x86_64-openssl mingw-w64-x86_64-cmake mingw-w64-x86_64-toolchain mingw-w64-x86_64-opus mingw-w64-x86_64-x265 mingw-w64-x86_64-boost git yasm nasm diffutils make"
1717

1818
before_build:
1919
- cmd: git submodule update --init --recursive

gamepad.png

24.2 KB
Loading

sunshine.ico

39.5 KB
Binary file not shown.
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
SuperDuperAmazing ICON DISCARDABLE "@SUNSHINE_ICON_PATH@"

0 commit comments

Comments
 (0)