Use shell for Window resolution of envs

This commit is contained in:
Joseph Garrone 2024-06-14 23:58:54 +02:00
parent 736806a53d
commit a46aef2e7e
3 changed files with 5 additions and 3 deletions

View File

@ -109,7 +109,7 @@ export async function appBuild(params: {
const dResult = new Deferred<{ isSuccess: boolean }>(); const dResult = new Deferred<{ isSuccess: boolean }>();
const child = child_process.spawn(command, args, { cwd }); const child = child_process.spawn(command, args, { cwd, shell: true });
child.stdout.on("data", data => { child.stdout.on("data", data => {
if (data.toString("utf8").includes("gzip:")) { if (data.toString("utf8").includes("gzip:")) {

View File

@ -26,7 +26,8 @@ export async function keycloakifyBuild(params: {
env: { env: {
...process.env, ...process.env,
[onlyBuildJarFileBasenameEnvName]: onlyBuildJarFileBasename [onlyBuildJarFileBasenameEnvName]: onlyBuildJarFileBasename
} },
shell: true
}); });
child.stdout.on("data", data => process.stdout.write(data)); child.stdout.on("data", data => process.stdout.write(data));

View File

@ -421,7 +421,8 @@ export async function command(params: { cliCommandOptions: CliCommandOptions })
...(realmJsonFilePath === undefined ? [] : ["--import-realm"]) ...(realmJsonFilePath === undefined ? [] : ["--import-realm"])
], ],
{ {
cwd: buildContext.keycloakifyBuildDirPath cwd: buildContext.keycloakifyBuildDirPath,
shell: true
} }
] as const; ] as const;