diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2022-10-17 22:42:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-17 22:42:33 +0200 |
commit | 1436024f595fd99cd885950319867fd3d371963b (patch) | |
tree | 00454cbbbc84ff6bc3992d50d677fe72bb0e369a /misc/scripts/package_release.sh | |
parent | 1769730ef0344fe1011681a207a0c68383b6d5f6 (diff) | |
parent | 690b31e7dd8d4583c50c1f5c60fde3c6888ff7bf (diff) | |
download | fork-godot-webrtc-native-1436024f595fd99cd885950319867fd3d371963b.tar.gz fork-godot-webrtc-native-1436024f595fd99cd885950319867fd3d371963b.tar.bz2 fork-godot-webrtc-native-1436024f595fd99cd885950319867fd3d371963b.zip |
Merge pull request #65 from Faless/bump/beta3
[Upstream] Update to Godot Beta 3
Diffstat (limited to 'misc/scripts/package_release.sh')
-rwxr-xr-x | misc/scripts/package_release.sh | 32 |
1 files changed, 32 insertions, 0 deletions
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} |