linux - Flutter 发布到 Linux

标签 linux windows ubuntu flutter dart

我已经为 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/

相关文章:

linux - 期望脚本在运行脚本之前检查文件类型并更改它

php - 如何更改Linux文件系统中的文件排序?

Linux 应用程序接收源源不断的数据流,解析并输出文本

.net - 如何关注最后激活的程序?

ruby - gem 安装导轨不起作用

linux - 如何查看计时器线程是否正在运行

Windows 保护模式 - 内存

windows - 有没有办法使批处理文件自动填充/自动将文件路径填充到通过批处理文件打开的另一个应用程序中?

java - Hadoop无法在Ubuntu 15.10上启动Datanode

ubuntu - 如何在ubuntu中调用play-framework脚本?