Change Safari delivery, update readme

This commit is contained in:
Buu Nguyen 2016-02-23 19:30:21 -08:00
parent 427bb6b0eb
commit 735f57c252
9 changed files with 17 additions and 4 deletions

View File

@ -18,8 +18,13 @@ Browser extensions (Chrome, Firefox, Opera and Safari) to display GitHub and Git
Octotree is not available on the Safari gallery. Instead, you must use the prebuilt package or build one from source.
* Download the [Safari prebuilt package](https://github.com/buunguyen/octotree/tree/master/dist)
* Double-click or drag it to Safari
* Download the [Safari prebuilt package](https://github.com/buunguyen/octotree/tree/master/dist/safari.zip)
* Unzip the package
* Start Safari
* Select `Develop` > `Show Extension Builder`
* Click the `+` button and select `Add Extension...`
* Select the unzipped "octotree.safariextension" directory
* Click `Install`
### Install prebuilt packages (all browsers)

BIN
dist/chrome.crx vendored

Binary file not shown.

BIN
dist/chrome.zip vendored

Binary file not shown.

BIN
dist/firefox.xpi vendored

Binary file not shown.

BIN
dist/opera.nex vendored

Binary file not shown.

BIN
dist/safari.safariextz vendored

Binary file not shown.

BIN
dist/safari.zip vendored Normal file

Binary file not shown.

View File

@ -20,7 +20,7 @@ gulp.task('default', ['build'], () => {
})
gulp.task('dist', ['build'], (cb) => {
$.runSequence('firefox:xpi', 'chrome:zip', 'chrome:crx', 'opera:nex', cb)
$.runSequence('firefox:xpi', 'chrome:zip', 'chrome:crx', 'opera:nex', 'safari:zip', cb)
})
gulp.task('test', ['build'], (cb) => {
@ -140,6 +140,14 @@ gulp.task('safari', ['safari:js'], () => {
)
})
gulp.task('safari:zip', () => {
return pipe(
'./tmp/safari/**/*',
$.zip('safari.zip'),
'./dist/'
)
})
// Helpers
function pipe(src, ...transforms) {
return transforms.reduce((stream, transform) => {

View File

@ -42,7 +42,7 @@
"gulp-run": "^1.6.4",
"gulp-run-sequence": "*",
"gulp-util": "^2.2.20",
"gulp-zip": "^2.0.1",
"gulp-zip": "^2.0.3",
"jpm": "^1.0.4",
"map-stream": "*",
"mocha": "2.0.1",