build: deploy the DLL to BepInEx\plugins only, and keep dist out of git

VALHEIM_INSTALL and BEPINEX_PATH were read from machine-level environment
variables that a fresh clone does not have. With them empty every derived path
started at the drive root, so the first Copy of a build failed on a new machine.
They now default to the standard Steam install and the environment variables
still override.

The DLL has exactly one destination, BepInEx\plugins, and it goes there on Debug
builds too - that is the loop you actually iterate in. If the folder is missing
the build warns instead of failing. The Thunderstore and Nexus zips stay in
dist\ and stay Release-only.

Copying assemblies into the Unity stub project is now opt-in
(-p:CopyAssembliesToUnity=true). It rewrote a folder of game assemblies on every
build for the sake of asset authoring that most builds are not doing.

dist\ is ignored. Only a stale icon.png was ever tracked in there - the packaging
step reads the real one from JotunnModStub\Package - so it is untracked, not
deleted.
This commit is contained in:
kanym 2026-08-05 10:19:47 +02:00
commit 11985d9539
3 changed files with 26 additions and 4 deletions

3
.gitignore vendored
View file

@ -16,6 +16,9 @@ temp_test_zip/
test_extract/
*.dll
# Release packaging output - a Release build drops the Thunderstore and Nexus zips here.
/dist/
# OS generated files
.DS_Store
Thumbs.db