-
Go to oracle.com, accept the license, download the Linux .tar.gz file.
-
Extract the file in the Hatch root directory and link it into place.
$ tar -zxf jdk*tar.gz
$ ln -s jdk1.8* jdk1.8
Note
|
We may some day use openjdk, but its JavaFX libs are not ready for prime time as of writing. |
$ mkdir -p lib
$ cd lib
$ wget -O json-20160810.jar \
'https://search.maven.org/remotecontent?filepath=org/json/json/20160810/json-20160810.jar'
$ cd ../
Edit extension/app/manifest.json and change the "eg-dev-local" value found here to the hostname of your Evergreen server.
...
"externally_connectable": {
"matches": ["*://eg-dev-local/*"]
}
...
Note
|
At time of writing, the Evergreen server used must have the patches included in the Hatch Native Messaging working branch. |
-
Open Chrome and navigate to chrome://extensions
-
Enable "Developer Mode" along the top right of the page.
-
Click the "Load Unpacked Extension…" button.
-
Load the directory at Hatch/extension/app
-
Click the "Background Page" link to see the exension console.
-
Use the "Reload" link to apply changes made to the extension (e.g. main.js).
Edit extension/host/org.evergreen_ils.hatch.json and change the "path" value to match the location of your copy of "start-hatch", found in the root directory of the Hatch repository.
...
"path": "/home/berick/code/Hatch/start-hatch",
...
Copy the host file into Chrome’s configuration directory.
For Chrome:
$ mkdir -p ~/.config/google-chrome/NativeMessagingHosts/
$ cp extension/host/org.evergreen_ils.hatch.json ~/.config/google-chrome/NativeMessagingHosts/
For Chromium:
$ mkdir -p ~/.config/chromium/NativeMessagingHosts/
$ cp extension/host/org.evergreen_ils.hatch.json ~/.config/chromium/NativeMessagingHosts/