41 lines
1.1 KiB
Batchfile
41 lines
1.1 KiB
Batchfile
@echo off
|
|
echo Building NFOGuard Emby Plugin...
|
|
|
|
REM Check if MSBuild is available
|
|
where msbuild >nul 2>&1
|
|
if %ERRORLEVEL% neq 0 (
|
|
echo ERROR: MSBuild not found. Please install Visual Studio Build Tools or use Developer Command Prompt.
|
|
pause
|
|
exit /b 1
|
|
)
|
|
|
|
REM Clean previous builds
|
|
if exist "bin" rmdir /s /q "bin"
|
|
if exist "obj" rmdir /s /q "obj"
|
|
|
|
REM Build the project
|
|
msbuild NFOGuard.Emby.Plugin.csproj /p:Configuration=Release /p:Platform="Any CPU"
|
|
|
|
if %ERRORLEVEL% equ 0 (
|
|
echo.
|
|
echo Build successful!
|
|
echo Plugin DLL location: bin\Release\net48\NFOGuard.Emby.Plugin.dll
|
|
echo.
|
|
|
|
REM Create plugin-release directory in repo root and copy DLL
|
|
if not exist "..\plugin-release" mkdir "..\plugin-release"
|
|
copy "bin\Release\net48\NFOGuard.Emby.Plugin.dll" "..\plugin-release\"
|
|
|
|
echo Plugin copied to: ..\plugin-release\NFOGuard.Emby.Plugin.dll
|
|
echo.
|
|
echo To install:
|
|
echo 1. Copy plugin-release\NFOGuard.Emby.Plugin.dll to your Emby plugins folder
|
|
echo 2. Restart Emby Server
|
|
echo.
|
|
) else (
|
|
echo.
|
|
echo Build failed! Check the output above for errors.
|
|
echo.
|
|
)
|
|
|
|
pause |