shipthis 0.1.31 → 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/dist/{AppleBundleIdDetails-eoK5F8Qn.js → AppleBundleIdDetails-6H3cNWxw.js} +17 -19
- package/dist/Command-WPpmLPkL.js +29 -0
- package/dist/CommandGame-cxzWG4nT.js +7 -0
- package/dist/{Create-ISdroJ3G.js → Create-3Ob8sjik.js} +20 -20
- package/dist/GameStatus-BQEtVKvv.js +137 -0
- package/dist/{Import-CfThJF6k.js → Import-CFuPDI0K.js} +33 -35
- package/dist/{JobLogTail-BWzbQBZz.js → JobLogTail-0CBLoG8N.js} +53 -52
- package/dist/{JobProgress-DjIkuk5U.js → JobProgress-lKqVT88m.js} +35 -36
- package/dist/{JobStatusTable-CEqWU73q.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-u9ruZ9mN.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-Q7u9M-ap.js → UserCredentialsTable-3W3qesh7.js} +18 -19
- package/dist/{baseAppleCommand-zhkGlKq0.js → baseAppleCommand-BGV088--.js} +1 -1
- package/dist/{baseGameAndroidCommand-DJ-cMLa_.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 -16
- package/dist/commands/apple/status.js +27 -27
- package/dist/commands/dashboard.js +10 -11
- 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 -15
- 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 -16
- package/dist/commands/game/details.js +35 -36
- package/dist/commands/game/export.js +12 -13
- 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 +37 -39
- package/dist/commands/game/ship.js +73 -71
- package/dist/commands/game/status.js +38 -85
- package/dist/commands/game/wizard.js +250 -239
- package/dist/commands/internal/fastlane.js +15 -18
- package/dist/commands/internal/readme.js +38 -37
- package/dist/commands/login.js +14 -15
- package/dist/commands/status.js +32 -30
- package/dist/{export-DZxo2_e_.js → export-CXsVPXA1.js} +5 -5
- package/dist/{git-DREGq-jc.js → git-BpsfNFZ_.js} +8 -8
- package/dist/{import-8pL1AF47.js → import-DGvG5REx.js} +14 -14
- package/dist/{index-w3lHxk5O.js → index-BhhiXbey.js} +240 -224
- package/dist/{index-BHh0BZvD.js → index-C03TV1_J.js} +37 -55
- package/dist/{index-CyvGh-kt.js → index-C66Dd8Xc.js} +77 -87
- package/dist/{index-DJ078v-U.js → index-CGBdOm1q.js} +43 -28
- package/dist/{index-DKQjnJrC.js → index-CS9Gwcb0.js} +41 -43
- package/dist/{index-C6aAyrXW.js → index-CtTI85m-.js} +6 -6
- package/dist/{upload-BTpxj3QP.js → upload-8y5MQEm9.js} +22 -22
- package/dist/{useAndroidServiceAccountTestResult-Dy3Ag7_r.js → useAndroidServiceAccountTestResult-DZk5SMxI.js} +11 -13
- package/dist/{useAppleApp-h1Ogi_qc.js → useAppleApp-DWYGURwU.js} +4 -4
- package/dist/{useAppleBundleId-B3TTNap0.js → useAppleBundleId-PsTJ2g1B.js} +6 -6
- package/dist/{useProjectCredentials-DpeXZcHP.js → useProjectCredentials-BEphqa18.js} +10 -12
- package/dist/{useWebSocket-gyuCsore.js → useWebSocket-5PYa2QER.js} +1 -1
- package/dist/utils/help.js +4 -4
- package/package.json +4 -3
- package/dist/Command-DFdHXDiU.js +0 -44
- package/dist/CommandGame-Dif-oSky.js +0 -9
- package/dist/{RunWithSpinner-BVXNWGD3.js → RunWithSpinner-gMVA07bZ.js} +2 -2
|
@@ -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-w3lHxk5O.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-DFdHXDiU.js';
|
|
34
|
-
import '../../../../index-DJ078v-U.js';
|
|
35
|
-
import '../../../../useAndroidServiceAccountTestResult-Dy3Ag7_r.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-w3lHxk5O.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-DFdHXDiU.js';
|
|
34
|
-
import '../../../../index-DJ078v-U.js';
|
|
35
|
-
import '../../../../useAndroidServiceAccountTestResult-Dy3Ag7_r.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-w3lHxk5O.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-BTpxj3QP.js';
|
|
36
|
-
import '../../../../index-DJ078v-U.js';
|
|
37
|
-
import '../../../../useAndroidServiceAccountTestResult-Dy3Ag7_r.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
|
) })
|
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import * as fs from 'node:fs';
|
|
2
3
|
import { Args, Flags } from '@oclif/core';
|
|
3
4
|
import { render } from 'ink';
|
|
4
|
-
import
|
|
5
|
-
import { c as BaseGameCommand, P as Platform, C as CredentialsType } from '../../../../index-
|
|
6
|
-
import { a as getProjectCredentials } from '../../../../index-C6aAyrXW.js';
|
|
7
|
-
import 'react';
|
|
8
|
-
import '../../../../index-CyvGh-kt.js';
|
|
5
|
+
import { a as getProjectCredentials } from '../../../../index-CtTI85m-.js';
|
|
6
|
+
import { c as BaseGameCommand, P as Platform, C as CredentialsType } from '../../../../index-BhhiXbey.js';
|
|
9
7
|
import 'ink-spinner';
|
|
10
|
-
import '
|
|
11
|
-
import 'crypto-js';
|
|
12
|
-
import 'uuid';
|
|
13
|
-
import 'luxon';
|
|
14
|
-
import '@inkjs/ui';
|
|
15
|
-
import '@tanstack/react-query';
|
|
16
|
-
import 'yazl';
|
|
17
|
-
import 'crypto';
|
|
18
|
-
import 'readline-sync';
|
|
19
|
-
import 'node:readline';
|
|
8
|
+
import 'node:crypto';
|
|
20
9
|
import 'node:path';
|
|
10
|
+
import 'node:readline';
|
|
21
11
|
import 'node:url';
|
|
12
|
+
import 'readline-sync';
|
|
13
|
+
import 'luxon';
|
|
14
|
+
import 'axios';
|
|
22
15
|
import 'isomorphic-git';
|
|
16
|
+
import '@tanstack/react-query';
|
|
17
|
+
import 'react';
|
|
18
|
+
import 'crypto-js';
|
|
19
|
+
import 'uuid';
|
|
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 {
|
|
34
|
-
import { e as exportCredential } from '../../../../export-DZxo2_e_.js';
|
|
31
|
+
import { R as RunWithSpinner } from '../../../../RunWithSpinner-gMVA07bZ.js';
|
|
32
|
+
import '../../../../index-C66Dd8Xc.js';
|
|
33
|
+
import { C as Command } from '../../../../Command-WPpmLPkL.js';
|
|
34
|
+
import { e as exportCredential } from '../../../../export-CXsVPXA1.js';
|
|
35
35
|
import '@expo/apple-utils/build/index.js';
|
|
36
|
-
import 'ini';
|
|
37
36
|
import 'deepmerge';
|
|
38
|
-
import '
|
|
39
|
-
import '../../../../
|
|
37
|
+
import 'ini';
|
|
38
|
+
import '../../../../index-CGBdOm1q.js';
|
|
39
|
+
import '../../../../useAndroidServiceAccountTestResult-DZk5SMxI.js';
|
|
40
40
|
|
|
41
41
|
class GameIosProfileExport extends BaseGameCommand {
|
|
42
42
|
static args = {
|
|
@@ -45,8 +45,8 @@ class GameIosProfileExport extends BaseGameCommand {
|
|
|
45
45
|
static description = "Saves the current Mobile Provisioning Profile to a ZIP file";
|
|
46
46
|
static examples = ["<%= config.bin %> <%= command.id %> userProfile.zip"];
|
|
47
47
|
static flags = {
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
force: Flags.boolean({ char: "f", description: "Overwrite the file if it already exists" }),
|
|
49
|
+
gameId: Flags.string({ char: "g", description: "The ID of the game" })
|
|
50
50
|
};
|
|
51
51
|
async run() {
|
|
52
52
|
const { args, flags } = this;
|
|
@@ -70,9 +70,9 @@ class GameIosProfileExport extends BaseGameCommand {
|
|
|
70
70
|
/* @__PURE__ */ jsx(Command, { command: this, children: /* @__PURE__ */ jsx(
|
|
71
71
|
RunWithSpinner,
|
|
72
72
|
{
|
|
73
|
-
|
|
73
|
+
executeMethod: () => exportCredential({ credentialId: profile.id, projectId: game.id, zipPath: file }),
|
|
74
74
|
msgComplete: `Mobile Provisioning Profile exported to ${file}`,
|
|
75
|
-
|
|
75
|
+
msgInProgress: `Exporting Mobile Provisioning Profile to ${file}...`,
|
|
76
76
|
onComplete: handleComplete
|
|
77
77
|
}
|
|
78
78
|
) })
|
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import * as fs from 'node:fs';
|
|
2
3
|
import { Args, Flags } from '@oclif/core';
|
|
3
4
|
import { render } from 'ink';
|
|
4
|
-
import
|
|
5
|
-
import { c as BaseGameCommand, P as Platform, C as CredentialsType } from '../../../../index-
|
|
6
|
-
import { a as getProjectCredentials } from '../../../../index-C6aAyrXW.js';
|
|
7
|
-
import 'react';
|
|
8
|
-
import '../../../../index-CyvGh-kt.js';
|
|
5
|
+
import { a as getProjectCredentials } from '../../../../index-CtTI85m-.js';
|
|
6
|
+
import { c as BaseGameCommand, P as Platform, C as CredentialsType } from '../../../../index-BhhiXbey.js';
|
|
9
7
|
import 'ink-spinner';
|
|
10
|
-
import '
|
|
11
|
-
import 'crypto-js';
|
|
12
|
-
import 'uuid';
|
|
13
|
-
import 'luxon';
|
|
14
|
-
import '@inkjs/ui';
|
|
15
|
-
import '@tanstack/react-query';
|
|
16
|
-
import 'yazl';
|
|
17
|
-
import 'crypto';
|
|
18
|
-
import 'readline-sync';
|
|
19
|
-
import 'node:readline';
|
|
8
|
+
import 'node:crypto';
|
|
20
9
|
import 'node:path';
|
|
10
|
+
import 'node:readline';
|
|
21
11
|
import 'node:url';
|
|
12
|
+
import 'readline-sync';
|
|
13
|
+
import 'luxon';
|
|
14
|
+
import 'axios';
|
|
22
15
|
import 'isomorphic-git';
|
|
16
|
+
import '@tanstack/react-query';
|
|
17
|
+
import 'react';
|
|
18
|
+
import 'crypto-js';
|
|
19
|
+
import 'uuid';
|
|
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 {
|
|
34
|
-
import { i as importCredential } from '../../../../import-8pL1AF47.js';
|
|
31
|
+
import { R as RunWithSpinner } from '../../../../RunWithSpinner-gMVA07bZ.js';
|
|
32
|
+
import '../../../../index-C66Dd8Xc.js';
|
|
33
|
+
import { C as Command } from '../../../../Command-WPpmLPkL.js';
|
|
34
|
+
import { i as importCredential } from '../../../../import-DGvG5REx.js';
|
|
35
35
|
import '@expo/apple-utils/build/index.js';
|
|
36
|
-
import 'ini';
|
|
37
36
|
import 'deepmerge';
|
|
38
|
-
import '
|
|
39
|
-
import '../../../../
|
|
37
|
+
import 'ini';
|
|
38
|
+
import '../../../../index-CGBdOm1q.js';
|
|
39
|
+
import '../../../../useAndroidServiceAccountTestResult-DZk5SMxI.js';
|
|
40
40
|
|
|
41
41
|
class GameIosProfileImport extends BaseGameCommand {
|
|
42
42
|
static args = {
|
|
@@ -48,8 +48,8 @@ class GameIosProfileImport extends BaseGameCommand {
|
|
|
48
48
|
static description = "Imports an Mobile Provisioning Profile to your ShipThis account";
|
|
49
49
|
static examples = ["<%= config.bin %> <%= command.id %> profile.zip"];
|
|
50
50
|
static flags = {
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
force: Flags.boolean({ char: "f" }),
|
|
52
|
+
gameId: Flags.string({ char: "g", description: "The ID of the game" })
|
|
53
53
|
};
|
|
54
54
|
async run() {
|
|
55
55
|
const { args, flags } = this;
|
|
@@ -64,7 +64,7 @@ class GameIosProfileImport extends BaseGameCommand {
|
|
|
64
64
|
const projectAppleProfileCredentials = projectCredentials.filter(
|
|
65
65
|
(cred) => cred.platform == Platform.IOS && cred.type == CredentialsType.CERTIFICATE
|
|
66
66
|
);
|
|
67
|
-
if (projectAppleProfileCredentials.length
|
|
67
|
+
if (projectAppleProfileCredentials.length > 0 && !force) {
|
|
68
68
|
this.error("A Mobile Provisioning Profile already exists. Use --force to overwrite it.");
|
|
69
69
|
}
|
|
70
70
|
const handleComplete = async () => {
|
|
@@ -74,14 +74,14 @@ class GameIosProfileImport extends BaseGameCommand {
|
|
|
74
74
|
/* @__PURE__ */ jsx(Command, { command: this, children: /* @__PURE__ */ jsx(
|
|
75
75
|
RunWithSpinner,
|
|
76
76
|
{
|
|
77
|
-
msgInProgress: `Importing Mobile Provisioning Profile from ${file}...`,
|
|
78
|
-
msgComplete: `Mobile Provisioning Profile imported from ${file}`,
|
|
79
77
|
executeMethod: () => importCredential({
|
|
80
|
-
zipPath: file,
|
|
81
|
-
type: CredentialsType.CERTIFICATE,
|
|
82
78
|
platform: Platform.IOS,
|
|
83
|
-
projectId: game.id
|
|
79
|
+
projectId: game.id,
|
|
80
|
+
type: CredentialsType.CERTIFICATE,
|
|
81
|
+
zipPath: file
|
|
84
82
|
}),
|
|
83
|
+
msgComplete: `Mobile Provisioning Profile imported from ${file}`,
|
|
84
|
+
msgInProgress: `Importing Mobile Provisioning Profile from ${file}...`,
|
|
85
85
|
onComplete: handleComplete
|
|
86
86
|
}
|
|
87
87
|
) })
|
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
2
|
-
import { Box, Text, render } from 'ink';
|
|
3
2
|
import { Flags } from '@oclif/core';
|
|
4
|
-
import '
|
|
5
|
-
import '../../../../index-
|
|
6
|
-
import { b as getShortDate, n as Profile, o as ProfileType, C as CredentialsType, P as Platform, c as BaseGameCommand } from '../../../../index-w3lHxk5O.js';
|
|
3
|
+
import { Box, Text, render } from 'ink';
|
|
4
|
+
import { b as getShortDate, m as Profile, n as ProfileType, C as CredentialsType, P as Platform, c as BaseGameCommand } from '../../../../index-BhhiXbey.js';
|
|
7
5
|
import Spinner from 'ink-spinner';
|
|
8
|
-
import '
|
|
9
|
-
import '
|
|
10
|
-
import 'uuid';
|
|
11
|
-
import 'fs';
|
|
12
|
-
import { DateTime } from 'luxon';
|
|
13
|
-
import '@inkjs/ui';
|
|
14
|
-
import { useQuery } from '@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 { DateTime } from 'luxon';
|
|
13
|
+
import 'axios';
|
|
21
14
|
import 'isomorphic-git';
|
|
15
|
+
import { useQuery } from '@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';
|
|
25
|
+
import { P as ProjectCredentialsTable } from '../../../../ProjectCredentialsTable-B5pHOnGu.js';
|
|
24
26
|
import 'open';
|
|
27
|
+
import '@inkjs/ui';
|
|
25
28
|
import 'marked';
|
|
26
29
|
import 'marked-terminal';
|
|
27
|
-
import 'path';
|
|
28
30
|
import 'qrcode';
|
|
29
|
-
import '
|
|
30
|
-
import '
|
|
31
|
-
import {
|
|
32
|
-
import { T as Table } from '../../../../Table-CvM6pccN.js';
|
|
31
|
+
import '../../../../index-C66Dd8Xc.js';
|
|
32
|
+
import { u as useProjectCredentials } from '../../../../useProjectCredentials-BEphqa18.js';
|
|
33
|
+
import { T as Table } from '../../../../Table-FaNgpyeq.js';
|
|
33
34
|
import { T as Title } from '../../../../Title-BCQtayg6.js';
|
|
34
|
-
import { N as NextSteps } from '../../../../NextSteps-
|
|
35
|
-
import { C as Command } from '../../../../Command-
|
|
36
|
-
import { P as ProjectCredentialsTable } from '../../../../ProjectCredentialsTable-u9ruZ9mN.js';
|
|
37
|
-
import '../../../../index-DJ078v-U.js';
|
|
38
|
-
import '../../../../useAndroidServiceAccountTestResult-Dy3Ag7_r.js';
|
|
35
|
+
import { N as NextSteps } from '../../../../NextSteps-DbJHmscQ.js';
|
|
36
|
+
import { C as Command } from '../../../../Command-WPpmLPkL.js';
|
|
39
37
|
import '@expo/apple-utils/build/index.js';
|
|
40
|
-
import 'ini';
|
|
41
38
|
import 'deepmerge';
|
|
39
|
+
import 'ini';
|
|
40
|
+
import '../../../../index-CGBdOm1q.js';
|
|
41
|
+
import '../../../../useAndroidServiceAccountTestResult-DZk5SMxI.js';
|
|
42
42
|
|
|
43
43
|
async function queryAppleProfiles({ ctx }) {
|
|
44
44
|
const appleProfiles = await Profile.getAsync(ctx, {
|
|
@@ -59,32 +59,32 @@ const canAppleProfileBeUsed = (appleProfile, project, projectCredentials) => {
|
|
|
59
59
|
return projectCredentials.some(
|
|
60
60
|
(credential) => credential.isActive && credential.serialNumber === profileCertificateSerialNumber
|
|
61
61
|
);
|
|
62
|
-
} catch (
|
|
63
|
-
console.log(
|
|
62
|
+
} catch (error) {
|
|
63
|
+
console.log(error);
|
|
64
64
|
return false;
|
|
65
65
|
}
|
|
66
66
|
};
|
|
67
67
|
function getAppleProfileSummary(appleProfile, project, projectCredentials) {
|
|
68
68
|
return {
|
|
69
|
+
canBeUsed: canAppleProfileBeUsed(appleProfile, project, projectCredentials),
|
|
70
|
+
expires: getShortDate(DateTime.fromISO(appleProfile.attributes.expirationDate)),
|
|
69
71
|
id: appleProfile.id,
|
|
70
72
|
name: appleProfile.attributes.name,
|
|
71
|
-
platform: appleProfile.attributes.platform
|
|
72
|
-
expires: getShortDate(DateTime.fromISO(appleProfile.attributes.expirationDate)),
|
|
73
|
-
canBeUsed: canAppleProfileBeUsed(appleProfile, project, projectCredentials)
|
|
73
|
+
platform: appleProfile.attributes.platform
|
|
74
74
|
};
|
|
75
75
|
}
|
|
76
76
|
const useAppleProfiles = (props) => {
|
|
77
77
|
const queryResult = useQuery({
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
queryFn: () => queryAppleProfiles(props),
|
|
79
|
+
queryKey: ["appleProfiles"]
|
|
80
80
|
});
|
|
81
81
|
return queryResult;
|
|
82
82
|
};
|
|
83
83
|
|
|
84
84
|
const AppleProfilesTable = ({ ctx, project, ...boxProps }) => {
|
|
85
85
|
const { data: credentialsResponse } = useProjectCredentials({
|
|
86
|
-
projectId: project.id,
|
|
87
86
|
platform: Platform.IOS,
|
|
87
|
+
projectId: project.id,
|
|
88
88
|
type: CredentialsType.CERTIFICATE
|
|
89
89
|
});
|
|
90
90
|
const { data: profiles, isLoading } = useAppleProfiles({ ctx });
|
|
@@ -93,7 +93,7 @@ const AppleProfilesTable = ({ ctx, project, ...boxProps }) => {
|
|
|
93
93
|
/* @__PURE__ */ jsx(Title, { children: "Mobile Provisioning Profiles in your Apple account" }),
|
|
94
94
|
isLoading && /* @__PURE__ */ jsx(Spinner, { type: "dots" }),
|
|
95
95
|
profiles && credentialsResponse && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
96
|
-
/* @__PURE__ */ jsxs(Box, {
|
|
96
|
+
/* @__PURE__ */ jsxs(Box, { flexDirection: "column", marginBottom: 1, marginLeft: 2, children: [
|
|
97
97
|
/* @__PURE__ */ jsx(Text, { children: `You have ${profiles.length} Mobile Provisioning Profiles in your Apple account` }),
|
|
98
98
|
/* @__PURE__ */ jsx(Text, { children: `${hasUsable ? "One" : "None"} of these can be used by ShipThis` })
|
|
99
99
|
] }),
|
|
@@ -127,7 +127,7 @@ class GameIosProfileStatus extends BaseGameCommand {
|
|
|
127
127
|
ProjectCredentialsTable,
|
|
128
128
|
{
|
|
129
129
|
credentialTypeName: "Mobile Provisioning Profile",
|
|
130
|
-
queryProps: { platform: Platform.IOS,
|
|
130
|
+
queryProps: { platform: Platform.IOS, projectId: game.id, type: CredentialsType.CERTIFICATE }
|
|
131
131
|
}
|
|
132
132
|
),
|
|
133
133
|
showApple && /* @__PURE__ */ jsx(AppleProfilesTable, { ctx, project: game })
|