Skip to content

Commit

Permalink
Merge pull request #306 from tilfinltd/fix/archive-script
Browse files Browse the repository at this point in the history
Update archive script
  • Loading branch information
tilfin authored Oct 15, 2023
2 parents e7a91d0 + 510c05d commit 5e680d6
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion bin/archive.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,29 @@
#--
# archive.sh
#--
zipfile=aws-extend-switch-roles.zip
copydest=$1

cd dist/chrome;
version=`cat manifest.json | jq -r '.version' | sed 's/\./-/g'`
zipfile="aesr-chrome-$version.zip"
\rm $zipfile
zip -r $zipfile \
manifest.json *.html icons/ js/
echo "archived: chrome/$zipfile"
if [ "$copydest" != "" ]; then
\cp $zipfile $copydest
fi

echo "----"

cd ../firefox;
version=`cat manifest.json | jq -r '.version' | sed 's/\./-/g'`
zipfile="aesr-firefox-$version.zip"
\rm $zipfile
zip -r $zipfile \
manifest.json *.html icons/ js/

echo "archived: firefox/$zipfile"
if [ "$copydest" != "" ]; then
\cp $zipfile $copydest
fi

0 comments on commit 5e680d6

Please sign in to comment.