-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdeployLocally.bat
More file actions
30 lines (20 loc) · 778 Bytes
/
deployLocally.bat
File metadata and controls
30 lines (20 loc) · 778 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
@echo off
setlocal
rem Script to build deploy locally.
rem Also allows to deploy with the same "version" in manifest.json as already installed.
rem
rem Requires Node with StreamDeck CLI installed. See "doc/Release.adoc"
set CONFIG=Release
if "%1%" == "debug" set CONFIG=Debug
echo.
echo Building for configuration: %CONFIG%
echo.
dotnet build StreamDeckSimHub.Plugin\StreamDeckSimHub.Plugin.csproj -c %CONFIG%
dotnet publish StreamDeckSimHub.Plugin\StreamDeckSimHub.Plugin.csproj -c %CONFIG%
if %errorlevel% neq 0 exit /b 1
taskkill /im StreamDeck.exe /t /f
timeout 1 > nul
cd build
xcopy net.planetrenner.simhub.sdPlugin "%AppData%\Elgato\StreamDeck\Plugins\net.planetrenner.simhub.sdPlugin\" /e /y /q
cd ..
start /d "%ProgramFiles%\Elgato\StreamDeck" StreamDeck.exe