diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..05688d1 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,32 @@ +sudo: required +language: node_js +node_js: + - "10" +dist: trusty + +before_install: + - sudo apt-get -qq update + +install: + - sudo apt-get install p7zip-full + - npm install -g asar + +before_script: + - wget https://dl.google.com/chat/latest/InstallHangoutsChat.dmg + - 7z x InstallHangoutsChat.dmg + - mkdir t + - sudo mount -oloop *.hfs t + +script: + - ./generate_patch.sh t/Chat.app/Contents/Resources/electron.asar + +deploy: + provider: releases + api_key: $TOKEN + file: + - "out/slacktheme/electron.asar" + - "out/slacktheme/gmonkeyscript.js" + skip-cleanup: true + on: + tags: true + name: Release $TRAVIS_TAG $(date +'%d.%m.%Y') diff --git a/README.md b/README.md index b15c411..a0436cf 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,8 @@ Installing from official release files - Download the latest release from the 'releases' section: https://github.com/paveyry/Slack-Theme-for-Hangouts-Chat/releases -- For the electron client: replace the official `electron.asar` with the patched one: +- For the electron client: open the client at least once, then replace the official +`electron.asar` with the patched one: `C:\Users\\AppData\Local\Google\Hangouts Chat\resources` on Windows, `/Applications/Chat.app/Contents/Resources` on macOS - For the browser script, just paste the script in your greasemonkey or tampermonkey extension