gpt4 book ai didi

linux - Flutter 发布到 Linux

转载 作者:行者123 更新时间:2023-12-04 18:27:46 25 4
gpt4 key购买 nike

我已经为 Linux 创建了一个 flutter 应用程序。但是如何将 flutter 发布到 Linux 或 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

最佳答案

这是一份关于如何构建 Flutter 桌面应用程序并将其发布到 Linux Snap Store 的官方指南:https://flutter.dev/docs/deployment/linux

如果您只想构建例如Linux 版本并在本地运行它然后试试这个:

flutter build linux

您将在 build/linux/release/bundle 目录中找到可执行文件

关于linux - Flutter 发布到 Linux,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62345350/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com