From c0643c624ab55ea827a1295cf56bcf73ddb9060a Mon Sep 17 00:00:00 2001 From: Richard Elms Date: Fri, 17 May 2024 12:02:55 +0200 Subject: [PATCH 1/3] specify older version when building UPM package --- upm-tools/build-upm-package.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/upm-tools/build-upm-package.sh b/upm-tools/build-upm-package.sh index 521631964..eb13c0400 100755 --- a/upm-tools/build-upm-package.sh +++ b/upm-tools/build-upm-package.sh @@ -16,13 +16,13 @@ fi VERSION=$1 -if [ -z "$UNITY_VERSION" ] +if [ -z "$UNITY_UPM_VERSION" ] then echo "UNITY_VERSION must be set" exit 1 fi -UNITY_PATH="/Applications/Unity/Hub/Editor/$UNITY_VERSION/Unity.app/Contents/MacOS" +UNITY_PATH="/Applications/Unity/Hub/Editor/$UNITY_UPM_VERSION/Unity.app/Contents/MacOS" From 41a36aa34787c9a729254b7768d4235b3bd60d34 Mon Sep 17 00:00:00 2001 From: Richard Elms Date: Fri, 17 May 2024 13:12:15 +0200 Subject: [PATCH 2/3] ensure unity 2019 usage --- upm-tools/build-upm-package.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/upm-tools/build-upm-package.sh b/upm-tools/build-upm-package.sh index eb13c0400..52b03f926 100755 --- a/upm-tools/build-upm-package.sh +++ b/upm-tools/build-upm-package.sh @@ -18,7 +18,16 @@ VERSION=$1 if [ -z "$UNITY_UPM_VERSION" ] then - echo "UNITY_VERSION must be set" + echo "UNITY_UPM_VERSION must be set" + exit 1 +fi + +#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 From 983ce6906a273156931fb5054178275a6511eed5 Mon Sep 17 00:00:00 2001 From: Richard Elms Date: Fri, 17 May 2024 13:14:03 +0200 Subject: [PATCH 3/3] changelog --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f5e3f3cf1..058a65570 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## TBD () + +### Bug Fixes + +- 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