Permalink
Browse files

Add a simple build script, fix Firefox ext to package w/ jpm, update …

…README with dev instructions.
  • Loading branch information...
1 parent 566c47e commit 1b907dcdf41580a0bdb56a8b47690db1d9c4d382 @bhollis bhollis committed Dec 13, 2015
Showing with 47 additions and 6 deletions.
  1. +3 −0 .gitignore
  2. +9 −0 .tern-project
  3. +15 −3 README.md
  4. +16 −0 build.sh
  5. +4 −3 firefox/package.json
View
@@ -0,0 +1,3 @@
+*.xpi
+*.zip
+.tern-port
View
@@ -0,0 +1,9 @@
+{
+ "libs": [
+ "browser",
+ "jquery"
+ ],
+ "plugins": {
+ "chrome-extension": {}
+ }
+}
View
@@ -3,13 +3,25 @@ github-selfies
Add selfies to your pull requests and comments on GitHub!
-[Get it now on the Chrome Web Store!](https://chrome.google.com/webstore/detail/github-selfies/ldnpkdnkgkogfnahcnldaedcoadjbkbl)
+* [Get it now on the Chrome Web Store!](https://chrome.google.com/webstore/detail/github-selfies/ldnpkdnkgkogfnahcnldaedcoadjbkbl)
+* [Also available for Firefox!](https://addons.mozilla.org/en-US/firefox/addon/github-selfies/)
![](http://i.imgur.com/ynB5qov.png)
-## Firefox
+## Developing
-A Firefox version was available at the start of the project but has since become abandonware due to a lack of interest. The code's still in the repo if any intrepid souls should desire to bring it up to speed with the Chrome version.
+First, clone this repository: `git clone https://github.com/thieman/github-selfies`. Then follow the instructions for your given platform. For convenience, you can run `./build.sh` to build and package both the Chrome and Firefox extensions.
+
+### Chrome
+
+1. Enable [Chrome Extensions Developer Mode](https://developer.chrome.com/extensions/faq#faq-dev-01) in Chrome.
+2. In Settings > Extensions click "Load unpacked extension" and select the `chrome/` subfolder of this repository.
+
+### Firefox
+
+1. Install NodeJS.
+2. Install `jpm` (`node install -g jpm`)
+3. Run `jpm run` from within the `firefox/` subfolder of this repository.
## Awesome contributors
View
@@ -0,0 +1,16 @@
+#!/usr/bin/env bash
+
+# Create the Chrome extension
+rm -f github-selfies-chrome.zip
+pushd chrome
+zip ../github-selfies-chrome.zip *
+popd
+
+# Create the Firefox extension
+which node || (echo "You need to install NodeJS!" && exit)
+which jpm || (echo "You need to install JPM! (npm install -g jpm)" && exit)
+rm -f github-selfies-firefox.xpi
+pushd firefox
+jpm xpi
+popd
+mv firefox/*.xpi github-selfies-firefox.xpi
@@ -1,9 +1,10 @@
{
"name": "github-selfies",
"title": "GitHub Selfies",
- "id": "jid1-CYSMA1UvadIZSw",
+ "id": "jid1-CYSMA1UvadIZSw@jetpack",
"description": "Selfies! For GitHub! Hooray!",
"author": "Travis Thieman",
- "license": "MPL 2.0",
- "version": "1.2"
+ "license": "MIT",
+ "version": "1.9.3",
+ "main": "lib/main.js"
}

0 comments on commit 1b907dc

Please sign in to comment.