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应用
- Host: GitHub
- URL: https://github.com/niuhuan/harmony-next-flutter-pipeline-docker
- Owner: niuhuan
- Created: 2025-04-17T05:21:53.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-04-28T13:32:32.000Z (5 months ago)
- Last Synced: 2025-04-28T14:27:51.348Z (5 months ago)
- Topics: flutter, flutter-apps, ohos
- Language: Dockerfile
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```