Skip to content

Commit 30c6c5b

Browse files
authored
Merge pull request #804 from bugsnag/hotFixForUpmPackage
Hotfix release v7.7.6
2 parents 586fe0d + f858540 commit 30c6c5b

File tree

3 files changed

+19
-5
lines changed

3 files changed

+19
-5
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## 7.7.6 (2024-05-17)
4+
5+
- Fixed issue where meta files for the MacOS bundle were not generated. [#802](https://github.com/bugsnag/bugsnag-unity/pull/802)
6+
7+
38
## 7.7.5 (2024-05-02)
49

510
### Bug Fixes

build.cake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ var target = Argument("target", "Default");
55
var solution = File("./BugsnagUnity.sln");
66
var configuration = Argument("configuration", "Release");
77
var project = File("./src/BugsnagUnity/BugsnagUnity.csproj");
8-
var version = "7.7.5";
8+
var version = "7.7.6";
99

1010
Task("Restore-NuGet-Packages")
1111
.Does(() => NuGetRestore(solution));

upm-tools/build-upm-package.sh

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,22 @@ fi
1616

1717
VERSION=$1
1818

19-
if [ -z "$UNITY_VERSION" ]
19+
if [ -z "$UNITY_UPM_VERSION" ]
2020
then
21-
echo "UNITY_VERSION must be set"
21+
echo "UNITY_UPM_VERSION must be set"
2222
exit 1
2323
fi
2424

25-
UNITY_PATH="/Applications/Unity/Hub/Editor/$UNITY_VERSION/Unity.app/Contents/MacOS"
25+
#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.
26+
#In which case all sub dirs and files must have .meta files to work with UPM.
27+
#Building the UPM package with unity 2019 ensures that the meta files are created
28+
29+
if [[ "$UNITY_UPM_VERSION" != *"2019"* ]]; then
30+
echo "ERROR: UNITY_UPM_VERSION must be a version of Unity 2019. See script comments for details."
31+
exit 1
32+
fi
33+
34+
UNITY_PATH="/Applications/Unity/Hub/Editor/$UNITY_UPM_VERSION/Unity.app/Contents/MacOS"
2635

2736

2837

@@ -72,4 +81,4 @@ sed -i '' "s/VERSION_STRING/$VERSION/g" "$PACKAGE_DIR/package.json"
7281
sed -i '' "s/VERSION_STRING/v$VERSION/g" "$PACKAGE_DIR/README.md"
7382

7483

75-
echo "complete, ready to deploy"
84+
echo "complete, ready to deploy"

0 commit comments

Comments
 (0)