summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhackademix2019-04-01 11:56:39 +0200
committerhackademix2019-04-01 12:46:40 +0200
commitcb8337ed1e181bae89fd8262129be59f8961e6e2 (patch)
treeafd186f4517ea411e336974b288735669c79fc57
parenta8b35486571933043bb62e90076436dff2a34cd2 (diff)
downloadnoscript-cb8337ed1e181bae89fd8262129be59f8961e6e2.tar.gz
noscript-cb8337ed1e181bae89fd8262129be59f8961e6e2.tar.xz
noscript-cb8337ed1e181bae89fd8262129be59f8961e6e2.zip
Preserve chromium zip on releases only.
-rw-r--r--build.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/build.sh b/build.sh
index 3db7e2e..42b76be 100644
--- a/build.sh
+++ b/build.sh
@@ -102,13 +102,14 @@ else
WEBEXT_OUT="$XPI_DIR"
fi
-"$BUILD_CMD" $BUILD_OPTS --source-dir="$WEBEXT_IN" --artifacts-dir="$WEBEXT_OUT" --ignore-files=test/XSS_test.js
+"$BUILD_CMD" $BUILD_OPTS --overwrite-dest --source-dir="$WEBEXT_IN" --artifacts-dir="$WEBEXT_OUT" --ignore-files=test/XSS_test.js
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
- cp "$XPI.zip" "$XPI.xpi"
+ [[ "$VER" == *rc* ]] && xpicmd="mv" || xpicmd="cp"
+ $xpicmd "$XPI.zip" "$XPI.xpi"
else
echo >&2 "ERROR: Could not create $XPI.xpi!"
exit 3