From 690b31e7dd8d4583c50c1f5c60fde3c6888ff7bf Mon Sep 17 00:00:00 2001 From: Fabio Alessandrelli Date: Mon, 17 Oct 2022 00:51:32 +0200 Subject: [Upstream] Update to Godot beta 3. Update build targets. Move release script out of CI yaml. Disable debug CI builds for Godot 3.x since they are mostly used for debugging the extension itself. --- misc/scripts/package_release.sh | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100755 misc/scripts/package_release.sh (limited to 'misc/scripts/package_release.sh') diff --git a/misc/scripts/package_release.sh b/misc/scripts/package_release.sh new file mode 100755 index 0000000..a08f441 --- /dev/null +++ b/misc/scripts/package_release.sh @@ -0,0 +1,32 @@ +#!/bin/bash + +set -e +set -x + +ARTIFACTS=${ARTIFACTS:-"artifacts"} +DESTINATION=${DESTIONATION:-"release"} +VERSION=${VERSION:-"extension"} +TYPE=${TYPE:-"webrtc"} + +mkdir -p ${DESTINATION} +ls -R ${DESTINATION} + +DESTDIR="${DESTINATION}/${VERSION}/${TYPE}" + +mkdir -p ${DESTDIR}/lib + +find "${ARTIFACTS}" -wholename "*/${VERSION}/${TYPE}/lib/*" | xargs cp -t "${DESTDIR}/lib/" +find "${ARTIFACTS}" -wholename "*/LICENSE*" | xargs cp -t "${DESTDIR}/" + +if [ $VERSION = "extension" ]; then + find "${ARTIFACTS}" -wholename "*/${VERSION}/${TYPE}/${TYPE}.gdextension" | head -n 1 | xargs cp -t "${DESTDIR}/" +else + find "${ARTIFACTS}" -wholename "*/${VERSION}/${TYPE}/${TYPE}.tres" | head -n 1 | xargs cp -t "${DESTDIR}/" +fi + +CURDIR=$(pwd) +cd "${DESTINATION}/${VERSION}" +zip -r ../godot-${VERSION}-${TYPE}.zip ${TYPE} +cd "$CURDIR" + +ls -R ${DESTINATION} -- cgit v1.2.3