diff --git a/.travis.yml b/.travis.yml index 9c09804..e268eeb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/README.md b/README.md index c076b3d..1c44098 100644 --- a/README.md +++ b/README.md @@ -35,14 +35,14 @@ Installing from official release files - Open it with Firefox to install the extension and follow the instructions. - Enjoy - +- Enjoy ### Using the javascript snippet with Tampermonkey/Greasemonkey diff --git a/generate_patch.sh b/generate_patch.sh index 2e0a153..8dcdc19 100755 --- a/generate_patch.sh +++ b/generate_patch.sh @@ -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"