Skip to content

Instantly share code, notes, and snippets.

@monmonja
Created July 16, 2019 13:16
Show Gist options
  • Select an option

  • Save monmonja/6e2910ca51d64b8be8bb8d28d0d34a55 to your computer and use it in GitHub Desktop.

Select an option

Save monmonja/6e2910ca51d64b8be8bb8d28d0d34a55 to your computer and use it in GitHub Desktop.

Revisions

  1. monmonja created this gist Jul 16, 2019.
    19 changes: 19 additions & 0 deletions generate-ios.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    # download this file to your project folder and excute
    # chmod +x generate-ios.sh
    # then run using
    # ./generate-ios.sh

    # flutter build defaults to --release
    flutter build ios

    # 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
    # open finder and manually find the .ipa and upload to diawi using chrome
    open .
    open -a "Google Chrome" https://www.diawi.com/