Use explicit Godot web template
This commit is contained in:
+3
-1
@@ -22,13 +22,15 @@ RUN curl -fsSLO "https://github.com/godotengine/godot-builds/releases/download/$
|
||||
&& unzip -j -q "Godot_v${GODOT_RELEASE}_export_templates.tpz" \
|
||||
templates/web_nothreads_debug.zip templates/web_nothreads_release.zip \
|
||||
-d "/root/.local/share/godot/export_templates/${GODOT_TEMPLATE_DIR}" \
|
||||
&& unzip -tq "/root/.local/share/godot/export_templates/${GODOT_TEMPLATE_DIR}/web_nothreads_release.zip" \
|
||||
&& rm -f Godot_v*.zip Godot_v*.tpz SHA512-SUMS.txt selected-checksums.txt
|
||||
|
||||
WORKDIR /src
|
||||
COPY . .
|
||||
RUN mkdir -p /build \
|
||||
&& sed -i "s|custom_template/release=\"\"|custom_template/release=\"/root/.local/share/godot/export_templates/${GODOT_TEMPLATE_DIR}/web_nothreads_release.zip\"|" export_presets.cfg \
|
||||
&& godot --headless --editor --path /src --quit \
|
||||
&& godot --headless --path /src --export-release Web /build/index.html \
|
||||
&& godot --verbose --headless --path /src --export-release Web /build/index.html \
|
||||
&& test -s /build/index.html \
|
||||
&& test -s /build/index.wasm \
|
||||
&& test -s /build/index.pck
|
||||
|
||||
Reference in New Issue
Block a user