xrforge/manyfold/root/hook.d/boot/godot.sh
2025-11-10 21:25:39 +01:00

6 lines
358 B
Bash
Executable file

#!/bin/sh
test -z "$GODOT_VERSION" && exit 0 # nothing to do
wget "https://github.com/godotengine/godot/releases/download/${GODOT_VERSION}/Godot_v${GODOT_VERSION}_web_editor.zip" -O /root/godot.zip
cd /usr/src/app/public/godot
unzip -o /root/godot.zip
cp index.override.html index.html # make index.html autoload a manyfold zip-file (passed via HTTP query)