目前支持deb的版本构建。使用flutter_distributor
直接使用下面命令构建deb
docker run -it --rm -v <your repo>:/root/<your repo name> <image-name>:<image-tag> bash
$ cd /root/<your repo name>
$ flutter pub get
$ flutter_distributor package --platform linux --targets deb
在最后会显示dist/<version>/<deb>
直接使用下面命令构建rpm
- 修改linux/packaging/rpm/make_config.yaml,build_arch为需要编译的架构(x86_64或者aarch64)
vim linux/packaging/rpm/make_config.yaml
build_arch: x86_64
docker run -it --rm -v <your repo>:/root/<your repo name> <image-name>:<image-tag> bash
$ cd /root/<your repo name>
$ flutter pub get
$ flutter_distributor package --platform linux --targets rpm
在最后会显示dist/<version>/<rpm>