# Build environment for Windows .exe installer. # Uses pynsist to cross-build a Windows installer from Linux. # pynsist downloads a Windows Python embeddable distribution and # packages everything into an NSIS installer. # # Build image: # podman build -t i2p-build-windows -f build/windows/Containerfile . # # Run build: # podman run --rm -v ./dist:/out:Z i2p-build-windows FROM python:3.12-slim RUN apt-get update -qq \ && apt-get install -y --no-install-recommends \ nsis \ && rm -rf /var/lib/apt/lists/* RUN pip install --no-cache-dir pynsist WORKDIR /build COPY . /build/ CMD ["bash", "build/windows/build.sh"]