From 9c49980663f82f553fbbada525b83df761c98405 Mon Sep 17 00:00:00 2001 From: Snoweuph Date: Wed, 29 Jan 2025 22:57:10 +0100 Subject: [PATCH] Redot Image - Export Templates --- images/actions/redot/Dockerfile | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/images/actions/redot/Dockerfile b/images/actions/redot/Dockerfile index b6a158f..273a1ab 100644 --- a/images/actions/redot/Dockerfile +++ b/images/actions/redot/Dockerfile @@ -2,6 +2,7 @@ FROM git.euph.dev/actions/runner-basic:latest ARG PACKAGE_VERSION +# fontconfig and udev are not needed in ci, and will segfault RUN sudo apk add --no-cache \ scons \ pkgconf \ @@ -15,15 +16,26 @@ RUN sudo apk add --no-cache \ mesa-dev \ eudev-dev \ alsa-lib-dev \ - fontconfig \ pulseaudio-dev RUN wget $( \ curl -s https://api.github.com/repos/Redot-Engine/redot-engine/releases/tags/redot-$PACKAGE_VERSION-stable \ - | grep "browser_download_url.*Redot_v.*-stable_linux.x86_64.zip" \ + | grep "browser_download_url.*Redot_v.*-stable_linux\.x86_64\.zip" \ | cut -d '"' -f 4 - \ | head -n 1 \ ) -O Redot.zip \ && sudo unzip Redot.zip \ && sudo mv ./Redot_v*-stable_linux.x86_64 /usr/local/bin/redot \ && rm Redot.zip + +RUN wget $( \ + curl -s https://api.github.com/repos/Redot-Engine/redot-engine/releases/tags/redot-$PACKAGE_VERSION-stable \ + | grep "browser_download_url.*Redot_v.*-stable_export_templates\.tpz" \ + | cut -d '"' -f 4 - \ + | head -n 1 \ + ) -O Redot_Export_Templates.tbz \ + && sudo unzip Redot_Export_Templates.tbz \ + && mkdir -p /home/runner/.local/share/redot/export_templates \ + && sudo mv ./templates /home/runner/.local/share/redot/export_templates/$PACKAGE_VERSION.stable \ + && rm Redot_Export_Templates.tbz +