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

Merge pull request #266 from kazuhisya/add-rpm-support

add rpm support
This commit is contained in:
Kazz Yokomizo
2017-11-16 11:23:53 +09:00
committed by GitHub
2 changed files with 23 additions and 2 deletions

View File

@@ -50,6 +50,25 @@ module.exports = function (grunt) {
src: path.join(__dirname, 'dist', 'Boostnote-linux-x64'), src: path.join(__dirname, 'dist', 'Boostnote-linux-x64'),
dest: path.join(__dirname, 'dist') dest: path.join(__dirname, 'dist')
} }
},
'electron-installer-redhat': {
app: {
options: {
name: 'boostnote',
productName: 'Boostnote',
genericName: 'Boostnote',
productDescription: 'The opensource note app for developer.',
arch: 'x86_64',
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')
}
} }
} }
@@ -57,6 +76,7 @@ module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-electron-installer') grunt.loadNpmTasks('grunt-electron-installer')
if (!WIN) { if (!WIN) {
grunt.loadNpmTasks('grunt-electron-installer-debian') grunt.loadNpmTasks('grunt-electron-installer-debian')
grunt.loadNpmTasks('grunt-electron-installer-redhat')
} }
grunt.registerTask('compile', function () { grunt.registerTask('compile', function () {
@@ -244,7 +264,7 @@ module.exports = function (grunt) {
grunt.task.run(['compile', 'pack:osx', 'codesign', 'create-osx-installer', 'zip:osx']) grunt.task.run(['compile', 'pack:osx', 'codesign', 'create-osx-installer', 'zip:osx'])
break break
case 'linux': case 'linux':
grunt.task.run(['compile', 'pack:linux', 'electron-installer-debian']) grunt.task.run(['compile', 'pack:linux', 'electron-installer-debian', 'electron-installer-redhat'])
break break
} }
}) })

View File

@@ -129,7 +129,8 @@
"webpack-dev-server": "^1.12.0" "webpack-dev-server": "^1.12.0"
}, },
"optionalDependencies": { "optionalDependencies": {
"grunt-electron-installer-debian": "^0.2.0" "grunt-electron-installer-debian": "^0.2.0",
"grunt-electron-installer-redhat": "^0.3.1"
}, },
"optional": false, "optional": false,
"ava": { "ava": {