|
1 | 1 | #!/usr/bin/env node |
2 | | -import { execFileSync } from "node:child_process"; |
3 | 2 | import fs from "node:fs"; |
4 | 3 | import path from "node:path"; |
5 | 4 | import process from "node:process"; |
6 | 5 | import { fileURLToPath } from "node:url"; |
| 6 | +import { runAndroidSigningCommandSync } from "./lib/android-release-signing-process.mjs"; |
7 | 7 |
|
8 | 8 | const rootDir = path.resolve(path.dirname(fileURLToPath(import.meta.url)), ".."); |
9 | 9 | const defaultManifestPath = path.join(rootDir, "apps", "android", "Config", "ReleaseSigning.json"); |
@@ -185,15 +185,15 @@ function requireMatchPassword() { |
185 | 185 | } |
186 | 186 |
|
187 | 187 | function run(command, args, options = {}) { |
188 | | - execFileSync(command, args, { |
| 188 | + runAndroidSigningCommandSync(command, args, { |
189 | 189 | cwd: options.cwd, |
190 | 190 | env: options.env || process.env, |
191 | 191 | stdio: options.stdio || "pipe", |
192 | 192 | }); |
193 | 193 | } |
194 | 194 |
|
195 | 195 | function runText(command, args, options = {}) { |
196 | | - return execFileSync(command, args, { |
| 196 | + return runAndroidSigningCommandSync(command, args, { |
197 | 197 | cwd: options.cwd, |
198 | 198 | env: options.env || process.env, |
199 | 199 | encoding: "utf8", |
|
0 commit comments