Skip to content

Commit

Permalink
repo: add travis-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
paveyry committed Jul 23, 2019
1 parent 5a2853b commit d51359d
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
32 changes: 32 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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')
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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\<username>\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
Expand Down

0 comments on commit d51359d

Please sign in to comment.