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,41 +1,41 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { render } from 'ink';
|
|
3
2
|
import { Flags } from '@oclif/core';
|
|
4
|
-
import '
|
|
5
|
-
import '../../index-
|
|
6
|
-
import { c as BaseGameCommand, D as DetailsFlags, t as GameEngine } from '../../index-DxzXU9Hd.js';
|
|
3
|
+
import { render } from 'ink';
|
|
4
|
+
import { c as BaseGameCommand, D as DetailsFlags, s as GameEngine } from '../../index-BhhiXbey.js';
|
|
7
5
|
import 'ink-spinner';
|
|
6
|
+
import { i as isValidSemVer } from '../../index-CGBdOm1q.js';
|
|
7
|
+
import 'react';
|
|
8
|
+
import 'node:fs';
|
|
8
9
|
import 'axios';
|
|
9
10
|
import 'crypto-js';
|
|
10
11
|
import 'uuid';
|
|
11
|
-
import 'fs';
|
|
12
12
|
import 'luxon';
|
|
13
|
-
import '@inkjs/ui';
|
|
14
13
|
import '@tanstack/react-query';
|
|
14
|
+
import 'fast-glob';
|
|
15
15
|
import 'yazl';
|
|
16
|
-
import
|
|
16
|
+
import 'socket.io-client';
|
|
17
|
+
import 'fullscreen-ink';
|
|
18
|
+
import 'string-length';
|
|
19
|
+
import 'strip-ansi';
|
|
20
|
+
import { S as StatusTable } from '../../StatusTable-DzRWcMr4.js';
|
|
17
21
|
import 'open';
|
|
22
|
+
import '@inkjs/ui';
|
|
23
|
+
import 'node:path';
|
|
18
24
|
import 'marked';
|
|
19
25
|
import 'marked-terminal';
|
|
20
|
-
import 'path';
|
|
21
26
|
import 'qrcode';
|
|
22
|
-
import
|
|
23
|
-
import '
|
|
24
|
-
import 'strip-ansi';
|
|
25
|
-
import 'fast-glob';
|
|
26
|
-
import { C as Command } from '../../Command-1p5alCz3.js';
|
|
27
|
-
import 'socket.io-client';
|
|
28
|
-
import '../../useAndroidServiceAccountTestResult-CJLIEYmA.js';
|
|
27
|
+
import '../../index-C66Dd8Xc.js';
|
|
28
|
+
import { C as Command } from '../../Command-WPpmLPkL.js';
|
|
29
29
|
import '@expo/apple-utils/build/index.js';
|
|
30
|
-
import 'crypto';
|
|
31
|
-
import 'readline-sync';
|
|
30
|
+
import 'node:crypto';
|
|
32
31
|
import 'node:readline';
|
|
33
|
-
import 'node:path';
|
|
34
32
|
import 'node:url';
|
|
33
|
+
import 'readline-sync';
|
|
35
34
|
import 'isomorphic-git';
|
|
36
|
-
import 'ini';
|
|
37
35
|
import 'deepmerge';
|
|
36
|
+
import 'ini';
|
|
38
37
|
import '../../Title-BCQtayg6.js';
|
|
38
|
+
import '../../useAndroidServiceAccountTestResult-DZk5SMxI.js';
|
|
39
39
|
|
|
40
40
|
class GameDetails extends BaseGameCommand {
|
|
41
41
|
static args = {};
|
|
@@ -52,17 +52,17 @@ class GameDetails extends BaseGameCommand {
|
|
|
52
52
|
...DetailsFlags
|
|
53
53
|
};
|
|
54
54
|
async run() {
|
|
55
|
-
const {
|
|
55
|
+
const { force, gameId, ...valueFlags } = this.flags;
|
|
56
56
|
const {
|
|
57
|
-
|
|
58
|
-
semanticVersion,
|
|
57
|
+
androidPackageName,
|
|
59
58
|
buildNumber,
|
|
60
59
|
gameEngine,
|
|
61
60
|
gameEngineVersion,
|
|
62
|
-
iosBundleId,
|
|
63
|
-
androidPackageName,
|
|
64
61
|
gcpProjectId,
|
|
65
|
-
gcpServiceAccountId
|
|
62
|
+
gcpServiceAccountId,
|
|
63
|
+
iosBundleId,
|
|
64
|
+
name,
|
|
65
|
+
semanticVersion
|
|
66
66
|
} = valueFlags;
|
|
67
67
|
if (semanticVersion && !isValidSemVer(semanticVersion))
|
|
68
68
|
throw new Error(`Invalid semantic version: ${semanticVersion}`);
|
|
@@ -71,7 +71,6 @@ class GameDetails extends BaseGameCommand {
|
|
|
71
71
|
if (gameEngine && gameEngine !== GameEngine.GODOT) throw new Error(`Game engine ${gameEngine} not supported`);
|
|
72
72
|
let game = await this.getGame();
|
|
73
73
|
const update = {
|
|
74
|
-
name: name || game.name,
|
|
75
74
|
details: {
|
|
76
75
|
...game.details,
|
|
77
76
|
...semanticVersion && { semanticVersion },
|
|
@@ -82,7 +81,8 @@ class GameDetails extends BaseGameCommand {
|
|
|
82
81
|
...androidPackageName && { androidPackageName },
|
|
83
82
|
...gcpProjectId && { gcpProjectId },
|
|
84
83
|
...gcpServiceAccountId && { gcpServiceAccountId }
|
|
85
|
-
}
|
|
84
|
+
},
|
|
85
|
+
name: name || game.name
|
|
86
86
|
};
|
|
87
87
|
if (Object.keys(valueFlags).length > 0) {
|
|
88
88
|
game = await this.updateGame(update);
|
|
@@ -91,22 +91,21 @@ class GameDetails extends BaseGameCommand {
|
|
|
91
91
|
/* @__PURE__ */ jsx(Command, { command: this, children: /* @__PURE__ */ jsx(
|
|
92
92
|
StatusTable,
|
|
93
93
|
{
|
|
94
|
-
title: "Game Details",
|
|
95
94
|
statuses: {
|
|
96
|
-
"Game Name": game.name,
|
|
97
|
-
"Game Engine": game.details?.gameEngine || "Please set!",
|
|
98
|
-
"Game Engine Version": game.details?.gameEngineVersion || "Please set!",
|
|
99
|
-
"iOS Bundle ID": game.details?.iosBundleId || "N/A",
|
|
100
95
|
"Android Package Name": game.details?.androidPackageName || "N/A",
|
|
101
|
-
"Semantic Version": game.details?.semanticVersion || "0.0.1",
|
|
102
96
|
"Build Number": game.details?.buildNumber || 1,
|
|
103
97
|
"GCP Project ID": game.details?.gcpProjectId || "N/A",
|
|
104
|
-
"GCP Service Account ID": game.details?.gcpServiceAccountId || "N/A"
|
|
105
|
-
|
|
98
|
+
"GCP Service Account ID": game.details?.gcpServiceAccountId || "N/A",
|
|
99
|
+
"Game Engine": game.details?.gameEngine || "Please set!",
|
|
100
|
+
"Game Engine Version": game.details?.gameEngineVersion || "Please set!",
|
|
101
|
+
"Game Name": game.name,
|
|
102
|
+
"Semantic Version": game.details?.semanticVersion || "0.0.1",
|
|
103
|
+
"iOS Bundle ID": game.details?.iosBundleId || "N/A"
|
|
104
|
+
},
|
|
105
|
+
title: "Game Details"
|
|
106
106
|
}
|
|
107
107
|
) })
|
|
108
108
|
);
|
|
109
|
-
return;
|
|
110
109
|
}
|
|
111
110
|
}
|
|
112
111
|
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { Args, Flags } from '@oclif/core';
|
|
2
|
-
import { B as BaseAuthenticatedCommand, j as isCWDGodotGame,
|
|
3
|
-
import 'crypto';
|
|
4
|
-
import 'fs';
|
|
5
|
-
import 'readline-sync';
|
|
6
|
-
import 'node:readline';
|
|
2
|
+
import { B as BaseAuthenticatedCommand, j as isCWDGodotGame, E as getProject, v as DEFAULT_SHIPPED_FILES_GLOBS, w as DEFAULT_IGNORED_FILES_GLOBS } from '../../index-BhhiXbey.js';
|
|
3
|
+
import 'node:crypto';
|
|
4
|
+
import 'node:fs';
|
|
7
5
|
import 'node:path';
|
|
6
|
+
import 'node:readline';
|
|
8
7
|
import 'node:url';
|
|
8
|
+
import 'readline-sync';
|
|
9
9
|
import 'luxon';
|
|
10
10
|
import 'axios';
|
|
11
11
|
import 'isomorphic-git';
|
|
12
|
-
import 'react';
|
|
13
12
|
import '@tanstack/react-query';
|
|
14
|
-
import '
|
|
13
|
+
import 'react';
|
|
15
14
|
import 'fast-glob';
|
|
15
|
+
import 'uuid';
|
|
16
16
|
import 'yazl';
|
|
17
17
|
import 'socket.io-client';
|
|
18
|
-
import '
|
|
19
|
-
import '@expo/apple-utils/build/index.js';
|
|
18
|
+
import 'fullscreen-ink';
|
|
20
19
|
import 'crypto-js';
|
|
21
|
-
import '
|
|
20
|
+
import '@expo/apple-utils/build/index.js';
|
|
22
21
|
import 'deepmerge';
|
|
22
|
+
import 'ini';
|
|
23
23
|
|
|
24
24
|
class GameExport extends BaseAuthenticatedCommand {
|
|
25
25
|
static args = {
|
|
@@ -46,9 +46,9 @@ class GameExport extends BaseAuthenticatedCommand {
|
|
|
46
46
|
}
|
|
47
47
|
const project = await getProject(args.game_id);
|
|
48
48
|
await this.setProjectConfig({
|
|
49
|
+
ignoredFilesGlobs: DEFAULT_IGNORED_FILES_GLOBS,
|
|
49
50
|
project,
|
|
50
|
-
shippedFilesGlobs: DEFAULT_SHIPPED_FILES_GLOBS
|
|
51
|
-
ignoredFilesGlobs: DEFAULT_IGNORED_FILES_GLOBS
|
|
51
|
+
shippedFilesGlobs: DEFAULT_SHIPPED_FILES_GLOBS
|
|
52
52
|
});
|
|
53
53
|
await this.config.runCommand("game:status");
|
|
54
54
|
this.exit(0);
|
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { render } from 'ink';
|
|
3
2
|
import { Flags } from '@oclif/core';
|
|
4
|
-
import '
|
|
5
|
-
import '../../../../index-
|
|
6
|
-
import { c as BaseGameCommand, i as BetaGroup } from '../../../../index-DxzXU9Hd.js';
|
|
3
|
+
import { render } from 'ink';
|
|
4
|
+
import { c as BaseGameCommand, i as BetaGroup } from '../../../../index-BhhiXbey.js';
|
|
7
5
|
import 'ink-spinner';
|
|
6
|
+
import { a as getInput } from '../../../../index-CGBdOm1q.js';
|
|
7
|
+
import 'react';
|
|
8
|
+
import 'node:fs';
|
|
8
9
|
import 'axios';
|
|
9
10
|
import 'crypto-js';
|
|
10
11
|
import 'uuid';
|
|
11
|
-
import 'fs';
|
|
12
12
|
import 'luxon';
|
|
13
|
-
import '@inkjs/ui';
|
|
14
13
|
import '@tanstack/react-query';
|
|
14
|
+
import { q as queryAppleApp } from '../../../../useAppleApp-DWYGURwU.js';
|
|
15
|
+
import 'fast-glob';
|
|
15
16
|
import 'yazl';
|
|
16
|
-
import
|
|
17
|
+
import 'socket.io-client';
|
|
18
|
+
import 'fullscreen-ink';
|
|
19
|
+
import 'string-length';
|
|
20
|
+
import 'strip-ansi';
|
|
17
21
|
import 'open';
|
|
22
|
+
import '@inkjs/ui';
|
|
23
|
+
import 'node:path';
|
|
18
24
|
import 'marked';
|
|
19
25
|
import 'marked-terminal';
|
|
20
|
-
import 'path';
|
|
21
26
|
import 'qrcode';
|
|
22
|
-
import { R as RunWithSpinner } from '../../../../RunWithSpinner-
|
|
23
|
-
import '
|
|
24
|
-
import '
|
|
25
|
-
import { q as queryAppleApp } from '../../../../useAppleApp-cnb8gX0x.js';
|
|
26
|
-
import 'fast-glob';
|
|
27
|
-
import { C as Command } from '../../../../Command-1p5alCz3.js';
|
|
28
|
-
import 'socket.io-client';
|
|
29
|
-
import '../../../../useAndroidServiceAccountTestResult-CJLIEYmA.js';
|
|
27
|
+
import { R as RunWithSpinner } from '../../../../RunWithSpinner-gMVA07bZ.js';
|
|
28
|
+
import '../../../../index-C66Dd8Xc.js';
|
|
29
|
+
import { C as Command } from '../../../../Command-WPpmLPkL.js';
|
|
30
30
|
import '@expo/apple-utils/build/index.js';
|
|
31
|
-
import 'crypto';
|
|
32
|
-
import 'readline-sync';
|
|
31
|
+
import 'node:crypto';
|
|
33
32
|
import 'node:readline';
|
|
34
|
-
import 'node:path';
|
|
35
33
|
import 'node:url';
|
|
34
|
+
import 'readline-sync';
|
|
36
35
|
import 'isomorphic-git';
|
|
37
|
-
import 'ini';
|
|
38
36
|
import 'deepmerge';
|
|
37
|
+
import 'ini';
|
|
38
|
+
import '../../../../useAndroidServiceAccountTestResult-DZk5SMxI.js';
|
|
39
39
|
|
|
40
40
|
const TEST_GROUP_NAME = "ShipThis Test Group";
|
|
41
41
|
class GameIosAppAddTester extends BaseGameCommand {
|
|
@@ -43,9 +43,9 @@ class GameIosAppAddTester extends BaseGameCommand {
|
|
|
43
43
|
static description = "Adds a test user to the game in App Store Connect.";
|
|
44
44
|
static examples = ["<%= config.bin %> <%= command.id %>"];
|
|
45
45
|
static flags = {
|
|
46
|
-
gameId: Flags.string({ char: "g", description: "The ID of the game" }),
|
|
47
46
|
email: Flags.string({ char: "e", description: "The email address of the tester" }),
|
|
48
47
|
firstName: Flags.string({ char: "f", description: "The first name of the tester" }),
|
|
48
|
+
gameId: Flags.string({ char: "g", description: "The ID of the game" }),
|
|
49
49
|
lastName: Flags.string({ char: "l", description: "The last name of the tester" })
|
|
50
50
|
};
|
|
51
51
|
async run() {
|
|
@@ -90,8 +90,8 @@ class GameIosAppAddTester extends BaseGameCommand {
|
|
|
90
90
|
if (!shipThisGroup) {
|
|
91
91
|
shipThisGroup = await BetaGroup.createAsync(ctx, {
|
|
92
92
|
id: app.id,
|
|
93
|
-
name: TEST_GROUP_NAME,
|
|
94
93
|
isInternalGroup: true,
|
|
94
|
+
name: TEST_GROUP_NAME,
|
|
95
95
|
publicLinkEnabled: false,
|
|
96
96
|
publicLinkLimit: 1,
|
|
97
97
|
publicLinkLimitEnabled: false
|
|
@@ -111,9 +111,9 @@ class GameIosAppAddTester extends BaseGameCommand {
|
|
|
111
111
|
/* @__PURE__ */ jsx(Command, { command: this, children: /* @__PURE__ */ jsx(
|
|
112
112
|
RunWithSpinner,
|
|
113
113
|
{
|
|
114
|
-
msgInProgress: "Adding test user...",
|
|
115
|
-
msgComplete: "Added test user",
|
|
116
114
|
executeMethod: addTestUser,
|
|
115
|
+
msgComplete: "Added test user",
|
|
116
|
+
msgInProgress: "Adding test user...",
|
|
117
117
|
onComplete: handleComplete
|
|
118
118
|
}
|
|
119
119
|
) })
|
|
@@ -1,52 +1,52 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { render } from 'ink';
|
|
3
2
|
import { Flags } from '@oclif/core';
|
|
4
|
-
import '
|
|
5
|
-
import '../../../../index-
|
|
6
|
-
import { c as BaseGameCommand, d as getGodotAppleBundleIdentifier, e as BundleId, f as App } from '../../../../index-DxzXU9Hd.js';
|
|
3
|
+
import { render } from 'ink';
|
|
4
|
+
import { c as BaseGameCommand, d as getGodotAppleBundleIdentifier, e as BundleId, f as App } from '../../../../index-BhhiXbey.js';
|
|
7
5
|
import 'ink-spinner';
|
|
6
|
+
import { a as getInput, b as generatePackageName } from '../../../../index-CGBdOm1q.js';
|
|
7
|
+
import 'react';
|
|
8
|
+
import 'node:fs';
|
|
8
9
|
import 'axios';
|
|
9
10
|
import 'crypto-js';
|
|
10
11
|
import 'uuid';
|
|
11
|
-
import 'fs';
|
|
12
12
|
import 'luxon';
|
|
13
|
-
import '@inkjs/ui';
|
|
14
13
|
import '@tanstack/react-query';
|
|
14
|
+
import 'fast-glob';
|
|
15
15
|
import 'yazl';
|
|
16
|
-
import
|
|
16
|
+
import 'socket.io-client';
|
|
17
|
+
import 'fullscreen-ink';
|
|
18
|
+
import 'string-length';
|
|
19
|
+
import 'strip-ansi';
|
|
17
20
|
import 'open';
|
|
21
|
+
import '@inkjs/ui';
|
|
22
|
+
import 'node:path';
|
|
18
23
|
import 'marked';
|
|
19
24
|
import 'marked-terminal';
|
|
20
|
-
import 'path';
|
|
21
25
|
import 'qrcode';
|
|
22
|
-
import { R as RunWithSpinner } from '../../../../RunWithSpinner-
|
|
23
|
-
import '
|
|
24
|
-
import '
|
|
25
|
-
import 'fast-glob';
|
|
26
|
-
import { C as Command } from '../../../../Command-1p5alCz3.js';
|
|
27
|
-
import 'socket.io-client';
|
|
28
|
-
import '../../../../useAndroidServiceAccountTestResult-CJLIEYmA.js';
|
|
26
|
+
import { R as RunWithSpinner } from '../../../../RunWithSpinner-gMVA07bZ.js';
|
|
27
|
+
import '../../../../index-C66Dd8Xc.js';
|
|
28
|
+
import { C as Command } from '../../../../Command-WPpmLPkL.js';
|
|
29
29
|
import '@expo/apple-utils/build/index.js';
|
|
30
|
-
import 'crypto';
|
|
31
|
-
import 'readline-sync';
|
|
30
|
+
import 'node:crypto';
|
|
32
31
|
import 'node:readline';
|
|
33
|
-
import 'node:path';
|
|
34
32
|
import 'node:url';
|
|
33
|
+
import 'readline-sync';
|
|
35
34
|
import 'isomorphic-git';
|
|
36
|
-
import 'ini';
|
|
37
35
|
import 'deepmerge';
|
|
36
|
+
import 'ini';
|
|
37
|
+
import '../../../../useAndroidServiceAccountTestResult-DZk5SMxI.js';
|
|
38
38
|
|
|
39
39
|
class GameIosAppCreate extends BaseGameCommand {
|
|
40
40
|
static args = {};
|
|
41
41
|
static description = "Creates an App and BundleId in the Apple Developer Portal.";
|
|
42
42
|
static examples = ["<%= config.bin %> <%= command.id %>"];
|
|
43
43
|
static flags = {
|
|
44
|
-
quiet: Flags.boolean({ char: "q", description: "Avoid output except for interactions and errors" }),
|
|
45
|
-
gameId: Flags.string({ char: "g", description: "The ID of the game" }),
|
|
46
44
|
appName: Flags.string({ char: "n", description: "The name of the App in the Apple Developer Portal" }),
|
|
47
45
|
bundleId: Flags.string({ char: "b", description: "The BundleId in the Apple Developer Portal" }),
|
|
48
|
-
force: Flags.boolean({ char: "f" })
|
|
46
|
+
force: Flags.boolean({ char: "f" }),
|
|
49
47
|
// not used but don't remove or the wizard breaks
|
|
48
|
+
gameId: Flags.string({ char: "g", description: "The ID of the game" }),
|
|
49
|
+
quiet: Flags.boolean({ char: "q", description: "Avoid output except for interactions and errors" })
|
|
50
50
|
};
|
|
51
51
|
async run() {
|
|
52
52
|
const game = await this.getGame();
|
|
@@ -104,9 +104,9 @@ class GameIosAppCreate extends BaseGameCommand {
|
|
|
104
104
|
/* @__PURE__ */ jsx(Command, { command: this, children: /* @__PURE__ */ jsx(
|
|
105
105
|
RunWithSpinner,
|
|
106
106
|
{
|
|
107
|
-
msgInProgress: "Creating App and BundleId in the Apple Developer Portal",
|
|
108
|
-
msgComplete: "App and BundleId created",
|
|
109
107
|
executeMethod: createApp,
|
|
108
|
+
msgComplete: "App and BundleId created",
|
|
109
|
+
msgInProgress: "Creating App and BundleId in the Apple Developer Portal",
|
|
110
110
|
onComplete: handleComplete
|
|
111
111
|
}
|
|
112
112
|
) })
|
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { render } from 'ink';
|
|
3
2
|
import { Flags } from '@oclif/core';
|
|
4
|
-
import '
|
|
5
|
-
import '../../../../index-
|
|
6
|
-
import { c as BaseGameCommand } from '../../../../index-DxzXU9Hd.js';
|
|
3
|
+
import { render } from 'ink';
|
|
4
|
+
import { c as BaseGameCommand } from '../../../../index-BhhiXbey.js';
|
|
7
5
|
import 'ink-spinner';
|
|
8
|
-
import '
|
|
9
|
-
import '
|
|
10
|
-
import 'uuid';
|
|
11
|
-
import 'fs';
|
|
12
|
-
import 'luxon';
|
|
13
|
-
import '@inkjs/ui';
|
|
14
|
-
import '@tanstack/react-query';
|
|
15
|
-
import 'yazl';
|
|
16
|
-
import 'crypto';
|
|
17
|
-
import 'readline-sync';
|
|
18
|
-
import 'node:readline';
|
|
6
|
+
import 'node:crypto';
|
|
7
|
+
import 'node:fs';
|
|
19
8
|
import 'node:path';
|
|
9
|
+
import 'node:readline';
|
|
20
10
|
import 'node:url';
|
|
11
|
+
import 'readline-sync';
|
|
12
|
+
import 'luxon';
|
|
13
|
+
import 'axios';
|
|
21
14
|
import 'isomorphic-git';
|
|
15
|
+
import '@tanstack/react-query';
|
|
16
|
+
import 'react';
|
|
17
|
+
import 'crypto-js';
|
|
18
|
+
import 'uuid';
|
|
22
19
|
import 'fast-glob';
|
|
20
|
+
import 'yazl';
|
|
23
21
|
import 'socket.io-client';
|
|
22
|
+
import 'fullscreen-ink';
|
|
23
|
+
import 'string-length';
|
|
24
|
+
import 'strip-ansi';
|
|
24
25
|
import 'open';
|
|
26
|
+
import '@inkjs/ui';
|
|
25
27
|
import 'marked';
|
|
26
28
|
import 'marked-terminal';
|
|
27
|
-
import '
|
|
28
|
-
import { N as NextSteps } from '../../../../NextSteps-CK9zHOCt.js';
|
|
29
|
+
import { N as NextSteps } from '../../../../NextSteps-DbJHmscQ.js';
|
|
29
30
|
import 'qrcode';
|
|
30
|
-
import '
|
|
31
|
-
import '
|
|
32
|
-
import {
|
|
33
|
-
import { C as Command } from '../../../../Command-1p5alCz3.js';
|
|
34
|
-
import '../../../../index-35Eswf6F.js';
|
|
35
|
-
import '../../../../useAndroidServiceAccountTestResult-CJLIEYmA.js';
|
|
31
|
+
import '../../../../index-C66Dd8Xc.js';
|
|
32
|
+
import { A as AppleAppDetails, a as AppleBundleIdDetails } from '../../../../AppleBundleIdDetails-6H3cNWxw.js';
|
|
33
|
+
import { C as Command } from '../../../../Command-WPpmLPkL.js';
|
|
36
34
|
import '@expo/apple-utils/build/index.js';
|
|
37
|
-
import 'ini';
|
|
38
35
|
import 'deepmerge';
|
|
36
|
+
import 'ini';
|
|
39
37
|
import '../../../../Title-BCQtayg6.js';
|
|
40
|
-
import '../../../../
|
|
41
|
-
import '../../../../
|
|
42
|
-
import '../../../../
|
|
38
|
+
import '../../../../index-CGBdOm1q.js';
|
|
39
|
+
import '../../../../useAndroidServiceAccountTestResult-DZk5SMxI.js';
|
|
40
|
+
import '../../../../useAppleApp-DWYGURwU.js';
|
|
41
|
+
import '../../../../Table-FaNgpyeq.js';
|
|
42
|
+
import '../../../../useAppleBundleId-PsTJ2g1B.js';
|
|
43
43
|
|
|
44
44
|
class GameIosAppStatus extends BaseGameCommand {
|
|
45
45
|
static args = {};
|
|
@@ -55,8 +55,8 @@ class GameIosAppStatus extends BaseGameCommand {
|
|
|
55
55
|
const steps = [];
|
|
56
56
|
render(
|
|
57
57
|
/* @__PURE__ */ jsxs(Command, { command: this, children: [
|
|
58
|
-
/* @__PURE__ */ jsx(AppleAppDetails, { iosBundleId: game.details?.iosBundleId
|
|
59
|
-
/* @__PURE__ */ jsx(AppleBundleIdDetails, { iosBundleId: game.details?.iosBundleId
|
|
58
|
+
/* @__PURE__ */ jsx(AppleAppDetails, { ctx, iosBundleId: game.details?.iosBundleId }),
|
|
59
|
+
/* @__PURE__ */ jsx(AppleBundleIdDetails, { ctx, iosBundleId: game.details?.iosBundleId }),
|
|
60
60
|
/* @__PURE__ */ jsx(NextSteps, { steps })
|
|
61
61
|
] })
|
|
62
62
|
);
|
|
@@ -1,51 +1,51 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { render } from 'ink';
|
|
3
2
|
import { Flags } from '@oclif/core';
|
|
4
|
-
import '
|
|
5
|
-
import '../../../../index-
|
|
6
|
-
import { c as BaseGameCommand, h as CapabilityTypeOption } from '../../../../index-DxzXU9Hd.js';
|
|
3
|
+
import { render } from 'ink';
|
|
4
|
+
import { c as BaseGameCommand, h as CapabilityTypeOption } from '../../../../index-BhhiXbey.js';
|
|
7
5
|
import 'ink-spinner';
|
|
8
|
-
import '
|
|
9
|
-
import '
|
|
10
|
-
import 'uuid';
|
|
11
|
-
import 'fs';
|
|
12
|
-
import 'luxon';
|
|
13
|
-
import '@inkjs/ui';
|
|
14
|
-
import '@tanstack/react-query';
|
|
15
|
-
import 'yazl';
|
|
16
|
-
import 'crypto';
|
|
17
|
-
import 'readline-sync';
|
|
18
|
-
import 'node:readline';
|
|
6
|
+
import 'node:crypto';
|
|
7
|
+
import 'node:fs';
|
|
19
8
|
import 'node:path';
|
|
9
|
+
import 'node:readline';
|
|
20
10
|
import 'node:url';
|
|
11
|
+
import 'readline-sync';
|
|
12
|
+
import 'luxon';
|
|
13
|
+
import 'axios';
|
|
21
14
|
import 'isomorphic-git';
|
|
22
|
-
import
|
|
15
|
+
import '@tanstack/react-query';
|
|
16
|
+
import 'react';
|
|
17
|
+
import 'crypto-js';
|
|
18
|
+
import 'uuid';
|
|
19
|
+
import { f as fetchBundleId } from '../../../../useAppleBundleId-PsTJ2g1B.js';
|
|
23
20
|
import 'fast-glob';
|
|
21
|
+
import 'yazl';
|
|
24
22
|
import 'socket.io-client';
|
|
23
|
+
import 'fullscreen-ink';
|
|
24
|
+
import 'string-length';
|
|
25
|
+
import 'strip-ansi';
|
|
25
26
|
import 'open';
|
|
27
|
+
import '@inkjs/ui';
|
|
26
28
|
import 'marked';
|
|
27
29
|
import 'marked-terminal';
|
|
28
|
-
import 'path';
|
|
29
30
|
import 'qrcode';
|
|
30
|
-
import { R as RunWithSpinner } from '../../../../RunWithSpinner-
|
|
31
|
-
import '
|
|
32
|
-
import '
|
|
33
|
-
import { C as Command } from '../../../../Command-1p5alCz3.js';
|
|
34
|
-
import '../../../../index-35Eswf6F.js';
|
|
35
|
-
import '../../../../useAndroidServiceAccountTestResult-CJLIEYmA.js';
|
|
31
|
+
import { R as RunWithSpinner } from '../../../../RunWithSpinner-gMVA07bZ.js';
|
|
32
|
+
import '../../../../index-C66Dd8Xc.js';
|
|
33
|
+
import { C as Command } from '../../../../Command-WPpmLPkL.js';
|
|
36
34
|
import '@expo/apple-utils/build/index.js';
|
|
37
|
-
import 'ini';
|
|
38
35
|
import 'deepmerge';
|
|
36
|
+
import 'ini';
|
|
37
|
+
import '../../../../index-CGBdOm1q.js';
|
|
38
|
+
import '../../../../useAndroidServiceAccountTestResult-DZk5SMxI.js';
|
|
39
39
|
|
|
40
40
|
class GameIosAppSync extends BaseGameCommand {
|
|
41
41
|
static args = {};
|
|
42
42
|
static description = 'Synchronies the Apple App "BundleId" with the capabilities from the local project.';
|
|
43
43
|
static examples = ["<%= config.bin %> <%= command.id %>"];
|
|
44
44
|
static flags = {
|
|
45
|
-
|
|
46
|
-
gameId: Flags.string({ char: "g", description: "The ID of the game" }),
|
|
47
|
-
force: Flags.boolean({ char: "f" })
|
|
45
|
+
force: Flags.boolean({ char: "f" }),
|
|
48
46
|
// not used but don't remove or the wizard breaks
|
|
47
|
+
gameId: Flags.string({ char: "g", description: "The ID of the game" }),
|
|
48
|
+
quiet: Flags.boolean({ char: "q", description: "Avoid output except for interactions and errors" })
|
|
49
49
|
};
|
|
50
50
|
async run() {
|
|
51
51
|
const game = await this.getGame();
|
|
@@ -58,8 +58,8 @@ class GameIosAppSync extends BaseGameCommand {
|
|
|
58
58
|
const { bundleId, capabilities: existing, projectCapabilities } = bundleQueryResponse;
|
|
59
59
|
if (!bundleId) return this.error("BundleId not found");
|
|
60
60
|
if (!projectCapabilities) return this.error("Project capabilities not loaded");
|
|
61
|
-
const unRemovable = ["IN_APP_PURCHASE"];
|
|
62
|
-
const toRemove = existing.filter((c) => !projectCapabilities.includes(c) && !unRemovable.
|
|
61
|
+
const unRemovable = /* @__PURE__ */ new Set(["IN_APP_PURCHASE"]);
|
|
62
|
+
const toRemove = existing.filter((c) => !projectCapabilities.includes(c) && !unRemovable.has(c));
|
|
63
63
|
const toAdd = projectCapabilities.filter((c) => !existing.includes(c));
|
|
64
64
|
for (const capability of toRemove) {
|
|
65
65
|
await bundleId.updateBundleIdCapabilityAsync({
|
|
@@ -82,9 +82,9 @@ class GameIosAppSync extends BaseGameCommand {
|
|
|
82
82
|
/* @__PURE__ */ jsx(Command, { command: this, children: /* @__PURE__ */ jsx(
|
|
83
83
|
RunWithSpinner,
|
|
84
84
|
{
|
|
85
|
-
msgInProgress: "Syncing App Store BundleId capabilities",
|
|
86
|
-
msgComplete: "App Store BundleId capabilities synced",
|
|
87
85
|
executeMethod: syncCapabilities,
|
|
86
|
+
msgComplete: "App Store BundleId capabilities synced",
|
|
87
|
+
msgInProgress: "Syncing App Store BundleId capabilities",
|
|
88
88
|
onComplete: handleComplete
|
|
89
89
|
}
|
|
90
90
|
) })
|
|
@@ -1,52 +1,52 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { render } from 'ink';
|
|
3
2
|
import { Flags } from '@oclif/core';
|
|
4
3
|
import axios from 'axios';
|
|
5
|
-
import '
|
|
6
|
-
import '
|
|
7
|
-
import { c as BaseGameCommand, P as Platform, C as CredentialsType, l as Certificate, m as CertificateType, n as Profile, o as ProfileType } from '../../../../index-DxzXU9Hd.js';
|
|
8
|
-
import 'ink-spinner';
|
|
4
|
+
import { render } from 'ink';
|
|
5
|
+
import 'node:fs';
|
|
9
6
|
import 'crypto-js';
|
|
10
7
|
import 'uuid';
|
|
11
|
-
import '
|
|
8
|
+
import { c as BaseGameCommand, P as Platform, C as CredentialsType, k as Certificate, l as CertificateType, m as Profile, n as ProfileType } from '../../../../index-BhhiXbey.js';
|
|
12
9
|
import 'luxon';
|
|
13
|
-
import { a as getProjectCredentials, g as getUserCredentials } from '../../../../index-
|
|
14
|
-
import '
|
|
15
|
-
import '
|
|
16
|
-
import 'yazl';
|
|
17
|
-
import 'crypto';
|
|
18
|
-
import 'readline-sync';
|
|
19
|
-
import 'node:readline';
|
|
10
|
+
import { a as getProjectCredentials, g as getUserCredentials } from '../../../../index-CtTI85m-.js';
|
|
11
|
+
import 'ink-spinner';
|
|
12
|
+
import 'node:crypto';
|
|
20
13
|
import 'node:path';
|
|
14
|
+
import 'node:readline';
|
|
21
15
|
import 'node:url';
|
|
16
|
+
import 'readline-sync';
|
|
22
17
|
import 'isomorphic-git';
|
|
23
|
-
import
|
|
18
|
+
import '@tanstack/react-query';
|
|
19
|
+
import 'react';
|
|
20
|
+
import { f as fetchBundleId } from '../../../../useAppleBundleId-PsTJ2g1B.js';
|
|
24
21
|
import 'fast-glob';
|
|
22
|
+
import 'yazl';
|
|
25
23
|
import 'socket.io-client';
|
|
24
|
+
import 'fullscreen-ink';
|
|
25
|
+
import 'string-length';
|
|
26
|
+
import 'strip-ansi';
|
|
26
27
|
import 'open';
|
|
28
|
+
import '@inkjs/ui';
|
|
27
29
|
import 'marked';
|
|
28
30
|
import 'marked-terminal';
|
|
29
|
-
import 'path';
|
|
30
31
|
import 'qrcode';
|
|
31
|
-
import { R as RunWithSpinner } from '../../../../RunWithSpinner-
|
|
32
|
-
import '
|
|
33
|
-
import '
|
|
34
|
-
import {
|
|
35
|
-
import { a as uploadProjectCredentials } from '../../../../upload-Bw0zrS4M.js';
|
|
36
|
-
import '../../../../index-35Eswf6F.js';
|
|
37
|
-
import '../../../../useAndroidServiceAccountTestResult-CJLIEYmA.js';
|
|
32
|
+
import { R as RunWithSpinner } from '../../../../RunWithSpinner-gMVA07bZ.js';
|
|
33
|
+
import '../../../../index-C66Dd8Xc.js';
|
|
34
|
+
import { C as Command } from '../../../../Command-WPpmLPkL.js';
|
|
35
|
+
import { a as uploadProjectCredentials } from '../../../../upload-8y5MQEm9.js';
|
|
38
36
|
import '@expo/apple-utils/build/index.js';
|
|
39
|
-
import 'ini';
|
|
40
37
|
import 'deepmerge';
|
|
38
|
+
import 'ini';
|
|
39
|
+
import '../../../../index-CGBdOm1q.js';
|
|
40
|
+
import '../../../../useAndroidServiceAccountTestResult-DZk5SMxI.js';
|
|
41
41
|
|
|
42
42
|
class GameIosProfileCreate extends BaseGameCommand {
|
|
43
43
|
static args = {};
|
|
44
44
|
static description = "Creates a Mobile Provisioning Profile in the Apple Developer Portal.";
|
|
45
45
|
static examples = ["<%= config.bin %> <%= command.id %>"];
|
|
46
46
|
static flags = {
|
|
47
|
-
|
|
47
|
+
force: Flags.boolean({ char: "f" }),
|
|
48
48
|
gameId: Flags.string({ char: "g", description: "The ID of the game" }),
|
|
49
|
-
|
|
49
|
+
quiet: Flags.boolean({ char: "q", description: "Avoid output except for interactions and errors" })
|
|
50
50
|
};
|
|
51
51
|
async run() {
|
|
52
52
|
const game = await this.getGame();
|
|
@@ -58,7 +58,7 @@ class GameIosProfileCreate extends BaseGameCommand {
|
|
|
58
58
|
const projectAppleProfileCredentials = projectCredentials.filter(
|
|
59
59
|
(cred) => cred.platform == Platform.IOS && cred.type == CredentialsType.CERTIFICATE
|
|
60
60
|
);
|
|
61
|
-
if (projectAppleProfileCredentials.length
|
|
61
|
+
if (projectAppleProfileCredentials.length > 0 && !force) {
|
|
62
62
|
this.error("A Mobile Provisioning Profile already exists. Use --force to overwrite it.");
|
|
63
63
|
}
|
|
64
64
|
const createProfile = async () => {
|
|
@@ -102,10 +102,10 @@ class GameIosProfileCreate extends BaseGameCommand {
|
|
|
102
102
|
};
|
|
103
103
|
await uploadProjectCredentials(game.id, {
|
|
104
104
|
contents: projectCertContent,
|
|
105
|
+
identifier: iosBundleId,
|
|
105
106
|
platform: Platform.IOS,
|
|
106
|
-
type: CredentialsType.CERTIFICATE,
|
|
107
107
|
serialNumber: validCert.serialNumber,
|
|
108
|
-
|
|
108
|
+
type: CredentialsType.CERTIFICATE
|
|
109
109
|
});
|
|
110
110
|
};
|
|
111
111
|
const handleComplete = async () => {
|
|
@@ -116,9 +116,9 @@ class GameIosProfileCreate extends BaseGameCommand {
|
|
|
116
116
|
/* @__PURE__ */ jsx(Command, { command: this, children: /* @__PURE__ */ jsx(
|
|
117
117
|
RunWithSpinner,
|
|
118
118
|
{
|
|
119
|
-
msgInProgress: "Creating Mobile Provisioning Profile in the Apple Developer Portal",
|
|
120
|
-
msgComplete: "Mobile Provisioning Profile created",
|
|
121
119
|
executeMethod: createProfile,
|
|
120
|
+
msgComplete: "Mobile Provisioning Profile created",
|
|
121
|
+
msgInProgress: "Creating Mobile Provisioning Profile in the Apple Developer Portal",
|
|
122
122
|
onComplete: handleComplete
|
|
123
123
|
}
|
|
124
124
|
) })
|