An open API service indexing awesome lists of open source software.

https://github.com/niuhuan/harmony-next-flutter-pipeline-docker

使用githubActions构建基于flutter对鸿蒙NEXT应用
https://github.com/niuhuan/harmony-next-flutter-pipeline-docker

flutter flutter-apps ohos

Last synced: 4 months ago
JSON representation

使用githubActions构建基于flutter对鸿蒙NEXT应用

Awesome Lists containing this project

README

          

# harmony-next-flutter-pipeline-docker

使用GithubActions构建基于flutter的鸿蒙NEXT项目

- 鸿蒙命令行工具版本为 5.0.4
- latest镜像 flutter 版本为 3.22.0-ohos
- 可以使用不同标签引入flutter的不同版本

使用方式

```yaml
jobs:
build:
runs-on: ubuntu-latest
container: ghcr.io/niuhuan/harmony-next-flutter-pipeline-docker/image:latest
steps:
- name: build hap
run: |
# 若配置签名会直接输出 ./ohos/entry/build/default/outputs/default/entry-default-signed.hap
flutter build hap --target-platform=ohos-arm64
# 若没有配置签名, 页不会导致shell中断, 则需要执行以下两条命令输出 ./ohos/entry/build/default/outputs/default/entry-default-unsigned.hap
cd ohos
hvigorw assembleHap --release
```