mirror of
https://gitcode.com/github-mirrors/react-native-update-cli.git
synced 2025-10-09 03:55:15 +08:00
seperate key name
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user