Skip to content

Instantly share code, notes, and snippets.

@mingsai
Created July 1, 2026 13:42
Show Gist options
  • Select an option

  • Save mingsai/f26edf7e0b712db31e013460da2479a5 to your computer and use it in GitHub Desktop.

Select an option

Save mingsai/f26edf7e0b712db31e013460da2479a5 to your computer and use it in GitHub Desktop.
Flutter product generation for stores and web
Use these exact terminal commands to generate release products for each platform in Flutter. [1, 2, 3, 4]
🍎 iOS (App Store)
You need Xcode and an active Apple Developer account to archive and publish iOS apps. [1]
Run this command in your terminal:
bash
flutter build ipa
Use code with caution.
Output: A .ipa file located in build/ios/ipa/.
Next step: Upload this file to App Store Connect using Apple Transport or Xcode’s Organizer window. [1]
🤖 Google Play Store
Google requires your app to be in an App Bundle format to keep download sizes small. [1, 2]
Run this command:
bash
flutter build appbundle
Use code with caution.
Output: A .aab file located in build/app/outputs/bundle/release/.
Next step: Upload this file directly to the Google Play Console. [1, 2]
💻 macOS (Mac Store)
Building for macOS requires a Mac and Xcode. [1, 2, 3]
Run this command:
bash
flutter build macos
Use code with caution.
Output: A .app bundle inside the build/macos/Build/Products/Release/ directory. [1]
🪟 Windows (MSIX Store)
Microsoft requires apps to use the MSIX format for the Microsoft Store. Flutter uses a package called msix to build this installer. [1, 2]
Open your pubspec.yaml file and add the msix_config section: [1, 2]
yaml
msix_config:
display_name: "Your App Name"
publisher_display_name: "Your Publisher Name"
identity_name: "your.publisher.name.app"
publisher: "CN=YourPublisherID"
Use code with caution.
Run this command:
bash
flutter pub run msix:create
Use code with caution.
Output: An .msix installer file located in your build/windows/runner/Release/ folder. [1, 2, 3]
🌐 Web
This command compiles your Flutter code into standard web files (HTML, JavaScript, and WebAssembly). [1, 2, 3, 4, 5]
Run this command:
bash
flutter build web
Use code with caution.
Output: All web assets are placed in the build/web/ directory.
Next step: You can host these files on any standard web server, GitHub Pages, or Firebase. [1]
If you'd like to proceed, let me know:
What specific platform are you ready to deploy to first?
Are you having issues setting up the required developer accounts?
I can guide you through the next steps for that specific store!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment