diff --git a/zip.sh b/zip.sh index a0d3ecc3..8ede68fb 100644 --- a/zip.sh +++ b/zip.sh @@ -1,6 +1,15 @@ -#!/bin/sh -cd ./dist - -web-ext build --overwrite-dest - -cd .. +#!/bin/sh +echo adding to git +git commit -am "commit before tentative release." +rm -rf ./web-ext-artifacts +echo rebuilding web extension... +npm run clean-build +echo building web extension... +cd ./dist +web-ext build --overwrite-dest +mv ./web-ext-artifacts ../ +cd .. +echo compressing source.. +git archive -o source.zip HEAD +mv ./source.zip ./web-ext-artifacts +echo done