Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flutter release to linux

I have created a flutter app for Linux. but how to release flutter to Linux or windows.?

You are building a fat APK that includes binaries for android-arm, android-arm64, android-x64.
If you are deploying the app to the Play Store, it's recommended to use app bundles or split the APK to reduce the APK size.
    To generate an app bundle, run:
        flutter build appbundle --target-platform android-arm,android-arm64,android-x64
        Learn more on: https://developer.android.com/guide/app-bundle
    To split the APKs per ABI, run:
        flutter build apk --target-platform android-arm,android-arm64,android-x64 --split-per-abi
        Learn more on:  https://developer.android.com/studio/build/configure-apk-splits#configure-abi-split
Running Gradle task 'assembleRelease'...                                
Running Gradle task 'assembleRelease'... Done   
like image 250
Ahmadi Alpasyri Avatar asked Oct 23 '25 19:10

Ahmadi Alpasyri


1 Answers

This is an official guide how to build and release production Flutter desktop app to Linux Snap Store: https://flutter.dev/docs/deployment/linux

If you just want to build e.g. Linux version and run it locally then try this:

flutter build linux

You'll find the executable in build/linux/release/bundle directory

like image 87
tomrozb Avatar answered Oct 25 '25 09:10

tomrozb