npm install --save gulp-atom-electron
var gulp = require('gulp');
var electron = require('gulp-atom-electron');
gulp.task('default', function () {
return gulp.src('src/**')
.pipe(electron({
version: '0.19.4',
platform: 'darwin'
}))
.pipe(electron.zfsdest('app.zip'));
});
You must provide the following options:
version
- the Electron version to useplatform
- kind of OS (darwin
,linux
,win32
)
The following options are optional:
-
token
- GitHub access token(to avoid request limit. You can grab it here) -
arch
- the processor architecture (ia32
,x64
) -
Windows
winIcon
- path to an.ico
filecompanyName
- company namecopyright
- copyright statement
-
Darwin
darwinIcon
- path to an.icns
filedarwinBundleDocumentTypes
- (reference) array of dictionaries, each containing the following structure:name
- theCFBundleTypeName
valuerole
- theCFBundleTypeRole
valueostypes
- theCFBundleTypeOSTypes
value, astring
arrayextensions
- theCFBundleTypeExtensions
value, astring
array of file extensionsiconFile
- theCFBundleTypeIconFile
value