mirror of
https://github.com/jellyfin/jellyfin-desktop.git
synced 2026-10-26 16:45:24 +00:00
47 lines
1001 B
Batchfile
47 lines
1001 B
Batchfile
@echo off
|
|
REM Jellyfin Desktop - Windows bundling script
|
|
REM Run build.bat first
|
|
|
|
setlocal enabledelayedexpansion
|
|
call "%~dp0common.bat"
|
|
|
|
REM === Check build exists ===
|
|
if not exist "%BUILD_DIR%\src\%EXE_NAME%" (
|
|
echo ERROR: Build not found. Run build.bat first
|
|
exit /b 1
|
|
)
|
|
|
|
REM === Check Visual Studio ===
|
|
if not defined VCVARS (
|
|
echo ERROR: vcvars64.bat not found
|
|
exit /b 1
|
|
)
|
|
echo Using: %VCVARS%
|
|
|
|
REM === Initialize VS environment ===
|
|
call "%VCVARS%"
|
|
if errorlevel 1 (
|
|
echo ERROR: Failed to initialize VS environment
|
|
exit /b 1
|
|
)
|
|
|
|
REM === Add tools to PATH ===
|
|
set "PATH=%PATH%;%LocalAppData%\Programs\Inno Setup 6"
|
|
set "PATH=%PATH%;C:\Program Files\Git\cmd"
|
|
|
|
cd /d "%BUILD_DIR%"
|
|
|
|
REM === Package ===
|
|
echo Creating installer and portable ZIP...
|
|
ninja windows_all
|
|
if errorlevel 1 (
|
|
echo ERROR: Package creation failed
|
|
exit /b 1
|
|
)
|
|
|
|
echo.
|
|
echo Bundle complete!
|
|
echo Installer: %BUILD_DIR%\JellyfinDesktop-*.exe
|
|
echo Portable: %BUILD_DIR%\JellyfinDesktop-*.zip
|
|
endlocal
|