@@ -2,6 +2,7 @@ var gulp = require('gulp-help')(require('gulp')),
22 jshint = require ( 'gulp-jshint' ) ,
33 gutil = require ( 'gulp-util' ) ,
44 inject = require ( 'gulp-inject' ) ,
5+ env = require ( 'gulp-env' ) ,
56 shell = require ( 'gulp-shell' ) ,
67 sourcemaps = require ( 'gulp-sourcemaps' ) ,
78 sass = require ( 'gulp-sass' ) ,
@@ -36,12 +37,16 @@ var allSrcFiles = [
3637 'bower_components/**/*'
3738 ] ,
3839 // The selfSigned certificate used to compile the extension
39- certPath = path . join ( './bin' , 'testCert .p12' ) ,
40+ certPath = path . join ( './bin' , 'TestCert .p12' ) ,
4041 // The path and name of the compiled ZXP file
41- zxpPath = path . join ( './build' , 'test .zxp' ) ,
42+ zxpPath = path . join ( './build' , 'universalimages .zxp' ) ,
4243 // The path to the zxpSignCmd binary
4344 binPath = path . join ( './bin' , 'ZXPSignCmd' ) ;
4445
46+ env ( {
47+ file : '.env'
48+ } ) ;
49+
4550gulp . task ( 'hint' , 'Run JSHint against your project files' , function ( ) {
4651 return gulp . src ( allSrcFiles )
4752 . pipe ( jshint ( ) )
@@ -87,12 +92,12 @@ gulp.task('watch', 'Build based on file changes', function () {
8792gulp . task ( 'cert' , 'Create a signing cert for your extension' , shell . task ( [
8893 InsertSpaces ( binPath ,
8994 '-selfSignedCert' ,
90- 'US ' ,
95+ 'CH ' ,
9196 'NA' ,
9297 'company' ,
93- 'test ' ,
94- '01189998819991197253 ' ,
95- path . join ( './bin' , 'testCert.p12' ) )
98+ 'Universalimages ' ,
99+ '"' + process . env . TEST_CERT_PW + '" ',
100+ certPath )
96101] ) ) ;
97102
98103gulp . task ( 'build' , 'Compile the bundled ZXP' , function ( cb ) {
@@ -124,7 +129,9 @@ gulp.task('build:compile', false, shell.task([
124129 './dist' ,
125130 zxpPath ,
126131 certPath ,
127- '01189998819991197253' )
132+ '"' + process . env . TEST_CERT_PW + '"'
133+ // '-tsa http://tsa.safecreative.org'
134+ )
128135] ) ) ;
129136
130137function InsertSpaces ( ) {
0 commit comments