Capacitor command fix (#498)
This commit is contained in:
@@ -66,6 +66,10 @@ export function registerCapacitorHandlers() {
|
||||
cwd: appPath,
|
||||
successMessage: "Capacitor sync completed successfully",
|
||||
errorPrefix: "Failed to sync Capacitor",
|
||||
env: {
|
||||
...process.env,
|
||||
LANG: "en_US.UTF-8",
|
||||
},
|
||||
});
|
||||
},
|
||||
);
|
||||
|
||||
@@ -8,11 +8,13 @@ export async function simpleSpawn({
|
||||
cwd,
|
||||
successMessage,
|
||||
errorPrefix,
|
||||
env,
|
||||
}: {
|
||||
command: string;
|
||||
cwd: string;
|
||||
successMessage: string;
|
||||
errorPrefix: string;
|
||||
env?: Record<string, string>;
|
||||
}): Promise<void> {
|
||||
return new Promise<void>((resolve, reject) => {
|
||||
logger.info(`Running: ${command}`);
|
||||
@@ -20,6 +22,7 @@ export async function simpleSpawn({
|
||||
cwd,
|
||||
shell: true,
|
||||
stdio: "pipe",
|
||||
env,
|
||||
});
|
||||
|
||||
let stdout = "";
|
||||
|
||||
Reference in New Issue
Block a user