grunt-electron-builder
Grunt plugin to build your electron app
Getting Started
This plugin requires Grunt ~0.4.5
npm install grunt-electron-builder --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt.loadNpmTasks('grunt-electron-builder');
Important note:
The plugin actually only build for Linux and Windows electron app. Mac support should come soon.
The "electron_builder" task
Overview
In your project's Gruntfile, add a section named electron_builder
to the data object passed into grunt.initConfig()
.
grunt.initConfig({
electron_builder: {
options: {
appName: 'My appName',
dest: './build',
src: __dirname+'/app',
platforms: ['linux-x64']
},
your_target: {
},
},
});
Usage Examples
electron_builder: {
options: {
appName: 'My awesome Electron app'
},
dist: {
options: {
src: __dirname+'/app/',
dest: './build',
platforms: ['win32-x64']
}
},
},