shipthis
Version:
ShipThis manages building and uploading your Godot games to the App Store and Google Play.
82 lines (79 loc) • 2.72 kB
JavaScript
import { jsx, jsxs } from 'react/jsx-runtime';
import { Flags } from '@oclif/core';
import { render, Box } from 'ink';
import 'node:fs';
import 'axios';
import 'crypto-js';
import 'uuid';
import { P as Platform } from '../../../baseCommand-CTn3KGH3.js';
import 'luxon';
import 'node:path';
import 'chalk';
import 'node:crypto';
import 'node:readline';
import 'node:url';
import 'readline-sync';
import 'isomorphic-git';
import '@tanstack/react-query';
import 'react';
import 'fast-glob';
import 'yazl';
import 'socket.io-client';
import 'fullscreen-ink';
import 'ink-spinner';
import { G as GameStatusDetails } from '../../../GameStatus-ZSe-qG3y.js';
import 'string-length';
import 'strip-ansi';
import 'open';
import '@inkjs/ui';
import { c as BaseGameCommand } from '../../../baseGameCommand-8VL7xe-O.js';
import 'marked';
import 'marked-terminal';
import 'qrcode';
import { A as AppleAppDetails, a as AppleBundleIdDetails } from '../../../AppleBundleIdDetails-BJC7GCx_.js';
import { C as CommandGame } from '../../../CommandGame-CuvuH-z6.js';
import '@expo/apple-utils/build/index.js';
import 'deepmerge';
import 'ini';
import '../../../StatusTable-DzRWcMr4.js';
import '../../../Title-BCQtayg6.js';
import '../../../NextSteps-DbJHmscQ.js';
import 'fs';
import 'path';
import '../../../useAppleApp-CR847GWc.js';
import '../../../Table-FaNgpyeq.js';
import '../../../useAppleBundleId-BnwPmVEu.js';
import '../../../Command-Cj6F5B5a.js';
class GameIosStatus extends BaseGameCommand {
static args = {};
static description = "Shows the Game iOS Platform status. If --gameId is not provided it will look in the current directory.";
static examples = [
"<%= config.bin %> <%= command.id %>",
"<%= config.bin %> <%= command.id %> --gameId 0c179fc4"
];
static flags = {
gameId: Flags.string({ char: "g", description: "The ID of the game" })
};
async run() {
const game = await this.getGame();
const authState = await this.refreshAppleAuthState();
const ctx = authState.context;
render(
/* @__PURE__ */ jsx(CommandGame, { command: this, children: /* @__PURE__ */ jsx(
GameStatusDetails,
{
gameId: game.id,
onComplete: (exitCode) => {
setTimeout(() => process.exit(exitCode), 2e3);
},
platforms: [Platform.IOS],
children: /* @__PURE__ */ jsxs(Box, { flexDirection: "column", gap: 0, marginTop: 1, children: [
/* @__PURE__ */ jsx(AppleAppDetails, { ctx, iosBundleId: game.details?.iosBundleId }),
/* @__PURE__ */ jsx(AppleBundleIdDetails, { ctx, iosBundleId: game.details?.iosBundleId })
] })
}
) })
);
}
}
export { GameIosStatus as default };