mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 01:36:22 +00:00
Discard finder (#1497)
* Discard finder * Upgrade electron * Discard anything related with finder * Fix lint errors * Run test serial * Test on v6 * Test on v6 only
This commit is contained in:
committed by
GitHub
parent
922570bb5c
commit
51a8c47afd
11
index.js
11
index.js
@@ -4,11 +4,6 @@ const path = require('path')
|
||||
|
||||
var error = null
|
||||
|
||||
function isFinderCalled () {
|
||||
var argv = process.argv.slice(1)
|
||||
return argv.some((arg) => arg.match(/--finder/))
|
||||
}
|
||||
|
||||
function execMainApp () {
|
||||
const appRootPath = path.join(process.execPath, '../..')
|
||||
const updateDotExePath = path.join(appRootPath, 'Update.exe')
|
||||
@@ -78,8 +73,4 @@ function execMainApp () {
|
||||
require('./lib/main-app')
|
||||
}
|
||||
|
||||
if (isFinderCalled()) {
|
||||
require('./lib/finder-app')
|
||||
} else {
|
||||
execMainApp()
|
||||
}
|
||||
execMainApp()
|
||||
|
||||
Reference in New Issue
Block a user