1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

Merge pull request #10 from brpaz/linux

Add support for creating .deb file on linux
This commit is contained in:
Dick Choi
2016-04-04 06:28:23 +09:00
2 changed files with 21 additions and 0 deletions

View File

@@ -29,10 +29,27 @@ module.exports = function (grunt) {
certificatePassword: WIN_CERT_PASSWORD,
noMsi: true
}
},
'electron-installer-debian': {
app: {
options: {
arch: 'amd64',
categories: [
'Development',
'Utility'
],
icon: path.join(__dirname, 'resources/app.png'),
bin: 'Boostnote'
},
src: path.join(__dirname, 'dist', 'Boostnote-linux-x64'),
dest: path.join(__dirname, 'dist')
}
}
}
grunt.initConfig(initConfig)
grunt.loadNpmTasks('grunt-electron-installer')
grunt.loadNpmTasks('grunt-electron-installer-debian')
grunt.registerTask('compile', function () {
var done = this.async()
@@ -206,6 +223,9 @@ module.exports = function (grunt) {
case 'osx':
grunt.task.run(['compile', 'pack:osx', 'codesign', 'create-osx-installer', 'zip:osx'])
break
case 'linux':
grunt.task.run(['compile', 'pack:linux', 'electron-installer-debian'])
break;
}
})

View File

@@ -60,6 +60,7 @@
"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",