We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a30c50 commit de7aaa8Copy full SHA for de7aaa8
1 file changed
export.sh
@@ -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