From 2d97661d2866cb16db3efee05ffade9902ce1546 Mon Sep 17 00:00:00 2001 From: Dick Choi Date: Sat, 23 Apr 2016 12:13:57 +0900 Subject: [PATCH] set grunt-electron-installer-debian optional --- gruntfile.js | 6 +++++- package.json | 4 +++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gruntfile.js b/gruntfile.js index e4ab430f..77af564d 100644 --- a/gruntfile.js +++ b/gruntfile.js @@ -2,6 +2,8 @@ const path = require('path') const ChildProcess = require('child_process') const packager = require('electron-packager') +const WIN = process.platform === 'win32' + module.exports = function (grunt) { var auth_code try { @@ -53,7 +55,9 @@ module.exports = function (grunt) { grunt.initConfig(initConfig) grunt.loadNpmTasks('grunt-electron-installer') - grunt.loadNpmTasks('grunt-electron-installer-debian') + if (!WIN) { + grunt.loadNpmTasks('grunt-electron-installer-debian') + } grunt.registerTask('compile', function () { var done = this.async() diff --git a/package.json b/package.json index d7491858..c51fc80f 100644 --- a/package.json +++ b/package.json @@ -60,7 +60,6 @@ "electron-release": "^2.2.0", "grunt": "^0.4.5", "grunt-electron-installer": "^1.2.0", - "grunt-electron-installer-debian": "^0.2.0", "history": "^1.17.0", "nib": "^1.1.0", "react": "^0.14.3", @@ -74,6 +73,9 @@ "webpack": "^1.12.2", "webpack-dev-server": "^1.12.0" }, + "optionalDependencies": { + "grunt-electron-installer-debian": "^0.2.0" + }, "optional": false, "standard": { "ignore": [