react-native-update-cli 1.23.1 → 1.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli.json +14 -2
- package/lib/bundle.js +3 -3
- package/lib/package.js +7 -3
- package/package.json +1 -1
- package/src/bundle.js +3 -3
- package/src/package.js +5 -1
package/cli.json
CHANGED
|
@@ -34,8 +34,20 @@
|
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
|
|
37
|
-
"uploadIpa": {
|
|
38
|
-
|
|
37
|
+
"uploadIpa": {
|
|
38
|
+
"options": {
|
|
39
|
+
"note": {
|
|
40
|
+
"hasValue": true
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"uploadApk": {
|
|
45
|
+
"options": {
|
|
46
|
+
"note": {
|
|
47
|
+
"hasValue": true
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
},
|
|
39
51
|
"parseIpa": {},
|
|
40
52
|
"parseApk": {},
|
|
41
53
|
"packages": {
|
package/lib/bundle.js
CHANGED
|
@@ -175,9 +175,9 @@ async function compileHermesByteCode(bundleName, outputFolder, sourcemapOutput)
|
|
|
175
175
|
const hermesCommand = `${hermesPath}/hermesc`;
|
|
176
176
|
|
|
177
177
|
const args = ['-emit-binary', '-out', _path2.default.join(outputFolder, bundleName), _path2.default.join(outputFolder, bundleName), '-O'];
|
|
178
|
-
if (sourcemapOutput) {
|
|
179
|
-
|
|
180
|
-
}
|
|
178
|
+
// if (sourcemapOutput) {
|
|
179
|
+
// args.push('-output-source-map');
|
|
180
|
+
// }
|
|
181
181
|
console.log('Running hermesc: ' + hermesCommand + ' ' + args.join(' ') + '\n');
|
|
182
182
|
(0, _child_process.spawnSync)(hermesCommand, args, {
|
|
183
183
|
stdio: 'ignore'
|
package/lib/package.js
CHANGED
|
@@ -66,6 +66,7 @@ const commands = exports.commands = {
|
|
|
66
66
|
if (!fn || !fn.endsWith('.ipa')) {
|
|
67
67
|
throw new Error('使用方法: pushy uploadIpa ipa后缀文件');
|
|
68
68
|
}
|
|
69
|
+
const { note = '' } = options;
|
|
69
70
|
const {
|
|
70
71
|
versionName,
|
|
71
72
|
buildTime,
|
|
@@ -87,16 +88,18 @@ const commands = exports.commands = {
|
|
|
87
88
|
const { id } = await (0, _api.post)(`/app/${appId}/package/create`, {
|
|
88
89
|
name: versionName,
|
|
89
90
|
hash,
|
|
90
|
-
buildTime
|
|
91
|
+
buildTime,
|
|
92
|
+
note
|
|
91
93
|
});
|
|
92
94
|
(0, _utils.saveToLocal)(fn, `${appId}/package/${id}.ipa`);
|
|
93
95
|
console.log(`已成功上传ipa原生包(id: ${id}, version: ${versionName}, buildTime: ${buildTime})`);
|
|
94
96
|
},
|
|
95
|
-
uploadApk: async function ({ args }) {
|
|
97
|
+
uploadApk: async function ({ args, options }) {
|
|
96
98
|
const fn = args[0];
|
|
97
99
|
if (!fn || !fn.endsWith('.apk')) {
|
|
98
100
|
throw new Error('使用方法: pushy uploadApk apk后缀文件');
|
|
99
101
|
}
|
|
102
|
+
const { note = '' } = options;
|
|
100
103
|
const {
|
|
101
104
|
versionName,
|
|
102
105
|
buildTime,
|
|
@@ -118,7 +121,8 @@ const commands = exports.commands = {
|
|
|
118
121
|
const { id } = await (0, _api.post)(`/app/${appId}/package/create`, {
|
|
119
122
|
name: versionName,
|
|
120
123
|
hash,
|
|
121
|
-
buildTime
|
|
124
|
+
buildTime,
|
|
125
|
+
note
|
|
122
126
|
});
|
|
123
127
|
(0, _utils.saveToLocal)(fn, `${appId}/package/${id}.apk`);
|
|
124
128
|
console.log(`已成功上传apk原生包(id: ${id}, version: ${versionName}, buildTime: ${buildTime})`);
|
package/package.json
CHANGED
package/src/bundle.js
CHANGED
|
@@ -208,9 +208,9 @@ async function compileHermesByteCode(
|
|
|
208
208
|
path.join(outputFolder, bundleName),
|
|
209
209
|
'-O',
|
|
210
210
|
];
|
|
211
|
-
if (sourcemapOutput) {
|
|
212
|
-
|
|
213
|
-
}
|
|
211
|
+
// if (sourcemapOutput) {
|
|
212
|
+
// args.push('-output-source-map');
|
|
213
|
+
// }
|
|
214
214
|
console.log(
|
|
215
215
|
'Running hermesc: ' + hermesCommand + ' ' + args.join(' ') + '\n',
|
|
216
216
|
);
|
package/src/package.js
CHANGED
|
@@ -53,6 +53,7 @@ export const commands = {
|
|
|
53
53
|
if (!fn || !fn.endsWith('.ipa')) {
|
|
54
54
|
throw new Error('使用方法: pushy uploadIpa ipa后缀文件');
|
|
55
55
|
}
|
|
56
|
+
const { note = '' } = options;
|
|
56
57
|
const {
|
|
57
58
|
versionName,
|
|
58
59
|
buildTime,
|
|
@@ -79,17 +80,19 @@ export const commands = {
|
|
|
79
80
|
name: versionName,
|
|
80
81
|
hash,
|
|
81
82
|
buildTime,
|
|
83
|
+
note,
|
|
82
84
|
});
|
|
83
85
|
saveToLocal(fn, `${appId}/package/${id}.ipa`);
|
|
84
86
|
console.log(
|
|
85
87
|
`已成功上传ipa原生包(id: ${id}, version: ${versionName}, buildTime: ${buildTime})`,
|
|
86
88
|
);
|
|
87
89
|
},
|
|
88
|
-
uploadApk: async function ({ args }) {
|
|
90
|
+
uploadApk: async function ({ args, options }) {
|
|
89
91
|
const fn = args[0];
|
|
90
92
|
if (!fn || !fn.endsWith('.apk')) {
|
|
91
93
|
throw new Error('使用方法: pushy uploadApk apk后缀文件');
|
|
92
94
|
}
|
|
95
|
+
const { note = '' } = options;
|
|
93
96
|
const {
|
|
94
97
|
versionName,
|
|
95
98
|
buildTime,
|
|
@@ -116,6 +119,7 @@ export const commands = {
|
|
|
116
119
|
name: versionName,
|
|
117
120
|
hash,
|
|
118
121
|
buildTime,
|
|
122
|
+
note,
|
|
119
123
|
});
|
|
120
124
|
saveToLocal(fn, `${appId}/package/${id}.apk`);
|
|
121
125
|
console.log(
|