Install templates for building exports
This commit is contained in:
parent
5889072b54
commit
88ddac4ac4
|
@ -15,6 +15,7 @@ job make exports:
|
||||||
- unzip godot3-server.zip
|
- unzip godot3-server.zip
|
||||||
- mv Godot_v3.0.2-stable_linux_server.64 bin/godot3-server
|
- mv Godot_v3.0.2-stable_linux_server.64 bin/godot3-server
|
||||||
- chmod +x bin/godot3-server
|
- chmod +x bin/godot3-server
|
||||||
|
- make install-templates
|
||||||
script:
|
script:
|
||||||
- GODOT=./bin/godot3-server make export-all
|
- GODOT=./bin/godot3-server make export-all
|
||||||
artifacts:
|
artifacts:
|
||||||
|
|
11
Makefile
11
Makefile
|
@ -3,7 +3,8 @@ EXPORT_TEMPLATE_SOURCE?=https://downloads.tuxfamily.org/godotengine/3.0.2/Godot_
|
||||||
BUILD_DIR?=build
|
BUILD_DIR?=build
|
||||||
GODOT_PROJECT_PATH?=game
|
GODOT_PROJECT_PATH?=game
|
||||||
PROJECT_NAME?=game
|
PROJECT_NAME?=game
|
||||||
|
GODOT_TEMPLATE_DIR?=~/.local/share/godot/templates
|
||||||
|
GODOT_TEMPLATE_VERSION?=3.0.2.stable
|
||||||
TARGET_HTML5?=HTML5
|
TARGET_HTML5?=HTML5
|
||||||
TARGET_WINDOWS?=Windows Desktop
|
TARGET_WINDOWS?=Windows Desktop
|
||||||
TARGET_MACOSX?=Mac OSX
|
TARGET_MACOSX?=Mac OSX
|
||||||
|
@ -34,3 +35,11 @@ export-osx: build-dir
|
||||||
|
|
||||||
export-linux: build-dir
|
export-linux: build-dir
|
||||||
$(GODOT) --path "$(GODOT_PROJECT_PATH)" --export "$(TARGET_LINUX)" "../$(BUILD_DIR)/$(PROJECT_NAME)-x11"
|
$(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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue