From 1a663af30401e8e8aee4b9f74bab3a2c44741794 Mon Sep 17 00:00:00 2001 From: Louis Capitanchik <contact@louiscap.co> Date: Fri, 15 Nov 2024 04:11:02 +0000 Subject: [PATCH] Fix permissions for commands --- Dockerfile | 5 +++-- commands/godot_build.sh | 3 ++- commands/godot_build_web.sh | 4 ++-- 3 files changed, 7 insertions(+), 5 deletions(-) mode change 100644 => 100755 commands/godot_build.sh mode change 100644 => 100755 commands/godot_build_web.sh diff --git a/Dockerfile b/Dockerfile index 0113801..4b16366 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,5 +18,6 @@ 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 -RUN butler_install $BUTLER_VERSION \ No newline at end of file +RUN chmod +x /usr/bin/godot_* /usr/bin/butler_* && \ + godot_install $GODOT_VERSION $PLATFORM && cp ./godot /usr/bin/godot && \ + butler_install $BUTLER_VERSION \ No newline at end of file diff --git a/commands/godot_build.sh b/commands/godot_build.sh old mode 100644 new mode 100755 index 60a6e5e..0d39c55 --- a/commands/godot_build.sh +++ b/commands/godot_build.sh @@ -4,4 +4,5 @@ NAME="$1" PRESET="$2" PROJECT_PATH="$3" -godot --headless --export-debug "${PRESET}" "$(pwd)/${NAME}" "${PROJECT_PATH}/project.godot" \ No newline at end of file +mkdir -p "$PROJECT_PATH/dist" +godot --headless --export-debug "${PRESET}" "${PROJECT_PATH}/dist/${NAME}" "${PROJECT_PATH}/project.godot" \ No newline at end of file diff --git a/commands/godot_build_web.sh b/commands/godot_build_web.sh old mode 100644 new mode 100755 index 9ee753b..42f39a9 --- a/commands/godot_build_web.sh +++ b/commands/godot_build_web.sh @@ -4,7 +4,7 @@ NAME="$1" PRESET="$2" PROJECT_PATH="$3" -OUTPUT_PATH="$(pwd)/${NAME}" +OUTPUT_PATH="${PROJECT_PATH}/dist/${NAME}" -mkdir -p "OUTPUT_PATH" +mkdir -p "${OUTPUT_PATH}" godot --headless --export-debug "${PRESET}" "${OUTPUT_PATH}/index" "${PROJECT_PATH}/project.godot" \ No newline at end of file -- GitLab