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

setup gruntfile for linux deploy & disable finder and updater

This commit is contained in:
Rokt33r
2016-03-09 01:57:36 +09:00
parent 0fe83a0583
commit 2f90890f50
2 changed files with 26 additions and 10 deletions

View File

@@ -115,6 +115,21 @@ module.exports = function (grunt) {
done() done()
}) })
break break
case 'linux':
Object.assign(opts, {
platform: 'linux',
icon: path.join(__dirname, 'resources/app.icns'),
'app-category-type': 'public.app-category.developer-tools'
})
packager(opts, function (err, appPath) {
if (err) {
grunt.log.writeln(err)
done(err)
return
}
done()
})
break
} }
}) })

View File

@@ -128,6 +128,7 @@ const updater = new GhReleases(ghReleasesOpts)
// Check for updates // Check for updates
// `status` returns true if there is a new update available // `status` returns true if there is a new update available
function checkUpdate () { function checkUpdate () {
return true
updater.check((err, status) => { updater.check((err, status) => {
if (err) { if (err) {
console.error(err) console.error(err)
@@ -275,17 +276,17 @@ app.on('ready', function () {
mainWindow.hide() mainWindow.hide()
}) })
if (finderProcess == null && process.platform === 'darwin') { // if (finderProcess == null && process.platform === 'darwin') {
spawnFinder() // spawnFinder()
} else { // } else {
finderWindow = require('./finder-window') // finderWindow = require('./finder-window')
finderWindow.on('close', function (e) { // finderWindow.on('close', function (e) {
if (appQuit) return true // if (appQuit) return true
e.preventDefault() // e.preventDefault()
finderWindow.hide() // finderWindow.hide()
}) // })
} // }
nodeIpc.server.start(function (err) { nodeIpc.server.start(function (err) {
if (err.code === 'EADDRINUSE') { if (err.code === 'EADDRINUSE') {