Skip to content

To create a test localhost server to serve Godot Engine 4's HTML5 export!

License

Notifications You must be signed in to change notification settings

meliyn/godot-web-test-server

Repository files navigation

Godot Web Test Server

To create a test localhost server to serve Godot Engine 4's HTML5 export!

Why?

It's because Godot 4 requires SharedArrayBuffer, which requires some headers. Therefore, I created this so I can just run this and test it.

Installation

deno install -Af https://raw.githubusercontent.com/meliyn/godot-web-test-server/main/godot-web-test-server.ts

Usage

Usage: godot-web-test-server serve [options]

Options:
  -d, --baseDir <dir>  Base directory (default: Deno.cwd())
  -i, --index <name>   The root HTML file name (default: "index.html")
  -l, --log            Enable logging (default: false)
  -p, --port <port>    Port (default: "8080")
  -h, --help           display help for command

Example

Serve ./builds/1/'s My Game.html in 0.0.0.0:3000

godot-web-test-server serve -d ./builds/1/ -i "My Game.html" -p 3000