Skip to content
Snippets Groups Projects
Verified Commit 56b772e3 authored by Louis's avatar Louis :fire:
Browse files

Include butler for itch.io uploads

parent 614418b5
No related branches found
No related tags found
No related merge requests found
......@@ -2,12 +2,21 @@ FROM debian:12.8-slim
ARG PLATFORM="linux.x86_64"
ARG GODOT_VERSION="4.3-stable"
ARG BUTLER_VERSION="15.12.0"
ENV BUTLER_API_KEY=""
RUN apt-get update \
&& apt-get install -y wget unzip libfontconfig1 \
&& apt-get install -y wget zip unzip libfontconfig1 \
&& rm -rf /var/lib/apt/lists/*
COPY commands/godot_build.sh /usr/bin/godot_build
COPY commands/godot_build_web.sh /usr/bin/godot_build_web
COPY commands/godot_install.sh /usr/bin/godot_install
COPY commands/godot_project_title.sh /usr/bin/godot_project_title
COPY commands/butler_install.sh /usr/bin/butler_install
COPY commands/butler_upload.sh /usr/bin/butler_upload
RUN godot_install $GODOT_VERSION $PLATFORM && cp ./godot /usr/bin/godot
\ No newline at end of file
RUN godot_install $GODOT_VERSION $PLATFORM && cp ./godot /usr/bin/godot
RUN butler_install $BUTLER_VERSION
\ No newline at end of file
#!/usr/bin/env bash
BUTLER_VERSION="$1"
BUTLER_URL="https://broth.itch.ovh/butler/linux-amd64/${BUTLER_VERSION}/archive/default"
mkdir -p /tmp/butler
wget -L -O /tmp/butler/butler.zip "$BUTLER_URL"
unzip -d /tmp/butler /tmp/butler/butler.zip
chmod +x /tmp/butler/butler
mv /tmp/butler/butler /usr/bin/butler
rm -r /tmp/butler
\ No newline at end of file
#!/usr/bin/env bash
PROJECT_PATH="$1"
USERNAME=$(echo "$2" | cut -d "/" -f 1)
PROJECT_NAME=$(echo "$2" | cut -d "/" -f 2)
PLATFORM="$3"
CHANNEL_NAME="${PROJECT_NAME}-${PLATFORM}"
butler push "$PROJECT_PATH" "${USERNAME}/${PROJECT_NAME}:${CHANNEL_NAME}"
\ No newline at end of file
#!/usr/bin/env bash
NAME="$1"
PRESET="$2"
PROJECT_PATH="$3"
OUTPUT_PATH="$(pwd)/${NAME}"
mkdir -p "OUTPUT_PATH"
godot --headless --export-debug "${PRESET}" "${OUTPUT_PATH}/index" "${PROJECT_PATH}/project.godot"
\ No newline at end of file
#!/usr/bin/env bash
PROJECT_PATH="$1"
PROJECT_NAME=$(sed -nE 's/^config\/name="(.*)"/\1/p' < ${PROJECT_PATH}/project.godot)
echo "$PROJECT_NAME"
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment