Skip to content

Commit 2f90890

Browse files
committed
setup gruntfile for linux deploy & disable finder and updater
1 parent 0fe83a0 commit 2f90890

2 files changed

Lines changed: 27 additions & 11 deletions

File tree

gruntfile.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,21 @@ module.exports = function (grunt) {
115115
done()
116116
})
117117
break
118+
case 'linux':
119+
Object.assign(opts, {
120+
platform: 'linux',
121+
icon: path.join(__dirname, 'resources/app.icns'),
122+
'app-category-type': 'public.app-category.developer-tools'
123+
})
124+
packager(opts, function (err, appPath) {
125+
if (err) {
126+
grunt.log.writeln(err)
127+
done(err)
128+
return
129+
}
130+
done()
131+
})
132+
break
118133
}
119134
})
120135

lib/main-app.js

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ const updater = new GhReleases(ghReleasesOpts)
128128
// Check for updates
129129
// `status` returns true if there is a new update available
130130
function checkUpdate () {
131+
return true
131132
updater.check((err, status) => {
132133
if (err) {
133134
console.error(err)
@@ -275,17 +276,17 @@ app.on('ready', function () {
275276
mainWindow.hide()
276277
})
277278

278-
if (finderProcess == null && process.platform === 'darwin') {
279-
spawnFinder()
280-
} else {
281-
finderWindow = require('./finder-window')
282-
283-
finderWindow.on('close', function (e) {
284-
if (appQuit) return true
285-
e.preventDefault()
286-
finderWindow.hide()
287-
})
288-
}
279+
// if (finderProcess == null && process.platform === 'darwin') {
280+
// spawnFinder()
281+
// } else {
282+
// finderWindow = require('./finder-window')
283+
284+
// finderWindow.on('close', function (e) {
285+
// if (appQuit) return true
286+
// e.preventDefault()
287+
// finderWindow.hide()
288+
// })
289+
// }
289290

290291
nodeIpc.server.start(function (err) {
291292
if (err.code === 'EADDRINUSE') {

0 commit comments

Comments
 (0)