mirror of
https://gitcode.com/gh_mirrors/re/react-native-pushy.git
synced 2025-10-08 21:55:14 +08:00
support no-interaction usage.
This commit is contained in:
@@ -52,11 +52,11 @@ export const commands = {
|
||||
|
||||
const {hash} = await uploadFile(fn);
|
||||
|
||||
await post(`/app/${appId}/package/create`, {
|
||||
const {id} = await post(`/app/${appId}/package/create`, {
|
||||
name,
|
||||
hash,
|
||||
});
|
||||
console.log('Ok.');
|
||||
console.log('Ipa uploaded: id');
|
||||
},
|
||||
uploadApk: async function({args}) {
|
||||
const fn = args[0];
|
||||
@@ -68,11 +68,11 @@ export const commands = {
|
||||
|
||||
const {hash} = await uploadFile(fn);
|
||||
|
||||
await post(`/app/${appId}/package/create`, {
|
||||
const {id} = await post(`/app/${appId}/package/create`, {
|
||||
name,
|
||||
hash,
|
||||
});
|
||||
console.log('Ok.');
|
||||
console.log('Apk uploaded: id');
|
||||
},
|
||||
packages: async function({options}) {
|
||||
const platform = checkPlatform(options.platform || await question('Platform(ios/android):'));
|
||||
|
Reference in New Issue
Block a user