From 8a786fa24e3bf924281c9353e490cc436c218471 Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Fri, 22 Mar 2024 21:17:26 +0100 Subject: [PATCH] Add git distribution builder --- ...strib.sh => build-distrib-assetlibrary.sh} | 2 + dist/build-distrib-git.sh | 38 +++++++++++++++++++ 2 files changed, 40 insertions(+) rename dist/{build-distrib.sh => build-distrib-assetlibrary.sh} (90%) create mode 100755 dist/build-distrib-git.sh diff --git a/dist/build-distrib.sh b/dist/build-distrib-assetlibrary.sh similarity index 90% rename from dist/build-distrib.sh rename to dist/build-distrib-assetlibrary.sh index 60cc85a..23fd67e 100755 --- a/dist/build-distrib.sh +++ b/dist/build-distrib-assetlibrary.sh @@ -28,6 +28,8 @@ This repository is used for distributing CORE in the [Godot Asset Library](https ## [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 diff --git a/dist/build-distrib-git.sh b/dist/build-distrib-git.sh new file mode 100755 index 0000000..a8707a8 --- /dev/null +++ b/dist/build-distrib-git.sh @@ -0,0 +1,38 @@ +#!/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 dist +cat << EOF >> README.md +# CORE Framework distribution repository +This repository is used for distributing CORE as a git submodule. + +## [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 ../../.corebasepath .corebasepath +cp -r ../../src src +cp -r ../core.* dist +cp -r ../FiraCode dist/FiraCode +cp -r ../../LICENSE LICENSE