fix: expose Windows archive tools to native modules
This commit is contained in:
Generated
+2
-2
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "aurora-dockside",
|
"name": "aurora-dockside",
|
||||||
"version": "2.0.0-alpha.37",
|
"version": "2.0.0-alpha.38",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "aurora-dockside",
|
"name": "aurora-dockside",
|
||||||
"version": "2.0.0-alpha.37",
|
"version": "2.0.0-alpha.38",
|
||||||
"hasInstallScript": true,
|
"hasInstallScript": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@electron-toolkit/preload": "^3.0.2",
|
"@electron-toolkit/preload": "^3.0.2",
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "aurora-dockside",
|
"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.",
|
"description": "A modern, modular Docker development platform for building, running, and managing web applications locally.",
|
||||||
"desktopName": "aurora-dockside.desktop",
|
"desktopName": "aurora-dockside.desktop",
|
||||||
"main": "./out/main/index.js",
|
"main": "./out/main/index.js",
|
||||||
|
|||||||
@@ -29,7 +29,9 @@ import {
|
|||||||
|
|
||||||
const execFileAsync = promisify(execFile)
|
const execFileAsync = promisify(execFile)
|
||||||
const EXTRA_PATH_DIRS =
|
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 = {
|
export const AURORA_ENV = {
|
||||||
...process.env,
|
...process.env,
|
||||||
PATH: [...EXTRA_PATH_DIRS, process.env.PATH].filter(Boolean).join(delimiter)
|
PATH: [...EXTRA_PATH_DIRS, process.env.PATH].filter(Boolean).join(delimiter)
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ import {
|
|||||||
stopNativeProject
|
stopNativeProject
|
||||||
} from './nativeProject'
|
} from './nativeProject'
|
||||||
import { allocateNativePorts } from './portAllocator'
|
import { allocateNativePorts } from './portAllocator'
|
||||||
|
import { AURORA_ENV } from '../auroraEngine'
|
||||||
|
|
||||||
const projectRoot = join(tmpdir(), 'aurora demo')
|
const projectRoot = join(tmpdir(), 'aurora demo')
|
||||||
const installedRuntimeRoot = join(tmpdir(), 'aurora-runtime')
|
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) => {
|
run: async (_label: string, command: string, args: string[], env?: NodeJS.ProcessEnv) => {
|
||||||
await execFileAsync(command, args, {
|
await execFileAsync(command, args, {
|
||||||
cwd: root,
|
cwd: root,
|
||||||
env: { ...process.env, ...env },
|
env: { ...AURORA_ENV, ...env },
|
||||||
maxBuffer: 32 * 1024 * 1024
|
maxBuffer: 32 * 1024 * 1024
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user