Files
avtoambor/deploy/install.bat
David Beccue 83a59f1677 Add Windows 7 deploy bundle pipeline
Self-contained zip (dist/avtoambor-deploy.zip) for end users on Windows 7:
double-click install.bat to install Node 16, then start.bat to launch the
server. start.bat self-relaunches minimized so the console window stays out
of the way. Node is pinned to 16.x and several deps downgraded for Win7
compatibility; the unsupported View Transitions hook is dropped from the
root layout. make bundle wraps scripts/make-bundle.sh.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-18 09:38:20 +05:00

44 lines
1.3 KiB
Batchfile
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@echo off
REM Install Node.js 16.20.2 from a bundled MSI.
REM Picks x64 or x86 based on the Windows architecture.
chcp 65001 >nul
setlocal
cd /d "%~dp0"
if exist "%ProgramFiles%\nodejs\node.exe" (
echo Node.js уже установлен в %ProgramFiles%\nodejs.
echo Пропускаем установку.
goto :done
)
if exist "%ProgramFiles(x86)%\nodejs\node.exe" (
echo Node.js уже установлен в %ProgramFiles(x86)%\nodejs.
echo Пропускаем установку.
goto :done
)
set "MSI=node-v16.20.2-x64.msi"
if /i "%PROCESSOR_ARCHITECTURE%"=="x86" if not defined PROCESSOR_ARCHITEW6432 set "MSI=node-v16.20.2-x86.msi"
if not exist "%MSI%" (
echo Ошибка: файл %MSI% не найден рядом с install.bat.
echo Убедитесь, что архив распакован полностью.
pause
exit /b 1
)
echo Устанавливаем Node.js (%MSI%)...
echo Откроется стандартный установщик Windows — нажмите "Далее" до конца.
msiexec /i "%~dp0%MSI%"
if errorlevel 1 (
echo Установка Node.js завершилась с ошибкой.
pause
exit /b 1
)
:done
echo.
echo Готово. Закройте это окно и запустите start.bat.
pause
endlocal