Browse Source

Merge pull request #313 from adam-p/master

Make a zip to use as build artifact (to avoid Jenkins breaking it)
Adam Pritchard 9 years ago
parent
commit
da2991948e
1 changed files with 6 additions and 0 deletions
  1. 6 0
      MobileLibrary/iOS/build-psiphon-framework.sh

+ 6 - 0
MobileLibrary/iOS/build-psiphon-framework.sh

@@ -252,4 +252,10 @@ fi
 # Delete the temporary simulator build files.
 # Delete the temporary simulator build files.
 rm -rf "${BUILD_DIR}-SIMULATOR"
 rm -rf "${BUILD_DIR}-SIMULATOR"
 
 
+# Jenkins loses symlinks from the framework directory, which results in a build
+# artifact that is invalid to use in an App Store app. Instead, we will zip the
+# resulting build and use that as the artifact.
+cd "${BUILD_DIR}"
+zip --recurse-paths --symlinks build.zip * --exclude "*.DS_Store"
+
 echo "BUILD DONE"
 echo "BUILD DONE"