1
0
mirror of https://gitcode.com/github-mirrors/react-native-update-cli.git synced 2025-10-30 22:33:11 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee
This commit is contained in:
sunnylqm
2025-01-11 20:23:25 +08:00
parent 4f0784172f
commit b24b27d100
4 changed files with 18 additions and 17 deletions

View File

@@ -25,8 +25,9 @@ export function translateOptions(options) {
for (const key in options) {
const v = options[key];
if (typeof v === 'string') {
ret[key] = v.replace(/\$\{(\w+)\}/g, (v, n) =>
options[n] || process.env[n] || v,
ret[key] = v.replace(
/\$\{(\w+)\}/g,
(v, n) => options[n] || process.env[n] || v,
);
} else {
ret[key] = v;
@@ -124,7 +125,7 @@ export async function getAppInfo(fn) {
return { versionName, buildTime, ...appCredential };
}
export async function getIpaInfo(fn) {
export async function getIpaInfo(fn: string) {
const appInfoParser = new AppInfoParser(fn);
const bundleFile = await appInfoParser.parser.getEntry(
/payload\/.+?\.app\/main.jsbundle/,