generated from MechanicalFlower/godot-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a05a55c
commit aba736b
Showing
11 changed files
with
175 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
4.1.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1.4.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,13 @@ | ||
# Credits | ||
|
||
## Addons | ||
- "[addons/flexible_toon_shader/*](https://github.com/CaptainProton42/FlexibleToonShaderGD)" by **John Wigg** licensed under [MIT](https://spdx.org/licenses/MIT.html) | ||
- "[addons/fps_graph_overlay/*](https://github.com/SanderVanhove/godot-fps-graph-overlay)" by **Sander Vanhove** licensed under [MIT](https://spdx.org/licenses/MIT.html) | ||
- "[addons/kanban_tasks/*](https://github.com/HolonProduction/godot_kanban_tasks)" by **HolonProduction** licensed under [MIT](https://spdx.org/licenses/MIT.html) | ||
- "[addons/lod/*](https://github.com/godot-extended-libraries/godot-lod)" by **Hugo Locurcio and contributors** licensed under [MIT](https://spdx.org/licenses/MIT.html) | ||
## Assets | ||
### Models | ||
- "[addons/gd-plug/*](https://github.com/imjp94/gd-plug)" by **Tan Jian Ping** licensed under [MIT](https://spdx.org/licenses/MIT.html) | ||
- "[addons/debug_menu/*](https://github.com/godot-extended-libraries/godot-debug-menu)" by **Hugo Locurcio and contributors** licensed under [MIT](https://spdx.org/licenses/MIT.html) | ||
- "[addons/UniversalFade/*](https://github.com/KoBeWi/Godot-Universal-Fade)" by **Tomek** licensed under [MIT](https://spdx.org/licenses/MIT.html) | ||
## Models | ||
- "[assets/blocks/*](https://github.com/Zylann/marbles)" by **Zylann** licensed under [MIT](https://spdx.org/licenses/MIT.html) | ||
### Textures | ||
## Textures | ||
- "[assets/icons/*](https://icons8.com/)" by **Icons8** licensed under [LicenseRef-linksware](https://spdx.org/licenses/LicenseRef-linksware.html) | ||
- "[assets/marble/*](https://ambientcg.com/view?id=Ground037)" by **Lennart Demes** licensed under [CC0-1.0](https://spdx.org/licenses/CC0-1.0.html) | ||
### Fonts | ||
## Fonts | ||
- "[assets/fonts/box_pixies.ttf](https://www.fontspace.com/boxpixies-font-f27657)" by **Heaven Castro** licensed under [CC0-1.0](https://spdx.org/licenses/CC0-1.0.html) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
############# | ||
# Variables # | ||
############# | ||
|
||
GODOT_VERSION := $(shell cat .godot_version) | ||
RELEASE_NAME = stable | ||
SUBDIR = | ||
GODOT_PLATFORM = linux.x86_64 | ||
GODOT_FILENAME = Godot_v${GODOT_VERSION}-${RELEASE_NAME}_${GODOT_PLATFORM} | ||
GODOT_TEMPLATE = Godot_v${GODOT_VERSION}-${RELEASE_NAME}_export_templates.tpz | ||
|
||
GAME_NAME = Marble | ||
GAME_VERSION := $(shell cat .version) | ||
|
||
############# | ||
# Commands # | ||
############# | ||
|
||
mkflower: | ||
mkdir -p .mkflower | ||
mkdir -p .mkflower/build | ||
mkdir -p .mkflower/bin | ||
mkdir -p .mkflower/cache | ||
|
||
touch .mkflower/.gitignore | ||
echo '*' >> .mkflower/.gitignore | ||
|
||
touch .mkflower/.gdignore | ||
|
||
install_godot: mkflower | ||
# curl -X GET "https://downloads.tuxfamily.org/godotengine/${GODOT_VERSION}/SHA512-SUMS.txt" --output .mkflower/cache/SHA512-SUMS.txt | ||
# if [ ! -f ".mkflower/cache/${GODOT_FILENAME}" ] || [ "$(cat .mkflower/cache/SHA512-SUMS.txt | grep ${GODOT_FILENAME} | awk -F'[[:space:]]+' '{print $1}')" != "$(sha256sum .mkflower/cache/${GODOT_FILENAME})" ]; then \ | ||
curl -X GET "https://downloads.tuxfamily.org/godotengine/${GODOT_VERSION}${SUBDIR}/${GODOT_FILENAME}.zip" --output .mkflower/cache/${GODOT_FILENAME}.zip; \ | ||
unzip .mkflower/cache/${GODOT_FILENAME}.zip -d .mkflower/cache/; \ | ||
cp .mkflower/cache/${GODOT_FILENAME} .mkflower/bin/${GODOT_FILENAME}; | ||
# fi | ||
|
||
install_templates: mkflower | ||
curl -X GET "https://downloads.tuxfamily.org/godotengine/${GODOT_VERSION}${SUBDIR}/${GODOT_TEMPLATE}" --output .mkflower/cache/${GODOT_TEMPLATE}; \ | ||
unzip .mkflower/cache/${GODOT_TEMPLATE} -d .mkflower/cache/; \ | ||
mkdir -p ~/.local/share/godot/export_templates/${GODOT_VERSION}.${RELEASE_NAME}; \ | ||
cp .mkflower/cache/templates/* ~/.local/share/godot/export_templates/${GODOT_VERSION}.${RELEASE_NAME}; | ||
|
||
install_addons: | ||
.mkflower/bin/${GODOT_FILENAME} --headless --script plug.gd install || true | ||
|
||
import_resources: | ||
.mkflower/bin/${GODOT_FILENAME} --headless --export-pack null /dev/null | ||
# timeout 60 .mkflower/bin/${GODOT_FILENAME} --editor || true | ||
# .mkflower/bin/${GODOT_FILENAME} --headless --quit --editor | ||
|
||
export_release_linux: | ||
mkdir -p .mkflower/build/linux | ||
.mkflower/bin/${GODOT_FILENAME} --export-release "Linux/X11" --headless .mkflower/build/linux/${GAME_NAME}.x86_64 | ||
(cd .mkflower/build/linux && zip ${GAME_NAME}-linux-v${GAME_VERSION}.zip -r .) | ||
mv .mkflower/build/linux/${GAME_NAME}-linux-v${GAME_VERSION}.zip .mkflower/build/${GAME_NAME}-linux-v${GAME_VERSION}.zip | ||
|
||
export_release_windows: | ||
mkdir -p .mkflower/build/windows | ||
.mkflower/bin/${GODOT_FILENAME} --export-release "Windows Desktop" --headless .mkflower/build/windows/${GAME_NAME}.exe | ||
(cd .mkflower/build/windows && zip ${GAME_NAME}-windows-v${GAME_VERSION}.zip -r .) | ||
mv .mkflower/build/windows/${GAME_NAME}-windows-v${GAME_VERSION}.zip .mkflower/build/${GAME_NAME}-windows-v${GAME_VERSION}.zip | ||
|
||
export_release_mac: | ||
.mkflower/bin/${GODOT_FILENAME} --export-release "macOS" --headless .mkflower/build/${GAME_NAME}-mac-v${GAME_VERSION}.zip | ||
|
||
editor: | ||
.mkflower/bin/${GODOT_FILENAME} --editor | ||
|
||
godot: | ||
.mkflower/bin/${GODOT_FILENAME} $(ARGS) | ||
|
||
run_release: | ||
.mkflower/build/linux/${GAME_NAME}.x86_64 | ||
|
||
clean_mkflower: | ||
rm -rf .mkflower | ||
|
||
clean_godot: | ||
rm -rf .godot | ||
|
||
clean_plug: | ||
rm -rf .plugged | ||
find addons/ -type d -not -name 'addons' -not -name 'gd-plug' -exec rm -rf {} \; || true | ||
|
||
############# | ||
# Playbook # | ||
############# | ||
|
||
clean: clean_mkflower clean_godot clean_plug | ||
build: clean_godot clean_plug install_addons import_resources export_release_linux | ||
run: build run_release | ||
|
||
export_release_all: export_release_linux export_release_mac export_release_windows | ||
ci_build: clean install_godot install_templates install_addons import_resources export_release_all |
Oops, something went wrong.