1
0
mirror of https://gitcode.com/github-mirrors/react-native-update-cli.git synced 2025-10-09 03:55:15 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee

seperate key name

This commit is contained in:
sunnylqm
2020-03-16 19:10:02 +08:00
parent 15b82b440e
commit a6477b4f0f
5 changed files with 27 additions and 5 deletions

View File

@@ -8,6 +8,10 @@ import { question, saveToLocal } from './utils';
import { checkPlatform, getSelectedApp } from './app';
import { getApkInfo, getIpaInfo } from './utils';
import uid from 'uid-safe';
const uidSync = uid.sync;
const Table = require('tty-table');
export async function listPackage(appId) {
@@ -53,7 +57,7 @@ export const commands = {
const { versionName, buildTime } = await getIpaInfo(fn);
const { appId } = await getSelectedApp('ios');
const { hash } = await uploadFile(fn);
const { hash } = await uploadFile(fn, `i/${uidSync(19)}`);
const { id } = await post(`/app/${appId}/package/create`, {
name: versionName,
@@ -71,7 +75,7 @@ export const commands = {
const { versionName, buildTime } = await getApkInfo(fn);
const { appId } = await getSelectedApp('android');
const { hash } = await uploadFile(fn);
const { hash } = await uploadFile(fn, `a/${uidSync(19)}`);
const { id } = await post(`/app/${appId}/package/create`, {
name: versionName,