1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46: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()