diff --git a/electron/src/install.js b/electron/src/install.js index d40a2272b..c53895758 100644 --- a/electron/src/install.js +++ b/electron/src/install.js @@ -5,13 +5,10 @@ import fs from 'fs'; import os from 'os'; import process from 'process'; import sudo from 'sudo-prompt'; -import { logger } from './logger'; +import { logger } from './utils/logger.js'; import { paths } from './constants/paths.js'; -import path from from 'path'; -import { app } from 'electron'; - /** * current version of the pearl release * - use "" (nothing as a suffix) for latest release candidate, for example "0.1.0rc26" diff --git a/electron/src/main.js b/electron/src/main.js index e77cb2b57..842e465fb 100644 --- a/electron/src/main.js +++ b/electron/src/main.js @@ -29,6 +29,7 @@ import { logger } from './utils/logger.js'; import { findAvailablePort, isPortAvailable } from './utils/portFinders.js'; import { killProcesses } from './utils/processes.js'; + // Attempt to acquire the single instance lock const singleInstanceLock = app.requestSingleInstanceLock(); if (!singleInstanceLock) app.quit(); @@ -416,11 +417,11 @@ ipcMain.on('check', async function (event, _argument) { try { event.sender.send('response', 'Checking installation'); if (isMac) { - //await setupDarwin(event.sender); + // await setupDarwin(event.sender); } else if (isWindows) { // TODO } else { - //await setupUbuntu(event.sender); + // await setupUbuntu(event.sender); } if (isDev) { diff --git a/package.json b/package.json index f3ca6eb8b..f7fe6412b 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "install:frontend": "cd frontend && yarn", "lint": "yarn lint:frontend & yarn lint:electron & wait", "lint:frontend": "cd frontend && yarn lint", - "start": "yarn electron .", + "start": "electron electron", "start:frontend": "cd frontend && yarn start", "test:frontend": "cd frontend && yarn test", "download-binaries": "sh download_binaries.sh"