Windows Installer


#1

I’m trying to create a Windows installer using the grunt-electron-installer.

I have the following Gruntfile in the root of my app:

module.exports = function(grunt) {
    grunt.loadNpmTasks('grunt-electron-installer');

   // Project configuration.
    grunt.initConfig({
    
        // Load the installation plugin
        'create-windows-installer': {
            appDirectory: 'C:\Users\builder\dev\electron-v0.26.0-win32-x64',
            outputDirectory: 'C:\Users\builder\dev\build',
            authors: 'App Inc.',
            exe: 'mapper.exe'
        }
    });

    grunt.registerTask('default', 'create-windows-installer');
};

The app directory points to the root of the default electron wrapper app and I have an app.asar file within its resources dir.

Everytime I execute the grunt-cli I get a weird error saying that the plugin is not installed even though it is.


#2

i think you don’t install grunt