Skip to content

Commit 6e7d5de

Browse files
committed
Update version to 1.45.5, clean up imports in package.ts, and enhance localization for rollout and version messages in English and Chinese locales
1 parent 3266f09 commit 6e7d5de

File tree

5 files changed

+8
-9
lines changed

5 files changed

+8
-9
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-update-cli",
3-
"version": "1.45.4",
3+
"version": "1.45.5",
44
"description": "command line tool for react-native-update (remote updates for react native)",
55
"main": "index.js",
66
"bin": {

src/locales/en.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ This can reduce the risk of inconsistent dependencies and supply chain attacks.
101101
rnuVersionNotFound:
102102
'react-native-update: Cannot get the version number. Please run the command in the project directory',
103103
rolloutConfigSet:
104-
'Set {{rollout}}% rollout for version {{version}} on native version(s) {{versions}}',
104+
'Set {{rollout}}% rollout for OTA update {{version}} on native version(s) {{versions}}',
105105
rolloutRangeError: 'rollout must be an integer between 1-100',
106106
runningHermesc: 'Running hermesc: {{- command}} {{- args}}',
107107
sentryCliNotFound:
@@ -122,10 +122,10 @@ This can reduce the risk of inconsistent dependencies and supply chain attacks.
122122
usageUploadApp: 'Usage: cresc uploadApp <app file>',
123123
usageUploadIpa: 'Usage: cresc uploadIpa <ipa file>',
124124
versionBind:
125-
'Bound version {{version}} to native version {{nativeVersion}} (id: {{id}})',
125+
'Bound hot update {{version}} to native version {{nativeVersion}} (id: {{id}})',
126126
welcomeMessage: 'Welcome to Cresc hot update service, {{name}}.',
127-
versionNameQuestion: 'Enter version name:',
128-
versionDescriptionQuestion: 'Enter version description:',
127+
versionNameQuestion: 'Enter OTA update name:',
128+
versionDescriptionQuestion: 'Enter OTA update description:',
129129
versionMetaInfoQuestion: 'Enter custom meta info:',
130130
updateNativePackageQuestion: 'Bind to native package now?(Y/N)',
131131
unnamed: '(Unnamed)',

src/locales/zh.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export default {
9696
rnuVersionNotFound:
9797
'react-native-update: 无法获取版本号。请在项目目录中运行命令',
9898
rolloutConfigSet:
99-
'已在原生版本 {{versions}} 上设置灰度发布 {{rollout}}% 热更版本 {{version}}',
99+
'已在原生版本 {{versions}} 上设置灰度发布 {{rollout}}% 热更包 {{version}}',
100100
rolloutRangeError: 'rollout 必须是 1-100 的整数',
101101
runningHermesc: '运行 hermesc:{{- command}} {{- args}}',
102102
sentryCliNotFound: '无法找到 Sentry CLI 工具,请确保已正确安装 @sentry/cli',
@@ -115,7 +115,7 @@ export default {
115115
usageUploadApp: '使用方法: pushy uploadApp app后缀文件',
116116
usageUploadIpa: '使用方法: pushy uploadIpa ipa后缀文件',
117117
versionBind:
118-
'已将热更版本 {{version}} 绑定到原生版本 {{nativeVersion}} (id: {{id}})',
118+
'已将热更包 {{version}} 绑定到原生版本 {{nativeVersion}} (id: {{id}})',
119119
welcomeMessage: '欢迎使用 pushy 热更新服务,{{name}}。',
120120
versionNameQuestion: '输入版本名称:',
121121
versionDescriptionQuestion: '输入版本描述:',

src/package.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { get, getAllPackages, post, uploadFile } from './api';
22
import { question, saveToLocal } from './utils';
33
import { t } from './utils/i18n';
44

5-
import { checkPlatform, getPlatform, getSelectedApp } from './app';
5+
import { getPlatform, getSelectedApp } from './app';
66

77
import { getApkInfo, getIpaInfo, getAppInfo } from './utils';
88
import Table from 'tty-table';

src/versions.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,6 @@ export const commands = {
307307
rollout,
308308
dryRun: options.dryRun,
309309
});
310-
console.log(t('operationSuccess'));
311310
},
312311
updateVersionInfo: async ({
313312
args,

0 commit comments

Comments
 (0)