File tree 2 files changed +7
-6
lines changed
2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -2,3 +2,4 @@ OneSignalExample/Assets/Plugins/**/*.aar
2
2
OneSignalExample /Assets /Plugins /** /* .aar.meta
3
3
OneSignalExample /Assets /Plugins /** /* .jar
4
4
OneSignalExample /Assets /Plugins /** /* .jar.meta
5
+ build.log
Original file line number Diff line number Diff line change @@ -23,11 +23,10 @@ if [ ! -d $temp_location ]; then
23
23
mkdir $temp_location
24
24
fi
25
25
26
- # removed an unneeded Android manifest
27
- if [[ -e " $config_location /AndroidManifest.xml" ]]; then
26
+ # Removed generated Android manifest files
27
+ if [[ -e " $config_location /AndroidManifest.xml" ]]; then
28
28
rm $config_location /AndroidManifest.xml
29
29
fi
30
-
31
30
if [[ -e " $config_location /AndroidManifest.xml.meta" ]]; then
32
31
rm $config_location /AndroidManifest.xml.meta
33
32
fi
@@ -48,12 +47,13 @@ mkdir $android_location
48
47
mv $temp_location /OneSignalConfig $config_location
49
48
mv $temp_location /OneSignalConfig.meta $config_location .meta
50
49
51
- error_code=0
52
-
53
- # create the .unitypackage
50
+ # Create the .unitypackage
54
51
echo " Creating unitypackage."
52
+ # Setting standalone keeps AndroidManifest.xml from being regenerated
53
+ # buildTarget must be before exportPackage for this to work
55
54
/Applications/Unity/Unity.app/Contents/MacOS/Unity \
56
55
-batchMode \
56
+ -buildTarget standalone \
57
57
-projectPath $project_path \
58
58
-exportPackage Assets $package_name \
59
59
-logFile $log_file \
You can’t perform that action at this time.
0 commit comments