Skip to content

Commit

Permalink
Merge pull request #36 from XCF-Babble/remove-eval
Browse files Browse the repository at this point in the history
Fix firefox manifest and add a script for making releases
  • Loading branch information
yvbbrjdr authored Sep 14, 2019
2 parents 7bc7b83 + f272b5b commit 031320c
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 1 deletion.
7 changes: 6 additions & 1 deletion platform/firefox/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,10 @@
"tabs",
"unlimitedStorage",
"<all_urls>"
]
],
"browser_specific_settings": {
"gecko": {
"id": "{f45cc0a0-da01-dfc1-49f9-f68316927e2d}"
}
}
}
23 changes: 23 additions & 0 deletions scripts/bump-version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash
set -euo pipefail

FILES=(
'package.json'
'package-lock.json'
'platform/chromium/manifest.json'
'platform/firefox/manifest.json'
)

function update_version() {
jq ".version = \"$2\"" "$1" | sponge "$1"
}

if [[ "$#" != 1 ]]; then
echo "usage: $0 version"
exit 1
fi

cd "$(dirname "$0")/.."
for file in "${FILES[@]}"; do
update_version "$file" "$1"
done
12 changes: 12 additions & 0 deletions scripts/make-release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/sh
set -euo pipefail

cd "$(dirname "$0")/.."
npm install
npm run build

npm run chromium
zip -r9 babble-chromium.zip assets dist manifest.json

npm run firefox
zip -r9 babble-firefox.zip assets dist manifest.json

0 comments on commit 031320c

Please sign in to comment.