我正在尝试在 package.json 中设置动态 Appflow 频道名称
"cordova-plugin-ionic": {
"APP_ID": "********",
"CHANNEL_NAME": "./branch.sh",
"UPDATE_METHOD": "auto",
"MAX_STORE": "2",
"MIN_BACKGROUND_DURATION": "30",
"UPDATE_API": "https://api.ionicjs.com"
},
branch.sh 像这样处理频道名称
if [ "$CI_GIT_REF" = "develop" ]; then
Develop
fi
if [ "$CI_GIT_REF" = "master" ]; then
Master
fi
我在互联网上进行了广泛搜索,但没有运气。