implement pushy update
This commit is contained in:
parent
c89fd2f3c6
commit
8a0d48dc62
@ -5,6 +5,7 @@
|
|||||||
const {
|
const {
|
||||||
get,
|
get,
|
||||||
post,
|
post,
|
||||||
|
put,
|
||||||
uploadFile,
|
uploadFile,
|
||||||
} = require('./api');
|
} = require('./api');
|
||||||
import { question } from './utils';
|
import { question } from './utils';
|
||||||
@ -100,7 +101,9 @@ export const commands = {
|
|||||||
const { appId } = await getSelectedApp(platform);
|
const { appId } = await getSelectedApp(platform);
|
||||||
const version = await chooseVersion(appId);
|
const version = await chooseVersion(appId);
|
||||||
const pkg = await choosePackage(appId);
|
const pkg = await choosePackage(appId);
|
||||||
console.log(version);
|
await put(`/app/${appId}/package/${pkg.id}`, {
|
||||||
console.log(pkg);
|
versionId: version.id,
|
||||||
|
});
|
||||||
|
console.log('Ok.');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user