diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2567101..b34fa2e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -15,6 +15,7 @@ job make exports: - unzip godot3-server.zip - mv Godot_v3.0.2-stable_linux_server.64 bin/godot3-server - chmod +x bin/godot3-server + - make install-templates script: - GODOT=./bin/godot3-server make export-all artifacts: diff --git a/Makefile b/Makefile index 746d300..f7d3dcf 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,8 @@ EXPORT_TEMPLATE_SOURCE?=https://downloads.tuxfamily.org/godotengine/3.0.2/Godot_ BUILD_DIR?=build GODOT_PROJECT_PATH?=game PROJECT_NAME?=game - +GODOT_TEMPLATE_DIR?=~/.local/share/godot/templates +GODOT_TEMPLATE_VERSION?=3.0.2.stable TARGET_HTML5?=HTML5 TARGET_WINDOWS?=Windows Desktop TARGET_MACOSX?=Mac OSX @@ -34,3 +35,11 @@ export-osx: build-dir export-linux: build-dir $(GODOT) --path "$(GODOT_PROJECT_PATH)" --export "$(TARGET_LINUX)" "../$(BUILD_DIR)/$(PROJECT_NAME)-x11" + +install-templates: + mkdir -p "$(GODOT_TEMPLATE_DIR)" + wget -q $(EXPORT_TEMPLATE_SOURCE) -O templates.tpz + unzip templates.tpz + mv templates/ "$(GODOT_TEMPLATE_DIR)/$(GODOT_TEMPLATE_VERSION)" + rm templates.tpz +