1
0
mirror of https://gitcode.com/github-mirrors/react-native-update-cli.git synced 2025-09-17 10:02:19 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee

Compare commits

..

2 Commits

Author SHA1 Message Date
sunnylqm
15b82b440e v1.0.8 2020-03-10 09:24:25 +08:00
sunnylqm
cc3f5dc093 Update build time hint 2020-03-10 09:23:47 +08:00
2 changed files with 3 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "react-native-update-cli",
"version": "1.0.7",
"version": "1.0.8",
"description": "Command tools for javaScript updater with `pushy` service for react native apps.",
"main": "index.js",
"bin": {

View File

@@ -66,7 +66,7 @@ export async function getApkInfo(fn) {
}
}
if (buildTime == 0) {
throw new Error('Can not get build time for this app.');
throw new Error('无法获取此包的编译时间戳。请更新react-native-update到最新版本后重新打包上传。');
}
return { versionName, buildTime };
}
@@ -86,7 +86,7 @@ export async function getIpaInfo(fn) {
);
}
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', '');
return { versionName, buildTime };