Last active
February 1, 2021 13:34
-
-
Save ampersanda/b985b199370729e32b644b10ed33e3fc to your computer and use it in GitHub Desktop.
Build IPA from APP in flutter
This file contains hidden or 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/bash | |
# Make .app | |
if ! type "$PWD/.fvm/flutter_sdk/bin/flutter" > /dev/null; then | |
echo '▵ Using flutter' | |
flutter build ios | |
else | |
echo '▵ Using fvm' | |
fvm flutter build ios | |
fi | |
# make folder, add .app then zip it and rename it to .ipa | |
mkdir -p Payload | |
mv ./build/ios/iphoneos/Runner.app Payload | |
zip -r -y Payload.zip Payload/Runner.app | |
mv Payload.zip Payload.ipa | |
# the following are options, remove Payload folder | |
rm -Rf Payload |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment