#!/usr/sbin/env bash # CORE FRAMEWORK SOURCE FILE # Copyright (c) 2024 The StarOpenSource Project & Contributors # Licensed under the GNU Affero General Public License v3 # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . 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) ## [Install using Asset Library](https://core.staropensource.de/getting-started/setting-up/#using-the-godot-asset-library) ## [Install using Git](https://core.staropensource.de/getting-started/setting-up/#using-git) 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