Skip to content

Commit

Permalink
Updated Chrome Beta gulp build, added link to approved Snap Links Bet…
Browse files Browse the repository at this point in the history
…a for Chrome.
  • Loading branch information
Clint Priest committed Mar 9, 2018
1 parent e4d0fc6 commit e0b12a9
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ If you have any questions or trouble getting things up and running, please feel

[MozBeta]: https://addons.mozilla.org/en-US/firefox/addon/snaplinksplus/versions/beta
[MozRelease]: https://addons.mozilla.org/en-US/firefox/addon/snaplinksplus/
[ChromeBeta]: #
[ChromeBeta]: https://chrome.google.com/webstore/detail/snap-links-beta/ikglmligndmabebhnicldebpekldnabm?authuser=1
[ChromeRelease]: #
[FF16]: https://cdnjs.cloudflare.com/ajax/libs/browser-logos/45.3.0/firefox/firefox_16x16.png
[FF48]: https://cdnjs.cloudflare.com/ajax/libs/browser-logos/45.3.0/firefox/firefox_48x48.png
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ The reasons behind this are simple, [electrolysis](https://wiki.mozilla.org/Elec
 
# Installing

| **Channel** | ![FireFox][FF48] | ![Chrome][CH48] |
|:----------------:|:----------------------:|:---------------:|
| Release / Stable | [Download][MozRelease] | *Coming Soon* |
| Beta / Latest | [Download][MozBeta] | *Coming Soon* |
| **Channel** | ![FireFox][FF48] | ![Chrome][CH48] |
|:----------------:|:---------------------:|:---------------------:|
| Release / Stable | [Install][MozRelease] | *Coming Soon* |
| Beta / Latest | [Install][MozBeta] | [Install][ChromeBeta] |

Choose either Release or Beta channels for your browser and click the download link.

Expand Down Expand Up @@ -71,7 +71,7 @@ Please see the [Contributing](Contributing.md) document.

[MozBeta]: https://addons.mozilla.org/en-US/firefox/addon/snaplinksplus/versions/beta
[MozRelease]: https://addons.mozilla.org/en-US/firefox/addon/snaplinksplus/
[ChromeBeta]: #
[ChromeBeta]: https://chrome.google.com/webstore/detail/snap-links-beta/ikglmligndmabebhnicldebpekldnabm?authuser=1
[ChromeRelease]: #
[FF16]: https://cdnjs.cloudflare.com/ajax/libs/browser-logos/45.3.0/firefox/firefox_16x16.png
[FF48]: https://cdnjs.cloudflare.com/ajax/libs/browser-logos/45.3.0/firefox/firefox_48x48.png
Expand Down
1 change: 0 additions & 1 deletion docs/google937e0dd983cca023.html

This file was deleted.

43 changes: 42 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,15 @@ const Chrome = {
}
};

const ChromeBeta = {
SecureDataPath: './insecure/Chrome',
BuildPath: './build/chrome_beta',
BuildData: {
ChromeBeta: true,
quad_version: PackageData.version.replace(/[^\d.]+/g, '.')
}
};

const FireFox = {
BuildPath: './build/ff',
BuildData: {
Expand Down Expand Up @@ -121,7 +130,7 @@ gulp.task('lib', ['clean'], () =>

gulp.task('build:tmp', Array.from(TaskGlobs.keys()));

gulp.task('build', ['chrome', 'ff']);
gulp.task('build', ['chrome', 'ff', 'chrome_beta']);

gulp.task('default', ['build'], () => {
// gulp.watch(SourceFiles, watchOpts, ['src']);
Expand Down Expand Up @@ -177,6 +186,38 @@ gulp.task('chrome:package', ['chrome'], () => {
npx(`crx pack ${Chrome.BuildPath} -o ./artifacts/SnapLinks-${Chrome.BuildData.quad_version}.crx -p ${SigningFilepath}`);
});

/**
* Chrome Beta Building Tasks
*/

gulp.task('chrome_beta', ['build:tmp'], (cb) =>
sequence(
'chrome_beta:clean',
'chrome_beta:copy-tmp',
'chrome_beta:manifest',
cb
)
);

gulp.task('chrome_beta:clean', () => del(ChromeBeta.BuildPath));
gulp.task('chrome_beta:copy-tmp', () =>
gulp.src('./build/tmp/**')
.pipe(gulp.dest(ChromeBeta.BuildPath))
);

gulp.task('chrome_beta:manifest', () =>
gulp.src('src/templates/manifest.hbs')
.pipe(
hb()
.data('./package.json')
.data(ChromeBeta.BuildData)
)
.pipe(rename({
extname: '.json',
}))
.pipe(gulp.dest(ChromeBeta.BuildPath))
);


/**
* Firefox Building Tasks
Expand Down

0 comments on commit e0b12a9

Please sign in to comment.