chore(build): drop ELECTRON_BUILDER_CACHE so the wine toolchain cache stays in the volume, not the workspace

This commit is contained in:
JianFeeeee
2026-08-30 10:50:01 +08:00
parent 3698546d14
commit 22ddf5a411

View File

@ -36,9 +36,11 @@ RUN dpkg --add-architecture i386 \
# electron-builder resolves the uninstaller via the system wine when
# USE_SYSTEM_WINE=true (or by default on Linux without a toolset). Pin it.
# The toolchain cache lives in $HOME/.cache (mounted as a volume by
# dist-win-docker.sh), so it is reused across builds and never pollutes the
# mounted workspace.
ENV USE_SYSTEM_WINE=true
ENV WINEDEBUG=-all
ENV ELECTRON_BUILDER_CACHE=/workspace/cmd/gui/.cache
# LuaJIT cross-compiled for Windows; keeps lua51.dll and the cgo import lib
# (libluajit-5.1.dll.a -> libluajit-5.1.a in the mingw lib dir).