Skip to content

Commit

Permalink
Fix Chrome extension version number.
Browse files Browse the repository at this point in the history
It was wrong because we did not use the modified files in tmp/
Also rename the unsigned Firefox extensions as .zip instead of .xpi
  • Loading branch information
mossroy committed Jun 2, 2017
1 parent 5d019dc commit 7fb1dd2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion scripts/package_chrome_extension.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ while getopts tdv: option; do
done

echo "Packaging unsigned Chrome extension, version $VERSION"
zip -r build/kiwix-chrome-unsigned-extension-$VERSION.zip www webextension manifest.json LICENSE-GPLv3.txt service-worker.js README.md
cd tmp
zip -r ../build/kiwix-chrome-unsigned-extension-$VERSION.zip www webextension manifest.json LICENSE-GPLv3.txt service-worker.js README.md
cd ..
if [ "${TAG}zz" == "zz" ]; then
# Package the extension with Chromium, if we're not packaging a public version
echo "Signing the extension for Chrome with a local Chromium, version $VERSION"
Expand Down
4 changes: 2 additions & 2 deletions scripts/package_firefox_extension.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ fi
cd tmp
if [ "${TAG}zz" == "zz" ]; then
echo "Packaging unsigned Firefox extension, version $VERSION"
zip -r ../build/kiwix-firefox-unsigned-extension-$VERSION.xpi www webextension manifest.json LICENSE-GPLv3.txt service-worker.js README.md
zip -r ../build/kiwix-firefox-unsigned-extension-$VERSION.zip www webextension manifest.json LICENSE-GPLv3.txt service-worker.js README.md

if [ "${DRYRUN}zz" == "zz" ]; then
# Sign the extension with the Mozilla API through web-ext, if we're not packaging a public version
Expand Down Expand Up @@ -56,6 +56,6 @@ else
sed -i -e "s/[email protected]/[email protected]/" manifest.json

echo "Packaging unsigned 'listed' Firefox extension, version $VERSION"
zip -r ../build/kiwix-firefox-unsigned-listed-extension-$VERSION.xpi www webextension manifest.json LICENSE-GPLv3.txt service-worker.js README.md
zip -r ../build/kiwix-firefox-unsigned-listed-extension-$VERSION.zip www webextension manifest.json LICENSE-GPLv3.txt service-worker.js README.md
echo "This unsigned extension must be manually uploaded to Mozilla to be signed and distributed from their store"
fi

0 comments on commit 7fb1dd2

Please sign in to comment.