11FROM archlinux:base-devel AS base
22ENV CI=true
33ENV GODOT4_BIN=/usr/bin/godot
4- ARG GODOT_RELEASE=4.4.1.stable
5- ENV GODOT_RELEASE=${GODOT_RELEASE}
6- RUN pacman -Syu --noconfirm git flatpak fontconfig p7zip rustup vim nodejs
4+ ARG DECKTRICKS_GODOT_VERSION=4.4.1.stable
5+ ENV DECKTRICKS_GODOT_VERSION=${DECKTRICKS_GODOT_VERSION}
6+ RUN pacman -Syu --noconfirm git flatpak fontconfig p7zip rustup vim nodejs godot
7+ RUN pacman -R --noconfirm godot
78RUN rustup default stable
89# RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable
910# RUN ln -sf /root/.cargo/bin/cargo /usr/bin/cargo
@@ -13,15 +14,17 @@ RUN rustup default stable
1314# because we need 4.4 to stop a terrible Linux bug in Godot,
1415# and download times from tuxfamily are quite slow.
1516# TODO: Switch to fetching from github once 4.4 is officially released
16- RUN mkdir -p /root/.local/share/godot/export_templates/$GODOT_RELEASE /
17+ RUN mkdir -p /root/.local/share/godot/export_templates/$DECKTRICKS_GODOT_VERSION /
1718RUN mkdir -p /tmp/godot_extraction
18- COPY godot_binary.7z linux_release.7z /tmp/godot_extraction/
19+ COPY godot_binary.7z linux_release.7z linux_debug.7z /tmp/godot_extraction/
1920WORKDIR /tmp/godot_extraction
2021RUN 7z x godot_binary.7z
2122RUN 7z x linux_release.7z
23+ RUN 7z x linux_debug.7z
2224RUN cp godot /usr/bin/godot
23- WORKDIR /root/.local/share/godot/export_templates/${GODOT_RELEASE }/
25+ WORKDIR /root/.local/share/godot/export_templates/${DECKTRICKS_GODOT_VERSION }/
2426RUN cp /tmp/godot_extraction/linux_release.x86_64 linux_release.x86_64
27+ RUN cp /tmp/godot_extraction/linux_debug.x86_64 linux_debug.x86_64
2528WORKDIR /
2629RUN rm -r /tmp/godot_extraction
2730# }}}
0 commit comments