Skip to content

Commit

Permalink
repo: fix chrome extension and add it again to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
paveyry committed May 1, 2021
1 parent afe7ed4 commit dcb6f26
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ install:
script:
- ./generate_patch.sh
- cd out/slacktheme/firefox && 7z a -tzip firefox-slack.zip * && cd ../../..
- cd out/slacktheme && mv firefox chrome-slack && 7z a -tzip chrome-slack.zip chrome-slack && cd ../..
- cd out/slacktheme && mv chrome chrome-slack && 7z a -tzip chrome-slack.zip chrome-slack && cd ../..
- cd out/ghctheme/firefox && 7z a -tzip firefox-ghc.zip * && cd ../../..
- cd out/ghctheme && mv firefox chrome-ghc && 7z a -tzip chrome-ghc.zip chrome-ghc && cd ../..
- cd out/ghctheme && mv chrome chrome-ghc && 7z a -tzip chrome-ghc.zip chrome-ghc && cd ../..
- cd out/darktheme/firefox && 7z a -tzip firefox-dark.zip * && cd ../../..
- cd out/darktheme && mv firefox chrome-dark && 7z a -tzip chrome-dark.zip chrome-dark && cd ../..
- cd out/darktheme && mv chrome chrome-dark && 7z a -tzip chrome-dark.zip chrome-dark && cd ../..
- cp out/slacktheme/gmonkeyscript.js out/gmonkeyscript-slack.js
- cp out/ghctheme/gmonkeyscript.js out/gmonkeyscript-ghc.js
- cp out/darktheme/gmonkeyscript.js out/gmonkeyscript-dark.js
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ Installing from official release files
- Open it with Firefox to install the extension and follow the instructions.
- Enjoy

<!--- ### Using the Chrome extension (not signed by Google)
### Using the Chrome extension (not signed by Google)

- Download the `chrome-<color>.zip` file of your choice from the 'releases' section: <https://github.com/paveyry/better-hangoutschat/releases>
- Unzip the archive
- In Chrome, open <chrome://extensions>
- Click "Developer mode" at the top right-hand corner
- Click "Load unpacked" and select the directory extracted from the zip archive
- Enjoy -->
- Enjoy

### Using the javascript snippet with Tampermonkey/Greasemonkey

Expand Down
4 changes: 4 additions & 0 deletions generate_patch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ generateFiles() {
cp "$PLUGIN" $2/firefox/plugin.js
mkdir -p "$2/firefox/icons"
cp browser_extensions/icon.png "$2/firefox/icons/icon.png"

cp -r "$2/firefox" "$2/chrome"
cat "$2/chrome/color.css" | sed -E 's/!important;$/;/g' | sed -E 's/;$/!important;/g' > "$2/chrome/color.css"
cat "$2/chrome/shape.css" | sed -E 's/!important;$/;/g' | sed -E 's/;$/!important;/g' > "$2/chrome/shape.css"
}

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

0 comments on commit dcb6f26

Please sign in to comment.