From 8c5211a5ba86f19956a98ab1abc5c964a8f4b962 Mon Sep 17 00:00:00 2001 From: reaper Date: Fri, 28 Aug 2026 08:12:40 -0500 Subject: [PATCH] fix: preserve Windows executable search path --- package-lock.json | 4 ++-- package.json | 2 +- src/main/auroraEngine.ts | 10 +++++++--- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index 99eb259..e634a0e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "aurora-dockside", - "version": "2.0.0-alpha.35", + "version": "2.0.0-alpha.36", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "aurora-dockside", - "version": "2.0.0-alpha.35", + "version": "2.0.0-alpha.36", "hasInstallScript": true, "dependencies": { "@electron-toolkit/preload": "^3.0.2", diff --git a/package.json b/package.json index f4920ad..402fe3c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "aurora-dockside", - "version": "2.0.0-alpha.35", + "version": "2.0.0-alpha.36", "description": "A modern, modular Docker development platform for building, running, and managing web applications locally.", "desktopName": "aurora-dockside.desktop", "main": "./out/main/index.js", diff --git a/src/main/auroraEngine.ts b/src/main/auroraEngine.ts index 576a61e..c36942d 100644 --- a/src/main/auroraEngine.ts +++ b/src/main/auroraEngine.ts @@ -2,7 +2,7 @@ import { app } from 'electron' import { execFile } from 'child_process' import { promisify } from 'util' import { mkdir, readFile, writeFile, access, rm, readdir } from 'fs/promises' -import { join } from 'path' +import { delimiter, join } from 'path' import type { AuroraProjectDetail, AuroraProjectSummary, @@ -28,8 +28,12 @@ import { } from './moduleRegistry' const execFileAsync = promisify(execFile) -const EXTRA_PATH_DIRS = ['/opt/homebrew/bin', '/usr/local/bin', '/opt/local/bin'] -export const AURORA_ENV = { ...process.env, PATH: [...EXTRA_PATH_DIRS, process.env.PATH].join(':') } +const EXTRA_PATH_DIRS = + process.platform === 'win32' ? [] : ['/opt/homebrew/bin', '/usr/local/bin', '/opt/local/bin'] +export const AURORA_ENV = { + ...process.env, + PATH: [...EXTRA_PATH_DIRS, process.env.PATH].filter(Boolean).join(delimiter) +} export type AuroraConfig = { name: string