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>
This commit is contained in:
David Beccue
2026-05-18 09:38:20 +05:00
parent c882ab5d43
commit 83a59f1677
13 changed files with 2113 additions and 820 deletions

View File

@ -1,4 +1,4 @@
.PHONY: help install run build db-init db-reset docker-build docker-shell clean clean-all
.PHONY: help install run build db-init db-reset docker-build docker-shell clean clean-all bundle bundle-clean
DC := docker compose
@ -17,6 +17,8 @@ help:
@echo " make docker-shell Open an interactive bash shell in the container"
@echo " make clean Remove node_modules and build/ (keeps data/)"
@echo " make clean-all Also wipe data/ (destroys the DB)"
@echo " make bundle Produce dist/avtoambor-deploy.zip for Windows 7"
@echo " make bundle-clean Remove dist/"
@echo ""
install:
@ -54,3 +56,11 @@ clean:
clean-all: clean
@rm -rf data
@echo "wiped data/ as well."
# Windows 7 deploy bundle. Must be run with Node 16 active (.nvmrc).
bundle:
@bash scripts/make-bundle.sh
bundle-clean:
@rm -rf dist
@echo "removed dist/"