Skip to content

Commit

Permalink
fix(Docker): correctly parse Godot release and version
Browse files Browse the repository at this point in the history
  • Loading branch information
ShadowApex committed Oct 7, 2023
1 parent 57c40c7 commit 12797e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ RUN mkdir -p /home/build/.local/share/godot/export_templates && chmod -R 777 /ho

# Download the Godot export template
RUN export GODOT_VERSION=$(godot --version) && \
export RELEASE=$(echo ${GODOT_VERSION} | cut -d'.' -f 3) && \
export VERSION=$(echo ${GODOT_VERSION} | cut -d'.' -f 1,2) && \
export RELEASE=$(echo ${GODOT_VERSION} | rev | cut -d'.' -f2 | rev) && \
export VERSION=$(echo ${GODOT_VERSION} | grep -o '[0-9].*[0-9]') && \
export TEMPLATE_DIR=/home/build/.local/share/godot/export_templates/${VERSION}.${RELEASE} && \
export URL="https://github.com/godotengine/godot/releases/download/${VERSION}-${RELEASE}/Godot_v${VERSION}-${RELEASE}_export_templates.tpz" && \
wget "${URL}" -O /home/build/.local/share/godot/export_templates/templates.zip && \
Expand Down

0 comments on commit 12797e0

Please sign in to comment.