Skip to content

Commit

Permalink
browser: manifest: fix chrome warning about firefox fields
Browse files Browse the repository at this point in the history
  • Loading branch information
paveyry committed May 9, 2023
1 parent d997b94 commit 9c0b923
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
20 changes: 20 additions & 0 deletions browser_extensions/chrome_manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"manifest_version": 2,
"name": "Better Hangouts Chat - COLOR",
"version": "VERSION",
"homepage_url": "https://github.com/paveyry/better-hangoutschat",
"description": "Themes and Thread Links in Google Hangouts Chat",

"icons": {
"48": "icons/icon.png"
},

"content_scripts": [
{
"matches": ["*://chat.google.com/*", "*://mail.google.com/chat/*"],
"all_frames": true,
"js": ["plugin.js"],
"css": ["shape.css", "color.css"]
}
]
}
3 changes: 2 additions & 1 deletion generate_patch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ generateFiles() {

VERSION="$(git tag | tail -n 1 | cut -c2-)"
mkdir -p "$2/firefox"
cat browser_extensions/firefox_manifest.json | sed "s/VERSION/$VERSION/g" | sed "s/COLOR/$3/g" > $2/firefox/manifest.json
cp css/shape.css $2/firefox/
[ -z $1 ] && touch $2/firefox/color.css || cp "css/$1" $2/firefox/color.css
cp "$PLUGIN" $2/firefox/plugin.js
Expand All @@ -35,6 +34,8 @@ generateFiles() {
mv "$2/firefox/shape2.css" "$2/firefox/shape.css" && mv "$2/firefox/color2.css" "$2/firefox/color.css"

cp -r "$2/firefox" "$2/chrome"
cat browser_extensions/firefox_manifest.json | sed "s/VERSION/$VERSION/g" | sed "s/COLOR/$3/g" > $2/firefox/manifest.json
cat browser_extensions/chrome_manifest.json | sed "s/VERSION/$VERSION/g" | sed "s/COLOR/$3/g" > $2/chrome/manifest.json
}

generateFiles "color_slack.css" "out/slacktheme" "Slack"
Expand Down

0 comments on commit 9c0b923

Please sign in to comment.