1
0
mirror of https://gitcode.com/gh_mirrors/re/react-native-pushy.git synced 2025-10-09 01:25:14 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee
This commit is contained in:
tdzl2003
2016-04-03 15:09:21 +08:00
parent d0037f1217
commit c2c3760fb5
4 changed files with 69 additions and 1 deletions

View File

@@ -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.');
},
};