d8bd54fbf2
This allows to install it as an app, and provide offline support (after the first run). Practically, this boils down to adding a JSON file as a manifest, an offline page to be displayed when the cached files are not avaialble, and a JS file to cache resources and return them. The reason for the "first run requirements" is that some browsers, will emit an "install" by just visiting the page (to see if the JS code is compatibile), and we do not want to force casual visitors to just download the 10 MiB+ compressed editor WebAssembly file without pressing the start button. Special thanks to Hugo Locurcio (Calinou) for the initial work.
18 lines
418 B
JSON
18 lines
418 B
JSON
{
|
|
"name": "Godot Engine",
|
|
"short_name": "Godot",
|
|
"description": "Multi-platform 2D and 3D game engine with a feature-rich editor",
|
|
"lang": "en",
|
|
"start_url": "/godot.tools.html",
|
|
"display": "standalone",
|
|
"orientation": "landscape",
|
|
"theme_color": "#478cbf",
|
|
"icons": [
|
|
{
|
|
"src": "favicon.png",
|
|
"sizes": "256x256",
|
|
"type": "image/png"
|
|
}
|
|
],
|
|
"background_color": "#333b4f"
|
|
}
|