Skip to content
Snippets Groups Projects
Commit 60660c7c authored by Benoît Harrault's avatar Benoît Harrault
Browse files

Fix build process

parent 5e1591d8
No related branches found
No related tags found
1 merge request!76Resolve "Fix build process"
Pipeline #6158 passed
......@@ -33,7 +33,12 @@ android:build-debug:
- flutter build apk --debug
# prepare artifact
- BASE_APK_FOLDER="build/app/outputs/flutter-apk"
- for APK in ${BASE_APK_FOLDER}/*.apk; do mv -v "${APK}" "$(echo "${APK}" | sed "s|\.apk|_${VERSION_CODE}.apk|")"; done
- >
if [ "$(find "${BASE_APK_FOLDER}" -name "*.apk")" != "" ]; then
for APK in ${BASE_APK_FOLDER}/*.apk; do
mv -v "${APK}" "$(echo "${APK}" | sed "s|\.apk|_${VERSION_CODE}.apk|")"
done
fi
- find "${BASE_APK_FOLDER}" -name "*.apk" # where are my apk?
artifacts:
paths:
......@@ -76,7 +81,12 @@ android:build-release:
flutter build apk --release
fi
# prepare artifact
- for APK in ${BASE_APK_FOLDER}/*.apk; do mv -v "${APK}" "$(echo "${APK}" | sed "s|\.apk|_${VERSION_CODE}.apk|")"; done
- >
if [ "$(find "${BASE_APK_FOLDER}" -name "*.apk")" != "" ]; then
for APK in ${BASE_APK_FOLDER}/*.apk; do
mv -v "${APK}" "$(echo "${APK}" | sed "s|\.apk|_${VERSION_CODE}.apk|")"
done
fi
- find "${BASE_APK_FOLDER}" -name "*.apk" # where are my apk?
artifacts:
paths:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment