Auto-deploy after Chromium package is ready.

This commit is contained in:
hackademix 2022-03-28 10:31:36 +02:00
parent 8e80125dbd
commit 7adbe96c53
1 changed files with 20 additions and 18 deletions

View File

@ -141,24 +141,6 @@ build() {
build build
SIGNED="$XPI_DIR/noscript_security_suite-$VER-an+fx.xpi"
if [ -f "$SIGNED" ]; then
mv "$SIGNED" "$XPI.xpi"
../../we-publish "$XPI.xpi"
elif [ -f "$XPI.zip" ]; then
if unzip -l "$XPI.xpi" | grep "META-INF/mozilla.rsa" >/dev/null 2>&1; then
echo "A signed $XPI.xpi already exists, not overwriting."
else
[[ "$VER" == *rc* ]] && xpicmd="mv" || xpicmd="cp"
$xpicmd "$XPI.zip" "$XPI$DBG.xpi"
echo "Created $XPI$DBG.xpi"
fi
else
echo >&2 "ERROR: Could not create $XPI$DBG.xpi!"
exit 3
fi
ln -fs $XPI.xpi "$BASE/latest.xpi"
# create Chromium pre-release # create Chromium pre-release
BUILD_CMD="$CHROMIUM_BUILD_CMD" BUILD_CMD="$CHROMIUM_BUILD_CMD"
@ -201,3 +183,23 @@ if [ -f "$CHROME_ZIP" ]; then
fi fi
mv "$BUILD" "$CHROMIUM_UNPACKED" mv "$BUILD" "$CHROMIUM_UNPACKED"
# Cleanup and publish
SIGNED="$XPI_DIR/noscript_security_suite-$VER-an+fx.xpi"
if [ -f "$SIGNED" ]; then
mv "$SIGNED" "$XPI.xpi"
../../we-publish "$XPI.xpi"
elif [ -f "$XPI.zip" ]; then
if unzip -l "$XPI.xpi" | grep "META-INF/mozilla.rsa" >/dev/null 2>&1; then
echo "A signed $XPI.xpi already exists, not overwriting."
else
[[ "$VER" == *rc* ]] && xpicmd="mv" || xpicmd="cp"
$xpicmd "$XPI.zip" "$XPI$DBG.xpi"
echo "Created $XPI$DBG.xpi"
fi
else
echo >&2 "ERROR: Could not create $XPI$DBG.xpi!"
exit 3
fi
ln -fs $XPI.xpi "$BASE/latest.xpi"