add obs config updater
This commit is contained in:
parent
7cd5e7109e
commit
f4b93ae305
2 changed files with 13 additions and 3 deletions
14
Makefile
14
Makefile
|
@ -22,6 +22,7 @@ MAKEFLAGS += --no-print-directory
|
||||||
# Location
|
# Location
|
||||||
WIN_USER = anri
|
WIN_USER = anri
|
||||||
PFx86 = /mnt/c/Program\ Files\ \(x86\)
|
PFx86 = /mnt/c/Program\ Files\ \(x86\)
|
||||||
|
PF = /mnt/c/Program\ Files
|
||||||
WIN_HOME = /mnt/c/Users/$(WIN_USER)
|
WIN_HOME = /mnt/c/Users/$(WIN_USER)
|
||||||
APPDATA = $(WIN_HOME)/AppData/Roaming
|
APPDATA = $(WIN_HOME)/AppData/Roaming
|
||||||
LOCALAPPDATA = $(WIN_HOME)/AppData/Local
|
LOCALAPPDATA = $(WIN_HOME)/AppData/Local
|
||||||
|
@ -236,8 +237,17 @@ sync-windows:
|
||||||
# @echo "$(WIN) Topgrade settings synced!"
|
# @echo "$(WIN) Topgrade settings synced!"
|
||||||
# @echo
|
# @echo
|
||||||
|
|
||||||
# TODO: OBS shadowplay config updater
|
# OBS config
|
||||||
|
ifeq ($(shell touch $(PF) 2> /dev/null; echo $$?),1)
|
||||||
|
@echo "$(WIN) Can't update OBS configuration, use elevated terminal to do so"
|
||||||
|
else
|
||||||
|
@$(MKDIR) $(PF)/obs-studio/config/obs-studio/basic/profiles/ReplayBuffer
|
||||||
|
@$(MKDIR) $(PF)/obs-studio/config/obs-studio/basic/scenes
|
||||||
|
@$(WGET) $(REPO_SRC)/.config/obs/global.ini -O $(PF)/obs-studio/config/obs-studio/global.ini
|
||||||
|
@$(WGET) $(REPO_SRC)/.config/obs/basic/profiles/ReplayBuffer/basic.ini -O $(PF)/obs-studio/config/obs-studio/basic/profiles/ReplayBuffer/basic.ini
|
||||||
|
@$(WGET) $(REPO_SRC)/.config/obs/basic/profiles/ReplayBuffer/streamEncoder.json -O $(PF)/obs-studio/config/obs-studio/basic/profiles/ReplayBuffer/streamEncoder.json
|
||||||
|
@$(WGET) $(REPO_SRC)/.config/obs/basic/scenes/ReplayBuffer.json -O $(PF)/obs-studio/config/obs-studio/basic/scenes/ReplayBuffer.json
|
||||||
|
endif
|
||||||
|
|
||||||
# Termux distro specific
|
# Termux distro specific
|
||||||
sync-termux:
|
sync-termux:
|
||||||
|
|
|
@ -368,10 +368,10 @@ MKDIR "%ProgramFiles%\obs-studio\config\obs-studio\basic\profiles\ReplayBuffer"
|
||||||
MKDIR "%ProgramFiles%\obs-studio\config\obs-studio\basic\scenes" 2>NUL
|
MKDIR "%ProgramFiles%\obs-studio\config\obs-studio\basic\scenes" 2>NUL
|
||||||
|
|
||||||
:: Download configuration
|
:: Download configuration
|
||||||
|
PowerShell -Command "Invoke-WebRequest -Uri !repo!/.config/obs/global.ini -OutFile '%ProgramFiles%\obs-studio\config\obs-studio\global.ini'"
|
||||||
PowerShell -Command "Invoke-WebRequest -Uri !repo!/.config/obs/basic/profiles/ReplayBuffer/basic.ini -OutFile '%ProgramFiles%\obs-studio\config\obs-studio\basic\profiles\ReplayBuffer\basic.ini'"
|
PowerShell -Command "Invoke-WebRequest -Uri !repo!/.config/obs/basic/profiles/ReplayBuffer/basic.ini -OutFile '%ProgramFiles%\obs-studio\config\obs-studio\basic\profiles\ReplayBuffer\basic.ini'"
|
||||||
PowerShell -Command "Invoke-WebRequest -Uri !repo!/.config/obs/basic/profiles/ReplayBuffer/streamEncoder.json -OutFile '%ProgramFiles%\obs-studio\config\obs-studio\basic\profiles\ReplayBuffer\streamEncoder.json'"
|
PowerShell -Command "Invoke-WebRequest -Uri !repo!/.config/obs/basic/profiles/ReplayBuffer/streamEncoder.json -OutFile '%ProgramFiles%\obs-studio\config\obs-studio\basic\profiles\ReplayBuffer\streamEncoder.json'"
|
||||||
PowerShell -Command "Invoke-WebRequest -Uri !repo!/.config/obs/basic/scenes/ReplayBuffer.json -OutFile '%ProgramFiles%\obs-studio\config\obs-studio\basic\scenes\ReplayBuffer.json'"
|
PowerShell -Command "Invoke-WebRequest -Uri !repo!/.config/obs/basic/scenes/ReplayBuffer.json -OutFile '%ProgramFiles%\obs-studio\config\obs-studio\basic\scenes\ReplayBuffer.json'"
|
||||||
PowerShell -Command "Invoke-WebRequest -Uri !repo!/.config/obs/global.ini -OutFile '%ProgramFiles%\obs-studio\config\obs-studio\global.ini'"
|
|
||||||
|
|
||||||
:: Setup the autostart of shadowplay
|
:: Setup the autostart of shadowplay
|
||||||
SCHTASKS /Create /TN "OBS Shadowplay" ^
|
SCHTASKS /Create /TN "OBS Shadowplay" ^
|
||||||
|
|
Loading…
Reference in a new issue