The standalone macOS Server is working great but it would be useful to build for Windows too so I went back to Docker.
Following the instructions in README.md, and running on Windows 10, I have:
- Forked the dev branch of defold/extender
- Packaged up required tools & SDKs
- Uploaded them to a web server (serving them with a local Python server showed occasional errors)
- Modified the dockerfile to remove references to Emscripten, Switch and PS4
- Opened Git Bash (as mentioned in the readme) and specified DM_PACKAGES_URL to point at the web server
- Built the Docker image using build.sh -xtest
- Run the image with run-local.sh
- Verified that the extender exists by connecting to localhost:9000 from Chrome, which outputs:
Extender
4a7839d
2023-05-04 10:44:02
If I build without -xtest then some tests fail, but from first glance perhaps they’re not designed to run on Windows.
Then I tried building extension-spine from the editor, as it’s a small project with a native extension, and got this output:
“Failed: Connection reset”
And then Bob (in a Windows Command Prompt):
java -jar d:\Installs\Defold_1.4.5\bob.jar resolve build --archive bundle --build-server http://localhost:9000
Download archive(s)Downloading 0 archive(s)
Working...Reading classes... 1% ...done!
Build Remote Engine...
Building engine...ERROR: unspecified:-1: 'com.dynamo.bob.CompileExceptionError: 'x86_64-win32' could not be built. Sdk version: '3dbbf1dbebd3a8146f6a917d101882a61f56afdc'
Log: '<failed reading log>''
'x86_64-win32' could not be built. Sdk version: '3dbbf1dbebd3a8146f6a917d101882a61f56afdc'
Log: '<failed reading log>'
Cause: java.net.SocketException: Connection reset
I noticed that I can’t connect with curl either:
curl http://localhost:9000
curl: (56) Recv failure: Connection was reset
Docker adds a few lines to the hosts file, and I’ve tried both the IP address and host.docker.internal without success
# Added by Docker Desktop
192.168.86.37 host.docker.internal
192.168.86.37 gateway.docker.internal
Any suggestions on what I could try next?