Tool HTML HTML games assets problem on Linux machines

MrMosk

New Member
Oct 20, 2017
2
4
I've noticed that many HTML games rely on fact that user has case insensitive file system of his computer. In code author uses *.jpg but in assets folder it happens to be *.JPG etc.

For me as Linux user this is a problem, broken images are annoying. I didn't find easy solution to workaround this issue so I've written a little tool that works as HTTP server and serves static files in case insensitive mode. I've found it useful enough so I decided to share it.

Tool can be built on any platform supported by Golang and has no dependencies except standard ones.
Prebuilt x64 Linux binary on
Source code on

Usage examples:
1) No parameters, serving from current working directory, by default listening on 127.0.0.1:8000
$ ./<path to binary>/static-http

2) Specifying game root directory, by default listening on 127.0.0.1:8000
$ ./<path to binary/static-http -root <path to game>

3) Independently you can change port(and address) of HTTP server. Tool has help option -h, --help