mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 01:36:22 +00:00
fix path of module & contactform
This commit is contained in:
@@ -6,6 +6,8 @@ const autoUpdater = electron.autoUpdater
|
||||
const path = require('path')
|
||||
const ChildProcess = require('child_process')
|
||||
const _ = require('lodash')
|
||||
const nodeIpc = require('@rokt33r/node-ipc')
|
||||
const GhReleases = require('electron-gh-releases')
|
||||
// electron.crashReporter.start()
|
||||
|
||||
var mainWindow = null
|
||||
@@ -114,7 +116,6 @@ function notify (title, body) {
|
||||
}
|
||||
|
||||
var isUpdateReady = false
|
||||
var GhReleases = require('electron-gh-releases')
|
||||
|
||||
var ghReleasesOpts = {
|
||||
repo: 'BoostIO/boost-releases',
|
||||
@@ -153,14 +154,13 @@ updater.on('update-downloaded', (info) => {
|
||||
}
|
||||
})
|
||||
|
||||
const nodeIpc = require('@rokt33r/node-ipc')
|
||||
nodeIpc.config.id = 'node'
|
||||
nodeIpc.config.retry = 1500
|
||||
// nodeIpc.config.silent = true
|
||||
|
||||
function spawnFinder() {
|
||||
if (process.platform === 'darwin') {
|
||||
var finderArgv = [path.join(__dirname, 'finder.js'), '--finder']
|
||||
var finderArgv = [path.join(__dirname, 'finder-app.js'), '--finder']
|
||||
if (_.find(process.argv, a => a === '--hot')) finderArgv.push('--hot')
|
||||
finderProcess = ChildProcess
|
||||
.execFile(process.execPath, finderArgv)
|
||||
@@ -227,7 +227,7 @@ app.on('ready', function () {
|
||||
if (finderProcess) finderProcess.kill()
|
||||
})
|
||||
|
||||
var template = require('./atom-lib/menu-template')
|
||||
var template = require('./menu-template')
|
||||
if (process.platform === 'win32') {
|
||||
template.unshift({
|
||||
label: 'Boostnote',
|
||||
@@ -264,7 +264,7 @@ app.on('ready', function () {
|
||||
|
||||
checkUpdate()
|
||||
|
||||
mainWindow = require('./atom-lib/main-window')
|
||||
mainWindow = require('./main-window')
|
||||
if (process.platform === 'win32') {
|
||||
mainWindow.setMenu(menu)
|
||||
}
|
||||
@@ -278,7 +278,7 @@ app.on('ready', function () {
|
||||
console.log('fired only once ')
|
||||
spawnFinder()
|
||||
} else {
|
||||
finderWindow = require('./atom-lib/finder-window')
|
||||
finderWindow = require('./finder-window')
|
||||
|
||||
finderWindow.on('close', function (e) {
|
||||
if (appQuit) return true
|
||||
@@ -296,3 +296,6 @@ app.on('ready', function () {
|
||||
|
||||
require('./hotkey')
|
||||
})
|
||||
|
||||
module.exports = app
|
||||
|
||||
|
||||
Reference in New Issue
Block a user