xrforge/manyfold/root/hook.d/boot/godot.sh

7 lines
355 B
Bash
Raw Normal View History

2025-08-22 11:30:34 +02:00
#!/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 /root/godot.zip
cp index.override.html index.html # make index.html autoload a manyfold zip-file (passed via HTTP query)