mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 09:46:22 +00:00
ready for linux app :)
This commit is contained in:
@@ -128,12 +128,13 @@ const updater = new GhReleases(ghReleasesOpts)
|
||||
// Check for updates
|
||||
// `status` returns true if there is a new update available
|
||||
function checkUpdate () {
|
||||
// Disable check update(Linux only)
|
||||
return true
|
||||
if (process.platform === 'linux') {
|
||||
return true
|
||||
}
|
||||
updater.check((err, status) => {
|
||||
if (err) {
|
||||
console.error(err)
|
||||
if (!versionNotified) notify('Updater error!', message)
|
||||
if (!versionNotified) notify('Updater error!', err.message)
|
||||
}
|
||||
if (!err) {
|
||||
if (status) {
|
||||
@@ -277,18 +278,17 @@ app.on('ready', function () {
|
||||
mainWindow.hide()
|
||||
})
|
||||
|
||||
// Disable Finder(Linux only)
|
||||
// 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') {
|
||||
|
||||
Reference in New Issue
Block a user