Skip to content

Commit

Permalink
do not kill at start
Browse files Browse the repository at this point in the history
  • Loading branch information
ebrehault committed Sep 26, 2024
1 parent 7aa10df commit 3cc327a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions electron-app/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ const checkUpdates = async () => {
const createWindow = async () => {
await checkUpdates();
const icon = nativeImage.createFromPath(path.join(__dirname, '../public/logo_16x16.png'));
// kill any previous hanging process
await killPortProcess(8090);
const server = await initFileSystemServer({ basePath });
tray = new Tray(icon);
contextMenu = Menu.buildFromTemplate([
Expand All @@ -62,6 +60,12 @@ const createWindow = async () => {
visible: false,
icon: nativeImage.createFromPath(path.join(__dirname, '../public/square.png')),
},
{
label: 'Kill server',
click: async () => {
await killPortProcess(8090);
},
},
{
label: 'Exit',
click: () => {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nuclia-sync-agent-app",
"version": "1.5.6",
"version": "1.5.7",
"description": "This is a Nuclia Sync Agent App",
"main": "build/index.js",
"scripts": {
Expand Down

0 comments on commit 3cc327a

Please sign in to comment.