Skip to content

Commit 323db7e

Browse files
committed
Update dockerfile to include debug exports
1 parent def16f8 commit 323db7e

5 files changed

Lines changed: 22 additions & 12 deletions

File tree

misc/act-docker/Dockerfile

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
FROM archlinux:base-devel AS base
22
ENV CI=true
33
ENV 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
78
RUN 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/
1718
RUN 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/
1920
WORKDIR /tmp/godot_extraction
2021
RUN 7z x godot_binary.7z
2122
RUN 7z x linux_release.7z
23+
RUN 7z x linux_debug.7z
2224
RUN 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}/
2426
RUN 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
2528
WORKDIR /
2629
RUN rm -r /tmp/godot_extraction
2730
# }}}

misc/act-docker/godot_binary.7z

8.98 MB
Binary file not shown.

misc/act-docker/linux_debug.7z

15.7 MB
Binary file not shown.

misc/act-docker/linux_release.7z

0 Bytes
Binary file not shown.

misc/act-docker/update_godot.sh

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,21 @@ set -euxo pipefail
44

55
cd "$(dirname "$0")"
66

7-
cp ~/godot/bin/godot.linuxbsd.editor.x86_64 ~/godot/bin/godot.linuxbsd.template_release.x86_64 .
8-
mv godot.linuxbsd.editor.x86_64 godot
9-
mv godot.linuxbsd.template_release.x86_64 linux_release.x86_64
7+
# For custom local builds:
8+
# cp ~/godot/bin/godot.linuxbsd.editor.x86_64 ~/godot/bin/godot.linuxbsd.template_release.x86_64 ~/godot/bin/godot.linuxbsd.template_debug.x86_64 .
9+
# mv godot.linuxbsd.editor.x86_64 godot
10+
# mv godot.linuxbsd.template_release.x86_64 linux_release.x86_64
11+
# mv godot.linuxbsd.template_debug.x86_64 linux_debug.x86_64
1012

11-
rm linux_release.7z
12-
rm godot_binary.7z
13+
# TODO: brittle, breaks when system godot updates. fetch from upstream
14+
cp /usr/bin/godot .
15+
cp ~/.local/share/godot/export_templates/4.4.1.stable/linux_release.x86_64 .
16+
cp ~/.local/share/godot/export_templates/4.4.1.stable/linux_debug.x86_64 .
1317

18+
rm -f linux_debug.7z linux_release.7z godot_binary.7z
19+
20+
7z a linux_debug.7z linux_debug.x86_64
1421
7z a linux_release.7z linux_release.x86_64
1522
7z a godot_binary.7z godot
1623

17-
rm godot linux_release.x86_64
24+
rm godot linux_release.x86_64 linux_debug.x86_64

0 commit comments

Comments
 (0)