-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from XCF-Babble/remove-eval
Fix firefox manifest and add a script for making releases
- Loading branch information
Showing
3 changed files
with
41 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |