UNPKG

shipthis

Version:

ShipThis manages building and uploading your Godot games to the App Store and Google Play.

84 lines (81 loc) 2.82 kB
import { jsx, jsxs } from 'react/jsx-runtime'; import { Flags } from '@oclif/core'; import { render, Box } from 'ink'; import { c as BaseGameCommand, P as Platform } from '../../../index-BwnzoldS.js'; import 'ink-spinner'; import 'node:crypto'; import 'node:fs'; import 'node:path'; import 'node:readline'; import 'node:url'; import 'readline-sync'; import 'luxon'; import 'axios'; import 'isomorphic-git'; import '@tanstack/react-query'; import 'react'; import 'crypto-js'; import 'uuid'; import 'fast-glob'; import 'yazl'; import 'socket.io-client'; import 'fullscreen-ink'; import { G as GameStatusDetails } from '../../../GameStatus-joyHPy0f.js'; import 'string-length'; import 'strip-ansi'; import 'open'; import '@inkjs/ui'; import '../../../ejs-DirFZbza.js'; import 'marked'; import 'marked-terminal'; import 'qrcode'; import '../../../index-hoHfGrjg.js'; import { A as AppleAppDetails, a as AppleBundleIdDetails } from '../../../AppleBundleIdDetails-N_j1wv6f.js'; import { C as CommandGame } from '../../../CommandGame-D2NqytWc.js'; import '@expo/apple-utils/build/index.js'; import 'deepmerge'; import 'ini'; import '../../../index-CJWMt1s-.js'; import '../../../StatusTable-DzRWcMr4.js'; import '../../../Title-BCQtayg6.js'; import '../../../NextSteps-DbJHmscQ.js'; import 'fs'; import 'path'; import '../../../useAndroidServiceAccountTestResult-CwKeW0ED.js'; import '../../../useAppleApp-BZc_cNa-.js'; import '../../../Table-FaNgpyeq.js'; import '../../../useAppleBundleId-DvMXAvWD.js'; import '../../../Command-DN1j3tjt.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 };