1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 01:36:22 +00:00

set grunt-electron-installer-debian optional

This commit is contained in:
Dick Choi
2016-04-23 12:13:57 +09:00
parent 3efe0c1ce2
commit 2d97661d28
2 changed files with 8 additions and 2 deletions

View File

@@ -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()

View File

@@ -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": [