Permalink
Browse files

[fix] fix invalid provision

  • Loading branch information...
AloneMonkey committed Oct 10, 2018
1 parent f1b1612 commit c0fdddf52f16248f4d27a994423058f79db1d6cc
Showing with 4 additions and 0 deletions.
  1. +4 −0 Tools/pack.sh
@@ -96,6 +96,8 @@ function pack(){
cp -rf "${TEMP_PATH}/Payload/"*.app "${TARGET_APP_PUT_PATH}"
fi

mv "${BUILD_APP_PATH}/embedded.mobileprovision" "${BUILD_APP_PATH}"/..

#remove origin .app
rm -rf "${BUILD_APP_PATH}" || true
mkdir -p "${BUILD_APP_PATH}" || true
@@ -111,6 +113,8 @@ function pack(){
checkApp "${COPY_APP_PATH}"
cp -rf "${COPY_APP_PATH}/" "${BUILD_APP_PATH}/"

mv "${BUILD_APP_PATH}/../embedded.mobileprovision" "${BUILD_APP_PATH}"

# get target info
ORIGIN_BUNDLE_ID=$(/usr/libexec/PlistBuddy -c "Print CFBundleIdentifier" "${COPY_APP_PATH}/Info.plist" 2>/dev/null)
TARGET_EXECUTABLE=$(/usr/libexec/PlistBuddy -c "Print CFBundleExecutable" "${COPY_APP_PATH}/Info.plist" 2>/dev/null)

0 comments on commit c0fdddf

Please sign in to comment.