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

Revert "seperate key name"

This reverts commit a6477b4f0f.

# Conflicts:
#	src/package.js
This commit is contained in:
sunnylqm
2020-03-18 16:06:03 +08:00
parent f1dd31cd56
commit 83fe70f840
4 changed files with 3 additions and 22 deletions

View File

@@ -8,10 +8,6 @@ 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) {
@@ -57,7 +53,7 @@ export const commands = {
const { versionName, buildTime } = await getIpaInfo(fn);
const { appId } = await getSelectedApp('ios');
const { hash } = await uploadFile(fn, `i/${uidSync(19)}`);
const { hash } = await uploadFile(fn);
const { id } = await post(`/app/${appId}/package/create`, {
name: versionName,
@@ -75,7 +71,7 @@ export const commands = {
const { versionName, buildTime } = await getApkInfo(fn);
const { appId } = await getSelectedApp('android');
const { hash } = await uploadFile(fn, `a/${uidSync(19)}`);
const { hash } = await uploadFile(fn);
const { id } = await post(`/app/${appId}/package/create`, {
name: versionName,

View File

@@ -12,8 +12,6 @@ import { question, saveToLocal } from './utils';
import { checkPlatform, getSelectedApp } from './app';
import { choosePackage } from './package';
import uid from 'uid-safe';
const uidSync = uid.sync;
async function showVersion(appId, offset) {
const { data, count } = await get(`/app/${appId}/version/list`);
@@ -80,7 +78,7 @@ export const commands = {
const platform = checkPlatform(options.platform || await question('Platform(ios/android):'));
const { appId } = await getSelectedApp(platform);
const { hash } = await uploadFile(fn, `v/${uidSync(19)}`);
const { hash } = await uploadFile(fn);
const { id } = await post(`/app/${appId}/version/create`, {
name: name || await question('Enter version name:') || '(未命名)',