Skip to content

Commit 7adbe96

Browse files
committed
Auto-deploy after Chromium package is ready.
1 parent 8e80125 commit 7adbe96

1 file changed

Lines changed: 20 additions & 18 deletions

File tree

build.sh

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -141,24 +141,6 @@ build() {
141141

142142
build
143143

144-
SIGNED="$XPI_DIR/noscript_security_suite-$VER-an+fx.xpi"
145-
if [ -f "$SIGNED" ]; then
146-
mv "$SIGNED" "$XPI.xpi"
147-
../../we-publish "$XPI.xpi"
148-
elif [ -f "$XPI.zip" ]; then
149-
if unzip -l "$XPI.xpi" | grep "META-INF/mozilla.rsa" >/dev/null 2>&1; then
150-
echo "A signed $XPI.xpi already exists, not overwriting."
151-
else
152-
[[ "$VER" == *rc* ]] && xpicmd="mv" || xpicmd="cp"
153-
$xpicmd "$XPI.zip" "$XPI$DBG.xpi"
154-
echo "Created $XPI$DBG.xpi"
155-
fi
156-
else
157-
echo >&2 "ERROR: Could not create $XPI$DBG.xpi!"
158-
exit 3
159-
fi
160-
ln -fs $XPI.xpi "$BASE/latest.xpi"
161-
162144
# create Chromium pre-release
163145

164146
BUILD_CMD="$CHROMIUM_BUILD_CMD"
@@ -201,3 +183,23 @@ if [ -f "$CHROME_ZIP" ]; then
201183
fi
202184

203185
mv "$BUILD" "$CHROMIUM_UNPACKED"
186+
187+
# Cleanup and publish
188+
189+
SIGNED="$XPI_DIR/noscript_security_suite-$VER-an+fx.xpi"
190+
if [ -f "$SIGNED" ]; then
191+
mv "$SIGNED" "$XPI.xpi"
192+
../../we-publish "$XPI.xpi"
193+
elif [ -f "$XPI.zip" ]; then
194+
if unzip -l "$XPI.xpi" | grep "META-INF/mozilla.rsa" >/dev/null 2>&1; then
195+
echo "A signed $XPI.xpi already exists, not overwriting."
196+
else
197+
[[ "$VER" == *rc* ]] && xpicmd="mv" || xpicmd="cp"
198+
$xpicmd "$XPI.zip" "$XPI$DBG.xpi"
199+
echo "Created $XPI$DBG.xpi"
200+
fi
201+
else
202+
echo >&2 "ERROR: Could not create $XPI$DBG.xpi!"
203+
exit 3
204+
fi
205+
ln -fs $XPI.xpi "$BASE/latest.xpi"

0 commit comments

Comments
 (0)