Skip to content
Snippets Groups Projects
Commit 0ab4e68f authored by Benoit Lavenier's avatar Benoit Lavenier
Browse files

[fix] Add comment on release script

parent 69f2ca79
No related branches found
No related tags found
No related merge requests found
Pipeline #8984 failed
...@@ -792,6 +792,8 @@ const webCompile = gulp.series( ...@@ -792,6 +792,8 @@ const webCompile = gulp.series(
webCleanUnusedFiles, webCleanUnusedFiles,
webCleanUnusedDirectories webCleanUnusedDirectories
); );
// note : Do not call config, to keep same config between web and webExt artifacts
const webBuild = gulp.series( const webBuild = gulp.series(
webClean, webClean,
webCompile, webCompile,
...@@ -803,6 +805,8 @@ const webExtCompile = gulp.series( ...@@ -803,6 +805,8 @@ const webExtCompile = gulp.series(
webCompile, webCompile,
webExtCopyFiles webExtCopyFiles
); );
// note : Do not call config, to keep same config between web and webExt artifacts
const webExtBuild = gulp.series( const webExtBuild = gulp.series(
webExtCompile, webExtCompile,
webExtensionZip, webExtensionZip,
......
...@@ -98,9 +98,8 @@ mkdir -p ${DIST_ANDROID} || exit 1 ...@@ -98,9 +98,8 @@ mkdir -p ${DIST_ANDROID} || exit 1
rm -rf ${DIST_ANDROID}/*.apk || exit 1 rm -rf ${DIST_ANDROID}/*.apk || exit 1
rm -rf ${ANDROID_OUTPUT_APK_RELEASE}/*.apk || exit 1 rm -rf ${ANDROID_OUTPUT_APK_RELEASE}/*.apk || exit 1
. scripts/build-android.sh --release . scripts/build-android.sh --release
if [[ $? -ne 0 ]]; then [[ $? -ne 0 ]] && exit 1
exit 1
fi
APK_RELEASE_FILE="${ANDROID_OUTPUT_APK_RELEASE}/android-release.apk" APK_RELEASE_FILE="${ANDROID_OUTPUT_APK_RELEASE}/android-release.apk"
if [[ ! -f "${APK_RELEASE_FILE}" ]]; then if [[ ! -f "${APK_RELEASE_FILE}" ]]; then
echo "ERROR: Missing android artifact at ${APK_RELEASE_FILE}" echo "ERROR: Missing android artifact at ${APK_RELEASE_FILE}"
...@@ -115,8 +114,10 @@ echo "- Building web and extension artifacts..." ...@@ -115,8 +114,10 @@ echo "- Building web and extension artifacts..."
echo "----------------------------------" echo "----------------------------------"
cd ${PROJECT_DIR} || exit 1 cd ${PROJECT_DIR} || exit 1
# Run web build # Gnerate config (only once, to keep same config if web and web-extension artifacts)
gulp config --env default gulp config --env default
# Run web build
gulp webBuild --release gulp webBuild --release
[[ $? -ne 0 ]] && exit 1 [[ $? -ne 0 ]] && exit 1
......
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