File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,11 @@ else()
102
102
${X11_INCLUDE_DIR}
103
103
/usr/include/libevdev-1.0 )
104
104
105
+ if (NOT DEFINED SUNSHINE_EXECUTABLE_PATH )
106
+ set (SUNSHINE_EXECUTABLE_PATH "${CMAKE_CURRENT_BINARY_DIR} /sunshine" )
107
+ endif ()
105
108
configure_file (gen-deb.in gen-deb @ONLY )
109
+ configure_file (sunshine.service.in sunshine.service @ONLY )
106
110
endif ()
107
111
108
112
set (Boost_USE_STATIC_LIBS ON )
Original file line number Diff line number Diff line change @@ -30,18 +30,19 @@ before_build:
30
30
build_script :
31
31
- cmd : set OLDPATH=%PATH%
32
32
- cmd : set PATH=C:\msys64\mingw64\bin
33
- - sh : cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DSUNSHINE_ASSETS_DIR=/etc/sunshine ..
33
+ - sh : cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DSUNSHINE_EXECUTABLE_PATH=sunshine - DSUNSHINE_ASSETS_DIR=/etc/sunshine ..
34
34
- cmd : cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DOPENSSL_ROOT_DIR=C:\OpenSSL-v111-Win64 -DSUNSHINE_STANDALONE=ON -DSUNSHINE_ASSETS_DIR=assets -G "MinGW Makefiles" ..
35
35
- sh : make -j$(nproc)
36
36
- cmd : mingw32-make -j2
37
37
- cmd : set PATH=%OLDPATH%
38
38
39
39
after_build :
40
40
- sh : ./gen-deb
41
- - cmd : Del ..\assets\apps_linux.json ..\assets\sunshine.service
41
+ - cmd : Del ..\assets\apps_linux.json
42
42
- cmd : 7z a Sunshine-Windows.zip ..\assets
43
43
- cmd : 7z a Sunshine-Windows.zip sunshine.exe
44
44
- cmd : 7z a Sunshine-Windows.zip tools\dxgi-info.exe
45
45
- cmd : 7z a Sunshine-Windows.zip tools\audio-info.exe
46
46
- cmd : appveyor PushArtifact Sunshine-Windows.zip
47
47
- sh : appveyor PushArtifact package-deb/sunshine.deb
48
+ - sh : appveyor PushArtifact sunshine.service
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ Environment="DISPLAY=:0"
7
7
Type=simple
8
8
# wait for Xorg
9
9
ExecStartPre=/bin/sh -c 'while ! pgrep Xorg; do sleep 2; done'
10
- ExecStart =/home/%u/Github/sunshine/cmake-build-release/sunshine
10
+ ExecStart=@SUNSHINE_EXECUTABLE_PATH@
11
11
12
12
[Install]
13
13
WantedBy=default.target
You can’t perform that action at this time.
0 commit comments