From 3d91e90b2f45c5f19caea5e4fe21b1d1484554f5 Mon Sep 17 00:00:00 2001 From: reaper Date: Fri, 28 Aug 2026 08:24:15 -0500 Subject: [PATCH] fix: expose Windows archive tools to native modules --- package-lock.json | 4 ++-- package.json | 2 +- src/main/auroraEngine.ts | 4 +++- src/main/native/nativeProject.test.ts | 3 ++- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index 0b30245..e64365c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "aurora-dockside", - "version": "2.0.0-alpha.37", + "version": "2.0.0-alpha.38", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "aurora-dockside", - "version": "2.0.0-alpha.37", + "version": "2.0.0-alpha.38", "hasInstallScript": true, "dependencies": { "@electron-toolkit/preload": "^3.0.2", diff --git a/package.json b/package.json index 010bea3..9595804 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "aurora-dockside", - "version": "2.0.0-alpha.37", + "version": "2.0.0-alpha.38", "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 c36942d..22c3b92 100644 --- a/src/main/auroraEngine.ts +++ b/src/main/auroraEngine.ts @@ -29,7 +29,9 @@ import { const execFileAsync = promisify(execFile) const EXTRA_PATH_DIRS = - process.platform === 'win32' ? [] : ['/opt/homebrew/bin', '/usr/local/bin', '/opt/local/bin'] + process.platform === 'win32' + ? [process.env.SystemRoot ? join(process.env.SystemRoot, 'System32') : ''] + : ['/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) diff --git a/src/main/native/nativeProject.test.ts b/src/main/native/nativeProject.test.ts index 2583eca..6dce55d 100644 --- a/src/main/native/nativeProject.test.ts +++ b/src/main/native/nativeProject.test.ts @@ -16,6 +16,7 @@ import { stopNativeProject } from './nativeProject' import { allocateNativePorts } from './portAllocator' +import { AURORA_ENV } from '../auroraEngine' const projectRoot = join(tmpdir(), 'aurora demo') const installedRuntimeRoot = join(tmpdir(), 'aurora-runtime') @@ -190,7 +191,7 @@ it.runIf(Boolean(process.env.AURORA_NATIVE_WORDPRESS_SMOKE_ROOT))( run: async (_label: string, command: string, args: string[], env?: NodeJS.ProcessEnv) => { await execFileAsync(command, args, { cwd: root, - env: { ...process.env, ...env }, + env: { ...AURORA_ENV, ...env }, maxBuffer: 32 * 1024 * 1024 }) },