mirror of
https://gitcode.com/github-mirrors/react-native-update-cli.git
synced 2025-09-16 09:41:38 +08:00
Update build time hint
This commit is contained in:
@@ -66,7 +66,7 @@ export async function getApkInfo(fn) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (buildTime == 0) {
|
if (buildTime == 0) {
|
||||||
throw new Error('Can not get build time for this app.');
|
throw new Error('无法获取此包的编译时间戳。请更新react-native-update到最新版本后重新打包上传。');
|
||||||
}
|
}
|
||||||
return { versionName, buildTime };
|
return { versionName, buildTime };
|
||||||
}
|
}
|
||||||
@@ -86,7 +86,7 @@ export async function getIpaInfo(fn) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (!buildTimeTxtBuffer) {
|
if (!buildTimeTxtBuffer) {
|
||||||
throw new Error('Can not get build time for this app.');
|
throw new Error('无法获取此包的编译时间戳。请更新react-native-update到最新版本后重新打包上传。');
|
||||||
}
|
}
|
||||||
const buildTime = buildTimeTxtBuffer.toString().replace('\n', '');
|
const buildTime = buildTimeTxtBuffer.toString().replace('\n', '');
|
||||||
return { versionName, buildTime };
|
return { versionName, buildTime };
|
||||||
|
Reference in New Issue
Block a user