shipthis 0.1.30 → 0.1.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +122 -41
- package/assets/markdown/create-google-play-game.md +2 -4
- package/assets/markdown/ship-success.md +1 -1
- package/dist/{AppleBundleIdDetails-Fp5COwTa.js → AppleBundleIdDetails-6H3cNWxw.js} +17 -19
- package/dist/{Command-1p5alCz3.js → Command-WPpmLPkL.js} +13 -12
- package/dist/CommandGame-cxzWG4nT.js +7 -0
- package/dist/{Create-1xAdntNl.js → Create-3Ob8sjik.js} +20 -20
- package/dist/GameStatus-BQEtVKvv.js +137 -0
- package/dist/{Import-CzC-M4ln.js → Import-CFuPDI0K.js} +33 -35
- package/dist/{JobLogTail-CZxoMSd5.js → JobLogTail-0CBLoG8N.js} +53 -52
- package/dist/{JobProgress-BjNgtIjm.js → JobProgress-lKqVT88m.js} +46 -37
- package/dist/{JobStatusTable-BB-PWlwj.js → JobStatusTable-C_ZsZJCm.js} +14 -13
- package/dist/{NextSteps-CK9zHOCt.js → NextSteps-DbJHmscQ.js} +1 -3
- package/dist/{ProgressSpinner-6pw1T8Iw.js → ProgressSpinner-DGcakQSK.js} +1 -1
- package/dist/{ProjectCredentialsTable-DyZep993.js → ProjectCredentialsTable-B5pHOnGu.js} +11 -10
- package/dist/{StatusTable-Dm5St4g-.js → StatusTable-DzRWcMr4.js} +7 -9
- package/dist/{Table-CvM6pccN.js → Table-FaNgpyeq.js} +15 -15
- package/dist/{UserCredentialsTable-BraKyDWT.js → UserCredentialsTable-3W3qesh7.js} +18 -19
- package/dist/{baseAppleCommand-BHRIBtTj.js → baseAppleCommand-BGV088--.js} +1 -1
- package/dist/{baseGameAndroidCommand-SrDRbhAG.js → baseGameAndroidCommand-CsemgVjp.js} +23 -23
- package/dist/commands/apple/apiKey/create.js +35 -35
- package/dist/commands/apple/apiKey/export.js +26 -26
- package/dist/commands/apple/apiKey/import.js +27 -27
- package/dist/commands/apple/apiKey/status.js +31 -31
- package/dist/commands/apple/certificate/create.js +39 -39
- package/dist/commands/apple/certificate/export.js +26 -26
- package/dist/commands/apple/certificate/import.js +27 -27
- package/dist/commands/apple/certificate/status.js +31 -31
- package/dist/commands/apple/login.js +15 -15
- package/dist/commands/apple/status.js +28 -28
- package/dist/commands/dashboard.js +10 -10
- package/dist/commands/game/android/apiKey/connect.js +28 -28
- package/dist/commands/game/android/apiKey/create.js +28 -28
- package/dist/commands/game/android/apiKey/export.js +29 -29
- package/dist/commands/game/android/apiKey/import.js +31 -31
- package/dist/commands/game/android/apiKey/invite.js +14 -14
- package/dist/commands/game/android/apiKey/status.js +29 -29
- package/dist/commands/game/android/keyStore/create.js +24 -24
- package/dist/commands/game/android/keyStore/export.js +28 -28
- package/dist/commands/game/android/keyStore/import.js +35 -35
- package/dist/commands/game/android/keyStore/status.js +26 -26
- package/dist/commands/game/android/status.js +14 -58
- package/dist/commands/game/build/download.js +24 -24
- package/dist/commands/game/build/list.js +37 -37
- package/dist/commands/game/create.js +15 -15
- package/dist/commands/game/details.js +35 -36
- package/dist/commands/game/export.js +12 -12
- package/dist/commands/game/ios/app/addTester.js +24 -24
- package/dist/commands/game/ios/app/create.js +24 -24
- package/dist/commands/game/ios/app/status.js +29 -29
- package/dist/commands/game/ios/app/sync.js +31 -31
- package/dist/commands/game/ios/profile/create.js +30 -30
- package/dist/commands/game/ios/profile/export.js +28 -28
- package/dist/commands/game/ios/profile/import.js +32 -32
- package/dist/commands/game/ios/profile/status.js +36 -36
- package/dist/commands/game/ios/status.js +46 -58
- package/dist/commands/game/ios/wizard.js +31 -31
- package/dist/commands/game/job/list.js +34 -34
- package/dist/commands/game/job/status.js +31 -31
- package/dist/commands/game/list.js +45 -41
- package/dist/commands/game/ship.js +73 -70
- package/dist/commands/game/status.js +38 -82
- package/dist/commands/game/wizard.js +271 -307
- package/dist/commands/internal/fastlane.js +15 -17
- package/dist/commands/internal/readme.js +38 -36
- package/dist/commands/login.js +14 -14
- package/dist/commands/status.js +35 -33
- package/dist/{export-BKn02-NH.js → export-CXsVPXA1.js} +5 -5
- package/dist/{git-DREGq-jc.js → git-BpsfNFZ_.js} +8 -8
- package/dist/{import-CRMaNBVF.js → import-DGvG5REx.js} +14 -14
- package/dist/{index-DxzXU9Hd.js → index-BhhiXbey.js} +244 -221
- package/dist/{index-OZi8bvu8.js → index-C03TV1_J.js} +54 -38
- package/dist/{index-BTAL7EB_.js → index-C66Dd8Xc.js} +80 -79
- package/dist/{index-35Eswf6F.js → index-CGBdOm1q.js} +43 -27
- package/dist/{index--EbYyBAZ.js → index-CS9Gwcb0.js} +41 -43
- package/dist/{index-u1aj1OQW.js → index-CtTI85m-.js} +6 -6
- package/dist/{upload-Bw0zrS4M.js → upload-8y5MQEm9.js} +22 -22
- package/dist/{useAndroidServiceAccountTestResult-CJLIEYmA.js → useAndroidServiceAccountTestResult-DZk5SMxI.js} +11 -13
- package/dist/{useAppleApp-cnb8gX0x.js → useAppleApp-DWYGURwU.js} +4 -4
- package/dist/{useAppleBundleId-B0Etav8g.js → useAppleBundleId-PsTJ2g1B.js} +6 -6
- package/dist/{useProjectCredentials-DX3e_PPc.js → useProjectCredentials-BEphqa18.js} +10 -12
- package/dist/{useWebSocket-BOCa8v6o.js → useWebSocket-5PYa2QER.js} +1 -1
- package/dist/utils/help.js +4 -4
- package/package.json +4 -2
- package/dist/CommandGame-Z4eUQBjn.js +0 -9
- package/dist/{RunWithSpinner-BVXNWGD3.js → RunWithSpinner-gMVA07bZ.js} +2 -2
|
@@ -1,112 +1,68 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { render } from 'ink';
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
2
|
import { Flags } from '@oclif/core';
|
|
4
|
-
import '
|
|
5
|
-
import '../../index-
|
|
6
|
-
import { B as BaseAuthenticatedCommand, F as getProject, P as Platform, k as getProjectPlatformProgress, b as getShortDate } from '../../index-DxzXU9Hd.js';
|
|
3
|
+
import { render } from 'ink';
|
|
4
|
+
import { B as BaseAuthenticatedCommand } from '../../index-BhhiXbey.js';
|
|
7
5
|
import 'ink-spinner';
|
|
8
|
-
import '
|
|
6
|
+
import 'node:crypto';
|
|
7
|
+
import 'node:fs';
|
|
8
|
+
import 'node:path';
|
|
9
|
+
import 'node:readline';
|
|
10
|
+
import 'node:url';
|
|
11
|
+
import 'readline-sync';
|
|
12
|
+
import 'luxon';
|
|
9
13
|
import 'axios';
|
|
14
|
+
import 'isomorphic-git';
|
|
10
15
|
import '@tanstack/react-query';
|
|
11
|
-
import '
|
|
16
|
+
import 'react';
|
|
17
|
+
import 'crypto-js';
|
|
12
18
|
import 'uuid';
|
|
19
|
+
import 'fast-glob';
|
|
13
20
|
import 'yazl';
|
|
14
|
-
import
|
|
21
|
+
import 'socket.io-client';
|
|
22
|
+
import 'fullscreen-ink';
|
|
23
|
+
import { a as GameStatus$1 } from '../../GameStatus-BQEtVKvv.js';
|
|
24
|
+
import 'string-length';
|
|
25
|
+
import 'strip-ansi';
|
|
15
26
|
import 'open';
|
|
27
|
+
import '@inkjs/ui';
|
|
16
28
|
import 'marked';
|
|
17
29
|
import 'marked-terminal';
|
|
18
|
-
import 'path';
|
|
19
|
-
import { N as NextSteps } from '../../NextSteps-CK9zHOCt.js';
|
|
20
30
|
import 'qrcode';
|
|
21
|
-
import
|
|
22
|
-
import '
|
|
23
|
-
import 'strip-ansi';
|
|
24
|
-
import 'luxon';
|
|
25
|
-
import 'fast-glob';
|
|
26
|
-
import { C as Command } from '../../Command-1p5alCz3.js';
|
|
27
|
-
import 'socket.io-client';
|
|
28
|
-
import '../../useAndroidServiceAccountTestResult-CJLIEYmA.js';
|
|
31
|
+
import '../../index-C66Dd8Xc.js';
|
|
32
|
+
import { C as CommandGame } from '../../CommandGame-cxzWG4nT.js';
|
|
29
33
|
import '@expo/apple-utils/build/index.js';
|
|
30
|
-
import 'crypto-js';
|
|
31
|
-
import 'crypto';
|
|
32
|
-
import 'readline-sync';
|
|
33
|
-
import 'node:readline';
|
|
34
|
-
import 'node:path';
|
|
35
|
-
import 'node:url';
|
|
36
|
-
import 'isomorphic-git';
|
|
37
|
-
import 'ini';
|
|
38
34
|
import 'deepmerge';
|
|
35
|
+
import 'ini';
|
|
36
|
+
import '../../index-CGBdOm1q.js';
|
|
37
|
+
import '../../StatusTable-DzRWcMr4.js';
|
|
39
38
|
import '../../Title-BCQtayg6.js';
|
|
39
|
+
import '../../NextSteps-DbJHmscQ.js';
|
|
40
|
+
import '../../useAndroidServiceAccountTestResult-DZk5SMxI.js';
|
|
41
|
+
import '../../Command-WPpmLPkL.js';
|
|
40
42
|
|
|
41
|
-
function getSteps(platform, progress) {
|
|
42
|
-
if (!progress) return [];
|
|
43
|
-
switch (platform) {
|
|
44
|
-
case Platform.ANDROID:
|
|
45
|
-
return [
|
|
46
|
-
!progress.hasCredentialsForPlatform && "$ shipthis game android keyStore create",
|
|
47
|
-
!progress.hasApiKeyForPlatform && "$ shipthis game android apiKey create",
|
|
48
|
-
progress.hasCredentialsForPlatform && progress.hasApiKeyForPlatform && "$ shipthis game ship"
|
|
49
|
-
].filter(Boolean);
|
|
50
|
-
case Platform.IOS:
|
|
51
|
-
return [
|
|
52
|
-
!progress.hasApiKeyForPlatform && "$ shipthis apple apiKey create",
|
|
53
|
-
!progress.hasCredentialsForPlatform && "$ shipthis game ios profile create",
|
|
54
|
-
progress.hasApiKeyForPlatform && progress.hasCredentialsForPlatform && "$ shipthis game ship"
|
|
55
|
-
].filter(Boolean);
|
|
56
|
-
default:
|
|
57
|
-
throw new Error("Invalid platform");
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
43
|
class GameStatus extends BaseAuthenticatedCommand {
|
|
61
44
|
static args = {};
|
|
62
45
|
static description = "Shows the status of the current game.";
|
|
63
46
|
static examples = [
|
|
64
47
|
"<%= config.bin %> <%= command.id %>",
|
|
65
|
-
"<%= config.bin %> <%= command.id %> --gameId 0c179fc4"
|
|
48
|
+
"<%= config.bin %> <%= command.id %> --gameId 0c179fc4",
|
|
49
|
+
"<%= config.bin %> <%= command.id %> --platform ios"
|
|
66
50
|
];
|
|
67
51
|
static flags = {
|
|
68
|
-
gameId: Flags.string({ char: "g", description: "The ID of the game" })
|
|
52
|
+
gameId: Flags.string({ char: "g", description: "The ID of the game" }),
|
|
53
|
+
platform: Flags.string({
|
|
54
|
+
char: "p",
|
|
55
|
+
description: "The platform to check status for (ios, android)",
|
|
56
|
+
options: ["android", "ios"]
|
|
57
|
+
})
|
|
69
58
|
};
|
|
70
59
|
async run() {
|
|
71
|
-
const gameId =
|
|
60
|
+
const gameId = this.getGameId();
|
|
72
61
|
if (!gameId) {
|
|
73
62
|
this.error("No game found - please run `shipthis game wizard` or specify a game ID with --gameId", { exit: 1 });
|
|
74
63
|
}
|
|
75
|
-
const game = await getProject(gameId);
|
|
76
|
-
const hasConfiguredIos = !!game.details?.iosBundleId;
|
|
77
|
-
const hasConfiguredAndroid = !!game.details?.androidPackageName;
|
|
78
|
-
let statuses = {
|
|
79
|
-
[Platform.IOS]: hasConfiguredIos ? await getProjectPlatformProgress(game.id, Platform.IOS) : null,
|
|
80
|
-
[Platform.ANDROID]: hasConfiguredAndroid ? await getProjectPlatformProgress(game.id, Platform.ANDROID) : null
|
|
81
|
-
};
|
|
82
|
-
let steps = [];
|
|
83
|
-
if (hasConfiguredIos) steps = steps.concat(getSteps(Platform.IOS, statuses[Platform.IOS]));
|
|
84
|
-
if (hasConfiguredAndroid) steps = steps.concat(getSteps(Platform.ANDROID, statuses[Platform.ANDROID]));
|
|
85
|
-
const progressToStatuses = (progress) => {
|
|
86
|
-
const { platform, ...rest } = progress;
|
|
87
|
-
return makeHumanReadable(rest);
|
|
88
|
-
};
|
|
89
64
|
render(
|
|
90
|
-
/* @__PURE__ */
|
|
91
|
-
/* @__PURE__ */ jsx(
|
|
92
|
-
StatusTable,
|
|
93
|
-
{
|
|
94
|
-
marginBottom: 1,
|
|
95
|
-
title: "Game Details",
|
|
96
|
-
statuses: {
|
|
97
|
-
"Game ID": getShortUUID(game.id),
|
|
98
|
-
Name: game.name,
|
|
99
|
-
Version: `${game.details?.semanticVersion || "0.0.1"}`,
|
|
100
|
-
"Build Number": `${game.details?.buildNumber || 1}`,
|
|
101
|
-
"Created At": getShortDate(game.createdAt),
|
|
102
|
-
"Game Engine": `${game.details?.gameEngine || "godot"} ${game.details?.gameEngineVersion || "4.3"}`
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
),
|
|
106
|
-
statuses[Platform.IOS] && /* @__PURE__ */ jsx(StatusTable, { title: "iOS Status", statuses: progressToStatuses(statuses[Platform.IOS]) }),
|
|
107
|
-
statuses[Platform.ANDROID] && /* @__PURE__ */ jsx(StatusTable, { title: "Android Status", statuses: progressToStatuses(statuses[Platform.ANDROID]) }),
|
|
108
|
-
/* @__PURE__ */ jsx(NextSteps, { steps })
|
|
109
|
-
] })
|
|
65
|
+
/* @__PURE__ */ jsx(CommandGame, { command: this, children: /* @__PURE__ */ jsx(GameStatus$1, { onComplete: (exitCode) => process.exit(exitCode) }) })
|
|
110
66
|
);
|
|
111
67
|
}
|
|
112
68
|
}
|