Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for unity meta bundle bug #802

Merged
merged 3 commits into from
May 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
15 changes: 12 additions & 3 deletions upm-tools/build-upm-package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"



Expand Down