Skip to content
代码片段 群组 项目
提交 c197b961 编辑于 作者: ling zhang's avatar ling zhang
浏览文件

ci: #92 Gets the original file name of the apk in build stage

上级 ef4acdaa
No related branches found
No related tags found
无相关合并请求
......@@ -36,7 +36,7 @@ build-android:
script:
- flutter build apk --dart-define=REQUEST_ENV=prod_env
- VERSION_APK=$(/opt/android-sdk-linux/build-tools/30.0.3/aapt2 dump badging ${ANDROID_APK_PATH} | grep "versionName" | sed -e "s/.*versionName='//" -e "s/' .*//")
- FILENAME_APK=basename ${ANDROID_APK_PATH}
- FILENAME_APK=$(ls | grep 'apk')
- echo "VERSION_APK=$VERSION_APK" > version.env
- echo "FILENAME_APK=$FILENAME_APK" > version.env
artifacts:
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册