Created
November 18, 2021 20:33
-
-
Save fjcaetano/40c01ccffed8ebdc08790589c76a37b0 to your computer and use it in GitHub Desktop.
Manually export an iOS enterprise build
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
ARCHIVE_PATH="$1" | |
OUTPUT_PATH="$2" | |
if [ -z "${ARCHIVE_PATH}" ] || [ -z "${OUTPUT_PATH}" ]; then | |
echo "Usage: $0 [archive_path] [output_path]" | |
exit 1 | |
fi | |
TMP_PATH="/tmp/manual-archive" | |
mkdir -p "${TMP_PATH}" | |
cp -R "${ARCHIVE_PATH}/Products/Applications/" "${TMP_PATH}/Payload" | |
pushd "${TMP_PATH}" | |
zip -r "App.ipa" . | |
popd | |
mkdir -p "${OUTPUT_PATH}" | |
mv "${TMP_PATH}/App.ipa" "${OUTPUT_PATH}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment