mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-15 10:46:32 +00:00
set packaging for osx
This commit is contained in:
12
gruntfile.js
12
gruntfile.js
@@ -5,9 +5,8 @@ const archiver = require('archiver')
|
|||||||
const fs = require('fs')
|
const fs = require('fs')
|
||||||
|
|
||||||
module.exports = function (grunt) {
|
module.exports = function (grunt) {
|
||||||
grunt.initConfig({
|
var initConfig = {
|
||||||
pkg: grunt.file.readJSON('package.json'),
|
pkg: grunt.file.readJSON('package.json'),
|
||||||
auth_code: grunt.file.readJSON('secret/auth_code.json'),
|
|
||||||
'create-windows-installer': {
|
'create-windows-installer': {
|
||||||
x64: {
|
x64: {
|
||||||
appDirectory: path.join(__dirname, 'dist', 'Boostnote-win32-x64'),
|
appDirectory: path.join(__dirname, 'dist', 'Boostnote-win32-x64'),
|
||||||
@@ -22,7 +21,9 @@ module.exports = function (grunt) {
|
|||||||
noMsi: true
|
noMsi: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
}
|
||||||
|
if (process.platform === 'win32') initConfig.auth_code = grunt.file.readJSON('secret/auth_code.json')
|
||||||
|
grunt.initConfig(initConfig)
|
||||||
|
|
||||||
grunt.loadNpmTasks('grunt-electron-installer')
|
grunt.loadNpmTasks('grunt-electron-installer')
|
||||||
|
|
||||||
@@ -61,7 +62,7 @@ module.exports = function (grunt) {
|
|||||||
break
|
break
|
||||||
default:
|
default:
|
||||||
done()
|
done()
|
||||||
break
|
return
|
||||||
}
|
}
|
||||||
archive.finalize()
|
archive.finalize()
|
||||||
var writeStream = fs.createWriteStream(path.join('dist/Boostnote-installer-win32-x64.zip'))
|
var writeStream = fs.createWriteStream(path.join('dist/Boostnote-installer-win32-x64.zip'))
|
||||||
@@ -79,7 +80,7 @@ module.exports = function (grunt) {
|
|||||||
name: 'Boostnote',
|
name: 'Boostnote',
|
||||||
arch: 'x64',
|
arch: 'x64',
|
||||||
dir: __dirname,
|
dir: __dirname,
|
||||||
version: '0.35.4',
|
version: grunt.config.get('pkg.config.electron-version'),
|
||||||
'app-version': grunt.config.get('pkg.version'),
|
'app-version': grunt.config.get('pkg.version'),
|
||||||
'app-bundle-id': 'com.maisin.boost',
|
'app-bundle-id': 'com.maisin.boost',
|
||||||
asar: true,
|
asar: true,
|
||||||
@@ -140,6 +141,7 @@ module.exports = function (grunt) {
|
|||||||
grunt.task.run(['pack:win', 'create-windows-installer', 'zip:win'])
|
grunt.task.run(['pack:win', 'create-windows-installer', 'zip:win'])
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
// Default task(s).
|
// Default task(s).
|
||||||
grunt.registerTask('default', ['build'])
|
grunt.registerTask('default', ['build'])
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,9 +12,7 @@
|
|||||||
"release": "electron-release --app=\"dist/Boost-darwin-x64/Boost.app\" --token=$(cat .env/.github-token) --repo=\"BoostIO/boost-releases\""
|
"release": "electron-release --app=\"dist/Boost-darwin-x64/Boost.app\" --token=$(cat .env/.github-token) --repo=\"BoostIO/boost-releases\""
|
||||||
},
|
},
|
||||||
"config": {
|
"config": {
|
||||||
"version": "--version=0.35.3 --app-bundle-id=com.maisin.boost",
|
"electron-version": "0.35.4"
|
||||||
"platform": "--platform=darwin --arch=x64 --prune --icon=resources/app.icns",
|
|
||||||
"ignore": "--ignore=.env --ignore=Boost-darwin-x64 --ignore=node_modules/devicon/icons --ignore=submodules/ace/(?!src-min)|submodules/ace/(?=src-min-noconflict)"
|
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|||||||
Reference in New Issue
Block a user