#!/usr/sbin/env bash export PS4="-> " set -euxo pipefail if [ -d "distrib" ]; then rm -rf distrib; fi mkdir distrib cd distrib mkdir -p addons/CORE/dist cat << EOF >> README.md # CORE Framework distribution repository This repository is used for distributing CORE in the [Godot Asset Library](https://godotengine.org/asset-library/). ## [CORE Repository](https://git.staropensource.de/StarOpenSource/CORE) ## [Documentation](https://core.staropensource.de) EOF cp -r README.md addons/CORE/README.md cp -r ../../.corebasepath addons/CORE/.corebasepath cp -r ../../src addons/CORE/src cp -r ../core.* addons/CORE/dist cp -r ../FiraCode addons/CORE/dist/FiraCode cp -r ../../LICENSE addons/CORE/LICENSE cat << EOF >> .gitignore # Godot 4+ specific ignores .godot/ # Godot-specific ignores .import/ export.cfg export_presets.cfg # Imported translations (automatically generated from CSV files) *.translation # Mono-specific ignores .mono/ data_*/ mono_crash.*.json EOF cat << EOF >> .gitattributes # Normalize line endings for all files that Git considers text files. * text=auto eol=lf # Only include the addons folder when downloading from the Asset Library. /** export-ignore /addons !export-ignore /addons/** !export-ignore EOF