mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-15 14:20:38 +08:00
1f2370c2a9
Summary: build-client, aka packaging, aka bundling is now separate from uploading. This is both to compartmentalize our tasks a bit more and so we can add a non-grunt windows task inbetween packaging and uploading. No more heavily-overloaded PUBLISH_BUILD flag. Added SIGN_BUILD flag instead. No more TRAVIS and TRAVIS_PULL_REQUEST flag. Test Plan: Manual Reviewers: halla, juan, spang Reviewed By: juan, spang Differential Revision: https://phab.nylas.com/D4208
31 lines
1.1 KiB
JavaScript
31 lines
1.1 KiB
JavaScript
/* eslint import/no-dynamic-require:0 */
|
|
/**
|
|
* NOTE: Due to path issues, this script must be run outside of grunt
|
|
* directly from a powershell command.
|
|
*/
|
|
const path = require('path')
|
|
const createWindowsInstaller = require('electron-winstaller').createWindowsInstaller
|
|
|
|
const appDir = path.join(__dirname, "..");
|
|
const version = require(path.join(appDir, 'package.json')).version;
|
|
|
|
const config = {
|
|
usePackageJson: false,
|
|
outputDirectory: path.join(appDir, 'dist'),
|
|
appDirectory: path.join(appDir, 'dist', 'nylas-win32-ia32'),
|
|
loadingGif: path.join(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: "Nylas Mail",
|
|
version: version,
|
|
title: "nylas",
|
|
authors: 'Nylas Inc.',
|
|
setupIcon: path.join(appDir, 'build', 'resources', 'win', 'nylas.ico'),
|
|
setupExe: 'NylasMailSetup.exe',
|
|
exe: 'nylas.exe',
|
|
name: 'Nylas',
|
|
}
|
|
console.log(config);
|
|
console.log("---> Starting")
|
|
createWindowsInstaller(config, console.log, console.error)
|