locate
On Ubuntu/Debian based linux, run:
$ sudo apt install locate
AppImageTool
要安装 Appimage Builder,请运行:
wget -O appimagetool "https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage"chmod +x appimagetoolmv appimagetool /usr/local/bin/
最后一条命令可能需要 sudo 权限
sudo
将 make_config.yaml 添加到您的项目 linux/packaging/appimage 目录。
make_config.yaml
linux/packaging/appimage
display_name: Hello World icon: assets/logo.png keywords: - Hello - World - Test - Application generic_name: Cool Application actions: - name: Say Hi label: say-hi arguments: - --say - hi - name: Say Bye label: say-bye arguments: - --say - bye categories: - Music startup_notify: true # 您可以指定要与您的应用捆绑的共享库## flutter_distributor 会自动检测您的应用所依赖的共享库,但您也可以在此处手动指定它们。## 以下示例展示了如何将 libcurl 库与您的应用捆绑在一起## include:# - libcurl.so.4include: []
运行:
flutter_distributor package --platform linux --targets appimage