mirror of
https://gitcode.com/gh_mirrors/re/react-native-pushy.git
synced 2025-10-09 01:25:14 +08:00
working
This commit is contained in:
@@ -27,5 +27,22 @@ export const commands = {
|
||||
name,
|
||||
hash,
|
||||
});
|
||||
}
|
||||
console.log('Ok.');
|
||||
},
|
||||
uploadApk: async function({args}) {
|
||||
const fn = args[0];
|
||||
if (!fn) {
|
||||
throw new Error('Usage: pushy uploadApk <ipaFile>');
|
||||
}
|
||||
const name = await getApkVersion(fn);
|
||||
const {appId} = await getSelectedApp('android');
|
||||
|
||||
const {hash} = await uploadFile(fn);
|
||||
|
||||
await post(`/app/${appId}/package/create`, {
|
||||
name,
|
||||
hash,
|
||||
});
|
||||
console.log('Ok.');
|
||||
},
|
||||
};
|
||||
|
Reference in New Issue
Block a user