1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 01:36: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

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