From f66e81a87632967655b96ad13319b162cb13aeef Mon Sep 17 00:00:00 2001 From: Joseph Manley Date: Mon, 16 Mar 2020 18:10:19 -0400 Subject: [PATCH 1/4] FEATURE: Optionally implement --- action.yml | 4 ++++ entrypoint.sh | 9 ++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 48111ba..1be4e3f 100644 --- a/action.yml +++ b/action.yml @@ -16,6 +16,9 @@ inputs: required: false projectDir: description: 'Location of Godot project in repository' + debugMode: + description: 'Whether or not to use `--export-debug`' + default: false runs: using: docker image: Dockerfile @@ -25,6 +28,7 @@ runs: - ${{ inputs.subdirectory }} - ${{ inputs.package }} - ${{ inputs.projectDir }} + - ${{ inputs.debugMode }} branding: icon: loader color: blue \ No newline at end of file diff --git a/entrypoint.sh b/entrypoint.sh index 3777b58..1922d3f 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -15,15 +15,22 @@ then SubDirectoryLocation="$3/" fi +mode="export" +if [ "$6" = "true" ] +then + mode="export-debug" +fi + # Export for project echo "Building $1 for $2" mkdir -p ~/build/${SubDirectoryLocation:-""} cd ${5-"~"} -godot --export $2 ~/build/${SubDirectoryLocation:-""}$1 +godot --${mode} $2 ~/build/${SubDirectoryLocation:-""}$1 cd ~ echo ::set-output name=build::~/build/${SubDirectoryLocation:-""} + if [ "$4" = "true" ] then mkdir ~/package From db6bac2426f28ffdc0a83d31aad48e567928d218 Mon Sep 17 00:00:00 2001 From: Joseph Manley Date: Mon, 16 Mar 2020 18:17:45 -0400 Subject: [PATCH 2/4] BUGFIX: Update test project config --- test_project/export_presets.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test_project/export_presets.cfg b/test_project/export_presets.cfg index 2422425..15d23b4 100644 --- a/test_project/export_presets.cfg +++ b/test_project/export_presets.cfg @@ -7,7 +7,7 @@ custom_features="" export_filter="all_resources" include_filter="" exclude_filter="" -export_path="" +export_path="../../test_project.x86_64" patch_list=PoolStringArray( ) script_export_mode=1 script_encryption_key="" From e8c3cda194b19a0448e0432a51b35e36f3e2f59c Mon Sep 17 00:00:00 2001 From: Joseph Manley Date: Mon, 16 Mar 2020 18:21:33 -0400 Subject: [PATCH 3/4] BUGFIX: Update Godot version BUGFIX: Update Godot version --- entrypoint.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 1922d3f..e682841 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -2,13 +2,13 @@ set -e # Install export templates -wget https://downloads.tuxfamily.org/godotengine/3.2/Godot_v3.2-stable_export_templates.tpz --quiet +wget https://downloads.tuxfamily.org/godotengine/3.2.1/Godot_v3.2.1-stable_export_templates.tpz --quiet mkdir ~/.cache mkdir -p ~/.config/godot -mkdir -p ~/.local/share/godot/templates/3.2.stable -unzip Godot_v3.2-stable_export_templates.tpz -mv templates/* ~/.local/share/godot/templates/3.2.stable -rm -f Godot_v3.2-stable_export_templates.tpz +mkdir -p ~/.local/share/godot/templates/3.2.1.stable +unzip Godot_v3.2.1-stable_export_templates.tpz +mv templates/* ~/.local/share/godot/templates/3.2.1.stable +rm -f Godot_v3.2.1-stable_export_templates.tpz if [ "$3" != "" ] then From 6d0ae9595dc999c9783425c989243a9ba28373e5 Mon Sep 17 00:00:00 2001 From: Joseph Manley Date: Mon, 16 Mar 2020 18:28:33 -0400 Subject: [PATCH 4/4] DOCUMENTATION: Update 'ReadMe.md' with debugMode --- ReadMe.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ReadMe.md b/ReadMe.md index 73406fe..693c483 100644 --- a/ReadMe.md +++ b/ReadMe.md @@ -40,6 +40,12 @@ steps: Boolean value, when set to true, builds artficat zip file. +#### debugMode + + *Optional* + + Boolean value, when set to true, runs export in debug mode. + ### Outputs #### build