1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

implement pushy update

This commit is contained in:
tdzl2003 2016-04-03 18:07:46 +08:00
parent c89fd2f3c6
commit 8a0d48dc62

View File

@ -5,6 +5,7 @@
const {
get,
post,
put,
uploadFile,
} = require('./api');
import { question } from './utils';
@ -100,7 +101,9 @@ export const commands = {
const { appId } = await getSelectedApp(platform);
const version = await chooseVersion(appId);
const pkg = await choosePackage(appId);
console.log(version);
console.log(pkg);
await put(`/app/${appId}/package/${pkg.id}`, {
versionId: version.id,
});
console.log('Ok.');
}
};