Migrate installer to Apollo
This commit is contained in:
BIN
src_assets/windows/drivers/sudovda/SudoVDA.inf
Normal file
BIN
src_assets/windows/drivers/sudovda/SudoVDA.inf
Normal file
Binary file not shown.
BIN
src_assets/windows/drivers/sudovda/code_signing.crt
Normal file
BIN
src_assets/windows/drivers/sudovda/code_signing.crt
Normal file
Binary file not shown.
25
src_assets/windows/drivers/sudovda/install.bat
Normal file
25
src_assets/windows/drivers/sudovda/install.bat
Normal file
@@ -0,0 +1,25 @@
|
||||
@echo off
|
||||
|
||||
pushd %~dp0
|
||||
|
||||
echo ================
|
||||
echo Installing cert for the SudoVDA driver...
|
||||
|
||||
certutil -addstore -f root "code_signing.crt"
|
||||
certutil -addstore -f TrustedPublisher "code_signing.crt"
|
||||
|
||||
echo ================
|
||||
echo Removing the old driver... It's OK to show an error if you're installing the driver for the first time.
|
||||
|
||||
nefconc.exe --remove-device-node --hardware-id root\sudomaker\sudovda --class-guid "4D36E968-E325-11CE-BFC1-08002BE10318"
|
||||
|
||||
echo ================
|
||||
echo Installing the new driver...
|
||||
|
||||
nefconc.exe --create-device-node --class-name Display --class-guid "4D36E968-E325-11CE-BFC1-08002BE10318" --hardware-id root\sudomaker\sudovda
|
||||
nefconc.exe --install-driver --inf-path "SudoVDA.inf"
|
||||
|
||||
echo ================
|
||||
echo Done!
|
||||
|
||||
popd
|
||||
BIN
src_assets/windows/drivers/sudovda/sudovda.cat
Normal file
BIN
src_assets/windows/drivers/sudovda/sudovda.cat
Normal file
Binary file not shown.
9
src_assets/windows/drivers/sudovda/uninstall.bat
Normal file
9
src_assets/windows/drivers/sudovda/uninstall.bat
Normal file
@@ -0,0 +1,9 @@
|
||||
@echo off
|
||||
|
||||
pushd %~dp0
|
||||
|
||||
nefconc.exe --remove-device-node --hardware-id root\sudomaker\sudovda --class-guid "4D36E968-E325-11CE-BFC1-08002BE10318"
|
||||
|
||||
popd
|
||||
|
||||
pause
|
||||
@@ -1,4 +1,4 @@
|
||||
@echo off
|
||||
|
||||
rem Set the service to auto-start
|
||||
sc config SunshineService start= auto
|
||||
sc config ApolloService start= auto
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
rem Get sunshine root directory
|
||||
for %%I in ("%~dp0\..") do set "ROOT_DIR=%%~fI"
|
||||
|
||||
set RULE_NAME=Sunshine
|
||||
set RULE_NAME=Apollo
|
||||
set PROGRAM_BIN="%ROOT_DIR%\sunshine.exe"
|
||||
|
||||
rem Add the rule
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
@echo off
|
||||
|
||||
set RULE_NAME=Sunshine
|
||||
set RULE_NAME=Apollo
|
||||
|
||||
rem Delete the rule
|
||||
netsh advfirewall firewall delete rule name=%RULE_NAME%
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
rem Get sunshine root directory
|
||||
for %%I in ("%~dp0\..") do set "ROOT_DIR=%%~fI"
|
||||
|
||||
set SERVICE_NAME=SunshineService
|
||||
set SERVICE_NAME=ApolloService
|
||||
set SERVICE_BIN="%ROOT_DIR%\tools\sunshinesvc.exe"
|
||||
|
||||
rem Set service to demand start. It will be changed to auto later if the user selected that option.
|
||||
@@ -13,7 +13,7 @@ rem Remove the legacy SunshineSvc service
|
||||
net stop sunshinesvc
|
||||
sc delete sunshinesvc
|
||||
|
||||
rem Check if SunshineService already exists
|
||||
rem Check if ApolloService already exists
|
||||
sc qc %SERVICE_NAME% > nul 2>&1
|
||||
if %ERRORLEVEL%==0 (
|
||||
rem Stop the existing service if running
|
||||
@@ -27,10 +27,10 @@ if %ERRORLEVEL%==0 (
|
||||
)
|
||||
|
||||
rem Run the sc command to create/reconfigure the service
|
||||
sc %SC_CMD% %SERVICE_NAME% binPath= %SERVICE_BIN% start= %SERVICE_START_TYPE% DisplayName= "Sunshine Service"
|
||||
sc %SC_CMD% %SERVICE_NAME% binPath= %SERVICE_BIN% start= %SERVICE_START_TYPE% DisplayName= "Apollo Service"
|
||||
|
||||
rem Set the description of the service
|
||||
sc description %SERVICE_NAME% "Sunshine is a self-hosted game stream host for Moonlight."
|
||||
sc description %SERVICE_NAME% "Apollo is a self-hosted game stream host for Moonlight."
|
||||
|
||||
rem Start the new service
|
||||
net start %SERVICE_NAME%
|
||||
|
||||
@@ -4,6 +4,6 @@ rem Stop and delete the legacy SunshineSvc service
|
||||
net stop sunshinesvc
|
||||
sc delete sunshinesvc
|
||||
|
||||
rem Stop and delete the new SunshineService service
|
||||
net stop SunshineService
|
||||
sc delete SunshineService
|
||||
rem Stop and delete the new ApolloService service
|
||||
net stop ApolloService
|
||||
sc delete ApolloService
|
||||
|
||||
Reference in New Issue
Block a user