我已经为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 发布于 2021-02-14 23:50:04
这是如何构建生产Flutter桌面应用程序并将其发布到Linux Snap Store的官方指南:https://flutter.dev/docs/deployment/linux
如果你只想构建Linux版本并在本地运行它,那么尝试这样做:
flutter build linux您将在build/linux/release/bundle目录中找到可执行文件
发布于 2020-06-13 03:42:40
在该过程完成后,使用命令flutter build linux或windows。你会在build文件夹中找到这些文件,如果你正在构建linux,那么你会发现一个linux文件夹,和windows一样,但是要记住,linux和windows都在开发者预览版中,所以不要将它用于生产应用程序。
发布于 2022-02-16 05:04:21
首先,您必须确保您的操作系统是Linux。然后你就可以为Linux构建了。
构建命令是:linux flutter build linux
https://stackoverflow.com/questions/62345350
复制相似问题