Latest Threat ResearchGlassWorm Loader Hits Open VSX via Developer Account Compromise.Details
Socket
Book a DemoInstallSign in
Socket

grunt-electron

Package Overview
Dependencies
Maintainers
2
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-electron

Package Electron apps

latest
Source
npmnpm
Version
13.0.0
Version published
Weekly downloads
170
-19.43%
Maintainers
2
Weekly downloads
 
Created
Source

grunt-electron

Package Electron apps using electron-packager

Issues should be reported on the electron-packager issue tracker.

Please think hard if you really need Grunt for this. A simple vanilla Node.js build script would probably be better.

This is mostly intended for those that have an existing Grunt setup and want to integrate Electron app packaging.

Install

npm install --save-dev grunt-electron

Usage

require('load-grunt-tasks')(grunt); // npm install --save-dev load-grunt-tasks

grunt.initConfig({
	electron: {
		macosBuild: {
			options: {
				name: 'Fixture',
				dir: 'app',
				out: 'dist',
				version: '1.3.5',
				platform: 'darwin',
				arch: 'x64'
			}
		}
	}
});

grunt.registerTask('default', ['electron']);

Options

See the electron-packager options.

In addition you need to supply the name of your app and the dir where your app is located.

Keywords

gruntplugin

FAQs

Package last updated on 30 Apr 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts