Mailspring/build/tasks/installer-windows-task.js
Jackie Luo 78a7388318 🎨(rename): Update Nylas N1 to Nylas Mail
Test Plan: Tested locally.

Reviewers: halla, juan, evan

Reviewed By: juan, evan

Differential Revision: https://phab.nylas.com/D3645
2017-01-12 12:05:44 -08:00

29 lines
1.1 KiB
JavaScript

const path = require('path');
module.exports = (grunt) => {
const appPackageJSON = grunt.config('appJSON');
grunt.config.merge({
'create-windows-installer': {
ia32: {
usePackageJson: false,
outputDirectory: path.join(grunt.config('appDir'), 'dist'),
appDirectory: path.join(grunt.config('appDir'), 'dist', 'nylas-win32-ia32'),
loadingGif: path.join(grunt.config('appDir'), 'build', 'resources', 'win', 'loading.gif'),
iconUrl: 'http://edgehill.s3.amazonaws.com/static/nylas.ico',
certificateFile: process.env.CERTIFICATE_FILE,
certificatePassword: process.env.WINDOWS_CODESIGN_KEY_PASSWORD,
description: appPackageJSON.description,
version: appPackageJSON.version,
title: appPackageJSON.productName,
authors: 'Nylas Inc.',
setupIcon: path.join(grunt.config('appDir'), 'build', 'resources', 'win', 'nylas.ico'),
setupExe: 'NylasMailSetup.exe',
exe: 'nylas.exe',
name: 'Nylas',
},
},
});
grunt.loadNpmTasks('grunt-electron-installer');
}