Okay, crisis averted by LCATFM (looking closer at the f-ing manual)
I got it working but it’s a point of curiosity, why my build script was causing this mysterious behaviour. This is what it used to be;
"D:/SteamLibrary/steamapps/common/Defold/packages/jdk-17.0.5+8/bin/java.exe" -jar bob.jar --platform=x86_64-win32 --bundle-output "build/windows" --variant debug
When I looked closer I noticed, for some reason instead of being in a folder called “build/windows”, it was ending up in the folder “build/x86_64-win32”, so the layout of this build command is causing more than one screwy thing to happen, it seems. I actually think I got the basis of this command this from ChatGPT… but since it seemed to work I didn’t think the command structure was a problem, it was outputting a build…
Anyway after following the manual example more closely I came up with this;
"D:/SteamLibrary/steamapps/common/Defold/packages/jdk-17.0.5+8/bin/java.exe" -jar bob.jar --archive --platform x86_64-win32 resolve distclean build bundle --bundle-output "build/windows"
and my windows build ends up in a subfolder of build/windows as expected, with OpenAL.dll intact and the game is fully functional.
It’s just very strange that malforming the build command in any way could cause such strange behaviour as ghost files!!