universal-web-template
Version:
An universal web proejct template - let you quickly set up a project using Handlebars, sass and ReactJS for front-end templating. It can be adopted with most modern CMS.
48 lines (40 loc) • 1.34 kB
JavaScript
/* jshint node: true */
/*
release:executables Task
package in desktop OS executables (.app, .exe, etc)
*/
;
var packager = require('electron-packager'),
electron = require('gulp-electron');
module.exports = function() {
var pkg = this.opts.pkg,
projectName = pkg.name,
appName = pkg.app.name,
version = pkg.version;
return this.gulp.src("")
.pipe(electron({
src: this.opts.config.integrate.root,
packageJson: pkg,
release: this.opts.config.package.app,
cache: this.opts.config.package.cache,
version: 'v0.36.7',
packaging: true,
platforms: ['win32-x64', 'darwin-x64'],
platformResources: {
darwin: {
CFBundleDisplayName: appName,
CFBundleIdentifier: projectName,
CFBundleName: appName,
CFBundleVersion: version,
icon: this.opts.config.source.favicons + '/favicon.ico'
},
win: {
"version-string": version,
"file-version": version,
"product-version": version,
"icon": this.opts.config.source.favicons + '/favicon.ico'
}
}
}))
.pipe(this.gulp.dest(""));
};