Skip to content

Commit de7aaa8

Browse files
committed
export script
1 parent 7a30c50 commit de7aaa8

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

export.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
UNITY_BIN="/Applications/Unity/Hub/Editor/2020.1.4f1/Unity.app/Contents/MacOS/Unity"
3+
IOS_VERSION="$(cat Assets/Plugins/iOS/BugfenderSDK.h | perl -ne '/BFLibraryVersionNumber_([\d_]+)/s and $v=$1; END {$v=~s/_/./g; print $v}')"
4+
ANDROID_VERSION="$(ls Assets/Plugins/Android/android-*.aar | perl -ne 'print $1 if /.*-([\d.]+)\.aar/s')"
5+
PACKAGE_NAME="Bugfender-android${ANDROID_VERSION}-iOS${IOS_VERSION}.unitypackage"
6+
7+
echo "Detected SDK versions: android: ${ANDROID_VERSION} - iOS: ${IOS_VERSION}"
8+
"$UNITY_BIN" -gvh_disable -projectPath . -quit -batchmode -exportPackage Assets/Bugfender Assets/Plugins "$PACKAGE_NAME"

0 commit comments

Comments
 (0)