Commit 986eb9c6 authored by YM-RD-AP01\ymadmin's avatar YM-RD-AP01\ymadmin

20180083: Job [Hi365_SIT_Deploy_Android] configuration updated

Change performed by §õº~?
parent f915c1f8
...@@ -60,8 +60,10 @@ git_short_hash=$(git rev-parse --short HEAD) ...@@ -60,8 +60,10 @@ git_short_hash=$(git rev-parse --short HEAD)
if [ $BUILD_BRANCH == "master" ] if [ $BUILD_BRANCH == "master" ]
then then
build_type="release" build_type="release"
default_doc="main_uat.dart"
else else
build_type="debug" build_type="debug"
default_doc="main_dev.dart"
fi fi
output_path="${project_path}/build/app/outputs/apk/${build_type}" output_path="${project_path}/build/app/outputs/apk/${build_type}"
...@@ -71,7 +73,7 @@ new_apk_name="Hi365_SIT_${current_date}_${git_short_hash}.apk" ...@@ -71,7 +73,7 @@ new_apk_name="Hi365_SIT_${current_date}_${git_short_hash}.apk"
apk_path="${output_path}/${new_apk_name}" apk_path="${output_path}/${new_apk_name}"
flutter build apk --${build_type} -t lib/main_dev.dart flutter build apk --${build_type} -t lib/${default_doc}
# rename apk name # rename apk name
mv ${output_path}/app-${build_type}.apk ${apk_path} mv ${output_path}/app-${build_type}.apk ${apk_path}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment