From 44629f82d9f69868705e46d7237fac1c7349b4a1 Mon Sep 17 00:00:00 2001 From: Richard Bates Date: Tue, 18 Jul 2023 12:10:31 +0100 Subject: [PATCH] Linux script for zipping Defold SDKs --- SDKGenerator.njsproj | 1 + .../_Build/Defold/BuildDefoldZips.sh | 27 +++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100755 targets/LuaSdk/GlobalFiles/_Build/Defold/BuildDefoldZips.sh diff --git a/SDKGenerator.njsproj b/SDKGenerator.njsproj index f9bd08c8c..635e371fb 100644 --- a/SDKGenerator.njsproj +++ b/SDKGenerator.njsproj @@ -378,6 +378,7 @@ + diff --git a/targets/LuaSdk/GlobalFiles/_Build/Defold/BuildDefoldZips.sh b/targets/LuaSdk/GlobalFiles/_Build/Defold/BuildDefoldZips.sh new file mode 100755 index 000000000..fcc703a0c --- /dev/null +++ b/targets/LuaSdk/GlobalFiles/_Build/Defold/BuildDefoldZips.sh @@ -0,0 +1,27 @@ +#!/bin/bash + +pushd PlayFabClientSdk +rm -f ../../../Defold/PlayFabClientSdk.zip +cp -f PlayFabSdk.project game.project +cp -f ../../../README.md README.md +zip -r ../../../Defold/PlayFabClientSdk.zip README.md PlayFab game.project +rm -f ../../../Defold/PlayFabClientTestExample.zip +cp -f PlayFabTestExample.project game.project +zip -r ../../../Defold/PlayFabClientTestExample.zip ../../../README.md PlayFab PlayFabSdk.project PlayFabTesting game.project +popd + +pushd PlayFabServerSdk +rm -f ../../../Defold/PlayFabServerSdk.zip +cp -f PlayFabSdk.project game.project +cp -f ../../../README.md README.md +zip -r ../../../Defold/PlayFabServerSdk.zip README.md PlayFab game.project +popd + +pushd PlayFabSdk +rm -f ../../../Defold/PlayFabComboSdk.zip +cp -f PlayFabSdk.project game.project +cp -f ../../../README.md README.md +zip -r ../../../Defold/PlayFabComboSdk.zip README.md PlayFab game.project +popd + +read -p "Press any key to continue..."