Skip to content

Commit 00be416

Browse files
committed
Add support for creating .deb file on linux
1 parent eda547b commit 00be416

2 files changed

Lines changed: 21 additions & 0 deletions

File tree

gruntfile.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,27 @@ module.exports = function (grunt) {
2929
certificatePassword: WIN_CERT_PASSWORD,
3030
noMsi: true
3131
}
32+
},
33+
'electron-installer-debian': {
34+
app: {
35+
options: {
36+
arch: 'amd64',
37+
categories: [
38+
'Development',
39+
'Utility'
40+
],
41+
icon: path.join(__dirname, 'resources/app.png'),
42+
bin: 'Boostnote'
43+
},
44+
src: path.join(__dirname, 'dist', 'Boostnote-linux-x64'),
45+
dest: path.join(__dirname, 'dist')
46+
}
3247
}
3348
}
49+
3450
grunt.initConfig(initConfig)
3551
grunt.loadNpmTasks('grunt-electron-installer')
52+
grunt.loadNpmTasks('grunt-electron-installer-debian')
3653

3754
grunt.registerTask('compile', function () {
3855
var done = this.async()
@@ -206,6 +223,9 @@ module.exports = function (grunt) {
206223
case 'osx':
207224
grunt.task.run(['compile', 'pack:osx', 'codesign', 'create-osx-installer', 'zip:osx'])
208225
break
226+
case 'linux':
227+
grunt.task.run(['compile', 'pack:linux', 'electron-installer-debian'])
228+
break;
209229
}
210230
})
211231

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
"electron-release": "^2.2.0",
6161
"grunt": "^0.4.5",
6262
"grunt-electron-installer": "^1.2.0",
63+
"grunt-electron-installer-debian": "^0.2.0",
6364
"history": "^1.17.0",
6465
"nib": "^1.1.0",
6566
"react": "^0.14.3",

0 commit comments

Comments
 (0)