Skip to content

Commit

Permalink
chore: Update import paths and remove unused imports in install.js an…
Browse files Browse the repository at this point in the history
…d main.js
  • Loading branch information
truemiller committed Aug 15, 2024
1 parent 26beaaf commit 93aa4ba
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
5 changes: 1 addition & 4 deletions electron/src/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
5 changes: 3 additions & 2 deletions electron/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 93aa4ba

Please sign in to comment.