From f858540b8aa9f391e2165b35bdeb5dbacae8b2a7 Mon Sep 17 00:00:00 2001 From: Richard Elms Date: Fri, 17 May 2024 14:40:27 +0200 Subject: [PATCH] Hotfix release v7.7.6 --- CHANGELOG.md | 5 +++++ build.cake | 2 +- upm-tools/build-upm-package.sh | 17 +++++++++++++---- 3 files changed, 19 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f5e3f3cf1..265c1da97 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 7.7.6 (2024-05-17) + +- Fixed issue where meta files for the MacOS bundle were not generated. [#802](https://github.com/bugsnag/bugsnag-unity/pull/802) + + ## 7.7.5 (2024-05-02) ### Bug Fixes diff --git a/build.cake b/build.cake index 327ccfa42..f85a1a27f 100644 --- a/build.cake +++ b/build.cake @@ -5,7 +5,7 @@ var target = Argument("target", "Default"); var solution = File("./BugsnagUnity.sln"); var configuration = Argument("configuration", "Release"); var project = File("./src/BugsnagUnity/BugsnagUnity.csproj"); -var version = "7.7.5"; +var version = "7.7.6"; Task("Restore-NuGet-Packages") .Does(() => NuGetRestore(solution)); diff --git a/upm-tools/build-upm-package.sh b/upm-tools/build-upm-package.sh index 521631964..7fa5c334b 100755 --- a/upm-tools/build-upm-package.sh +++ b/upm-tools/build-upm-package.sh @@ -16,13 +16,22 @@ fi VERSION=$1 -if [ -z "$UNITY_VERSION" ] +if [ -z "$UNITY_UPM_VERSION" ] then - echo "UNITY_VERSION must be set" + echo "UNITY_UPM_VERSION must be set" exit 1 fi -UNITY_PATH="/Applications/Unity/Hub/Editor/$UNITY_VERSION/Unity.app/Contents/MacOS" +#There is a bug in some versions of unity 2020, 2021 and 2022 where macos bundles will not be imported as a single plugin file. +#In which case all sub dirs and files must have .meta files to work with UPM. +#Building the UPM package with unity 2019 ensures that the meta files are created + +if [[ "$UNITY_UPM_VERSION" != *"2019"* ]]; then + echo "ERROR: UNITY_UPM_VERSION must be a version of Unity 2019. See script comments for details." + exit 1 +fi + +UNITY_PATH="/Applications/Unity/Hub/Editor/$UNITY_UPM_VERSION/Unity.app/Contents/MacOS" @@ -72,4 +81,4 @@ sed -i '' "s/VERSION_STRING/$VERSION/g" "$PACKAGE_DIR/package.json" sed -i '' "s/VERSION_STRING/v$VERSION/g" "$PACKAGE_DIR/README.md" -echo "complete, ready to deploy" +echo "complete, ready to deploy" \ No newline at end of file