Skip to content

Commit 132b4aa

Browse files
committed
[fix] Release: Fix extension sign return (do not exist when submit failed, because it's a normal exit status)
[enh] Release: allow to exclude windows asset, when building desktop
1 parent 19274b2 commit 132b4aa

File tree

7 files changed

+20
-5
lines changed

7 files changed

+20
-5
lines changed

doc/feed/feed-fr.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"id": "https://cesium.app",
3030
"url": "https://cesium.app",
3131
"image": "https://cesium.app/i18n/fr_FR/contents/accueil/Cesium-G1-maquette.png",
32-
"content_html": "<p><ul><li>Vous aimeriez vous inscrire à la Ğ1 (<i>June</i>), mais vous ne savez pas comment vous y prendre ?</li><li>Vous voulez savoir <b>comment utiliser</b> Cesium depuis votre smartphone ou ordinateur ?</li><li>On vous a dit que Cesium faisait aussi le café (en plus de gérer votre portefeuille en monnaie libre), mais vous n'en êtes pas sûr ? :-)</li></ul></p><p>Tutos, téléchargements, documentation: tout est désormais accessible depuis le <b>site officiel</b> : <b>https://cesium.app</b> !</p>"
32+
"content_html": "<p><ul><li>Vous aimeriez vous inscrire à la Ğ1 (<i>June</i>), mais vous ne savez pas comment vous y prendre ?</li><li>Vous voulez savoir <b>comment utiliser</b> Cesium depuis votre smartphone ou ordinateur ?</li><li>On vous a dit que Cesium faisait aussi le café (en plus de gérer votre portefeuille en monnaie libre), mais vous n'en êtes pas sûr ? :-)</li></ul></p><p>Tutos, téléchargements, documentation: tout est désormais accessible depuis le <b>site officiel</b> : <a href=\"https://cesium.app\">https://cesium.app</a> !</p>"
3333
}
3434
]
3535
}

hooks/after_prepare/050_clean_unused_directories.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ if (rootdir && !skip) {
3333

3434
// Clean unused directories
3535
del.sync([
36+
path.join(wwwPath, 'api'),
3637
path.join(wwwPath, 'i18n'),
3738
path.join(wwwPath, 'js'),
3839
path.join(wwwPath, 'templates'),

platforms/android

Submodule android updated from 1b4d4be to 4317369

scripts/release-desktop.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,14 @@ cd "${PROJECT_DIR}/dist/desktop"
5454
# Fetch last updates
5555
git fetch origin && git merge origin/master || exit 1
5656

57+
### Skip windows assets (workaround because it often failed)
58+
if [[ "${DESKTOP_ASSETS}" == "linux" ]]; then
59+
60+
echo "Skipping windows assets, because DESKTOP_ASSETS env was set to 'linux'."
61+
EXPECTED_ASSETS="${PROJECT_NAME}-desktop-v$current-linux-x64.deb
62+
${PROJECT_NAME}-desktop-v$current-linux-x64.tar.gz"
63+
fi
64+
5765
# Build desktop assets
5866
./release.sh $current
5967
if [[ $? -ne 0 ]]; then

scripts/release-sign-extension.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ case "$1" in
4646
rel)
4747
web-ext sign "--api-key=${AMO_JWT_ISSUER}" "--api-secret=${AMO_JWT_SECRET}" "--source-dir=${PROJECT_DIR}/dist/web/ext" "--artifacts-dir=${PROJECT_DIR}/dist/web/build" --id=${WEB_EXT_ID} --channel=listed
4848
if [[ $? -ne 0 ]]; then
49-
exit 1
49+
# Comment out, because always failed with message:
50+
# "Your add-on has been submitted for review. It passed validation but could not be automatically signed because this is a listed add-on."
51+
#exit 1
5052
fi
5153
;;
5254
*)

scripts/release-to-github.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ fi
119119
# Upload web extension (ZIP) file
120120
WEB_EXT_ZIP_BASENAME="${PROJECT_NAME}-v$current-extension.zip"
121121
WEB_EXT_ZIP_FILE="${DIST_WEB}/${WEB_EXT_ZIP_BASENAME}"
122-
if [[ -f "${WEB_EXT_FILE}" ]]; then
122+
if [[ -f "${WEB_EXT_ZIP_FILE}" ]]; then
123123
result=$(curl -s -H ''"$GITHUT_AUTH"'' -H 'Content-Type: application/zip' -T "${WEB_EXT_ZIP_FILE}" "${upload_url}?name=${WEB_EXT_ZIP_BASENAME}")
124124
browser_download_url=$(echo "$result" | grep -P "\"browser_download_url\":[ ]?\"[^\"]+" | grep -oP "\"browser_download_url\":[ ]?\"[^\"]+" | grep -oP "https://[A-Za-z0-9/.-]+")
125125
WEB_EXT_ZIP_SHA256=$(cd ${DIST_WEB} && sha256sum "${WEB_EXT_ZIP_BASENAME}")
@@ -157,8 +157,8 @@ SHA_BASENAME=${PROJECT_NAME}-v$current.sha256
157157
SHA_FILE=${PROJECT_DIR}/dist/${SHA_BASENAME}
158158
echo "${WEB_SHA256}" > ${SHA_FILE}
159159
echo "${WEB_EXT_ZIP_SHA256}" >> ${SHA_FILE}
160-
echo "${WEB_EXT_XPI_SHA256}" >> ${SHA_FILE}
161160
echo "${APK_SHA256}" >> ${SHA_FILE}
161+
echo "${WEB_EXT_XPI_SHA256}" >> ${SHA_FILE}
162162
result=$(curl -s -H ''"$GITHUT_AUTH"'' -H 'Content-Type: text/plain' -T "${SHA_FILE}" "${upload_url}?name=${SHA_BASENAME}")
163163

164164
### Success message

scripts/release.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,15 @@ echo "----------------------------------"
110110
echo "- Building web and extension artifacts..."
111111
echo "----------------------------------"
112112
cd ${PROJECT_DIR} || exit 1
113+
114+
# Run web build
113115
gulp config --env default
114116
gulp webBuild --release
115117
if [[ $? -ne 0 ]]; then
116118
exit 1
117119
fi
120+
121+
# check files exists
118122
DIST_WEB_FILE="${DIST_WEB}/${PROJECT_NAME}-v$2-web.zip"
119123
if [[ ! -f "${DIST_WEB_FILE}" ]]; then
120124
echo "ERROR: Missing web artifact at ${DIST_WEB_FILE}"

0 commit comments

Comments
 (0)