shipthis 0.1.35 → 0.1.37
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 +231 -80
- package/assets/markdown/agreement-update.md.ejs +12 -0
- package/assets/markdown/confirm-delete-android-keystore.md.ejs +22 -0
- package/assets/markdown/confirm-delete-android-serviceaccountkey.md.ejs +24 -0
- package/assets/markdown/confirm-delete-apple-credential.md.ejs +29 -0
- package/dist/{AppleBundleIdDetails-N_j1wv6f.js → AppleBundleIdDetails-KMzyex1H.js} +3 -5
- package/dist/{Command-DN1j3tjt.js → Command-CHh8RDXK.js} +1 -2
- package/dist/{CommandGame-D2NqytWc.js → CommandGame-Rvmsa7b0.js} +2 -2
- package/dist/{Create-BRdv5jXQ.js → Create-DInZ_pw-.js} +1 -4
- package/dist/{GameStatus-joyHPy0f.js → GameStatus-D7ID10tS.js} +1 -4
- package/dist/{Import-BNMHsJoM.js → Import-BmO8EYKj.js} +2 -5
- package/dist/{JobLogTail-D35FO5v-.js → JobLogTail-CYdceTKL.js} +2 -5
- package/dist/{JobProgress-D-9KESaA.js → JobProgress-DBCYbWrO.js} +16 -18
- package/dist/{JobStatusTable-DIJ_h-gi.js → JobStatusTable-DhnhY1_i.js} +2 -4
- package/dist/{ProjectCredentialsTable-BMKgv99h.js → ProjectCredentialsTable-BDYVYqAq.js} +5 -3
- package/dist/{UserCredentialsTable-CUrTDzTK.js → UserCredentialsTable-cDPvjF-F.js} +4 -4
- package/dist/{baseAppleCommand-Cs9a52e5.js → baseAppleCommand-CQ5dOna7.js} +1 -1
- package/dist/{baseGameAndroidCommand-BCB1SMCf.js → baseGameAndroidCommand-D4ryZS6A.js} +1 -2
- package/dist/commands/apiKey/create.js +3 -6
- package/dist/commands/apiKey/list.js +3 -6
- package/dist/commands/apiKey/revoke.js +3 -6
- package/dist/commands/apple/apiKey/create.js +7 -10
- package/dist/commands/apple/apiKey/delete.js +118 -0
- package/dist/commands/apple/apiKey/export.js +6 -9
- package/dist/commands/apple/apiKey/import.js +6 -9
- package/dist/commands/apple/apiKey/status.js +4 -7
- package/dist/commands/apple/certificate/create.js +7 -10
- package/dist/commands/apple/certificate/delete.js +127 -0
- package/dist/commands/apple/certificate/export.js +6 -9
- package/dist/commands/apple/certificate/import.js +6 -9
- package/dist/commands/apple/certificate/status.js +4 -7
- package/dist/commands/apple/login.js +23 -4
- package/dist/commands/apple/status.js +4 -7
- package/dist/commands/dashboard.js +12 -1
- package/dist/commands/game/android/apiKey/connect.js +8 -11
- package/dist/commands/game/android/apiKey/create.js +10 -13
- package/dist/commands/game/android/apiKey/delete.js +100 -0
- package/dist/commands/game/android/apiKey/export.js +6 -9
- package/dist/commands/game/android/apiKey/import.js +6 -9
- package/dist/commands/game/android/apiKey/invite.js +14 -4
- package/dist/commands/game/android/apiKey/policy.js +3 -6
- package/dist/commands/game/android/apiKey/status.js +6 -9
- package/dist/commands/game/android/keyStore/create.js +7 -10
- package/dist/commands/game/android/keyStore/delete.js +100 -0
- package/dist/commands/game/android/keyStore/export.js +5 -8
- package/dist/commands/game/android/keyStore/import.js +8 -11
- package/dist/commands/game/android/keyStore/status.js +7 -10
- package/dist/commands/game/android/status.js +13 -1
- package/dist/commands/game/build/download.js +3 -6
- package/dist/commands/game/build/list.js +4 -7
- package/dist/commands/game/create.js +13 -2
- package/dist/commands/game/details.js +4 -7
- package/dist/commands/game/export.js +13 -1
- package/dist/commands/game/ios/app/addTester.js +4 -7
- package/dist/commands/game/ios/app/create.js +3 -6
- package/dist/commands/game/ios/app/status.js +6 -9
- package/dist/commands/game/ios/app/sync.js +4 -7
- package/dist/commands/game/ios/profile/create.js +6 -9
- package/dist/commands/game/ios/profile/delete.js +123 -0
- package/dist/commands/game/ios/profile/export.js +5 -8
- package/dist/commands/game/ios/profile/import.js +5 -8
- package/dist/commands/game/ios/profile/status.js +8 -51
- package/dist/commands/game/ios/status.js +10 -13
- package/dist/commands/game/ios/wizard.js +2 -6
- package/dist/commands/game/job/list.js +3 -6
- package/dist/commands/game/job/status.js +8 -11
- package/dist/commands/game/list.js +3 -6
- package/dist/commands/game/ship.js +17 -14
- package/dist/commands/game/status.js +7 -10
- package/dist/commands/game/wizard.js +14 -17
- package/dist/commands/internal/fastlane.js +13 -1
- package/dist/commands/internal/readme.js +13 -4
- package/dist/commands/login.js +27 -4
- package/dist/commands/status.js +6 -8
- package/dist/{export-DFCZKNQk.js → export-DujIwhJw.js} +1 -1
- package/dist/{import-BpGyif-m.js → import-DGCqCAcC.js} +1 -1
- package/dist/{index-DlE_SPt3.js → index-9LxGafAo.js} +3 -5
- package/dist/{index-BTXEUd8W.js → index-BPh_qt7t.js} +4 -6
- package/dist/index-CNsmEDXi.js +48 -0
- package/dist/index-CmuXyPed.js +1905 -0
- package/dist/{upload-D19OQsbn.js → upload-D4x4yCia.js} +1 -1
- package/dist/{useAppleApp-BZc_cNa-.js → useAppleApp-taaewPSf.js} +1 -1
- package/dist/{useAppleBundleId-DvMXAvWD.js → useAppleBundleId-BeGViMe7.js} +1 -1
- package/dist/useAppleProfiles-1TtO0aO6.js +63 -0
- package/dist/{useGoogleStatus-Cx_QIsXa.js → useGoogleStatus-CSsxEvX7.js} +1 -2
- package/dist/{useProjectCredentials-DxdwJCfU.js → useProjectCredentials-Cm50WMZU.js} +1 -3
- package/dist/{useWebSocket-cM5yOcDv.js → useWebSocket-BVfn36be.js} +1 -1
- package/docs/apple/apiKey/delete.md +25 -0
- package/docs/apple/apiKey.md +26 -0
- package/docs/apple/certificate/delete.md +25 -0
- package/docs/apple/certificate.md +26 -0
- package/docs/assets/st.png +0 -0
- package/docs/game/android/apiKey/delete.md +25 -0
- package/docs/game/android/apiKey.md +26 -0
- package/docs/game/android/keyStore/delete.md +25 -0
- package/docs/game/android/keyStore.md +26 -0
- package/docs/game/ios/profile/delete.md +26 -0
- package/docs/game/ios/profile.md +27 -0
- package/docs/game/ship.md +4 -4
- package/docs/login.md +6 -2
- package/docs/status.md +1 -1
- package/package.json +13 -2
- package/dist/ejs-DirFZbza.js +0 -716
- package/dist/index-BwnzoldS.js +0 -784
- package/dist/index-CJWMt1s-.js +0 -153
- package/dist/index-hoHfGrjg.js +0 -221
- package/dist/index-izrACZbC.js +0 -24
- package/dist/useAndroidServiceAccountTestResult-CwKeW0ED.js +0 -50
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { Flags } from '@oclif/core';
|
|
3
3
|
import { render } from 'ink';
|
|
4
|
-
import {
|
|
4
|
+
import { h as BaseGameCommand, c as getInput, n as BetaGroup } from '../../../../index-CmuXyPed.js';
|
|
5
5
|
import 'ink-spinner';
|
|
6
|
-
import { a as getInput } from '../../../../index-CJWMt1s-.js';
|
|
7
6
|
import 'react';
|
|
8
7
|
import 'node:fs';
|
|
9
8
|
import 'axios';
|
|
@@ -11,7 +10,7 @@ import 'crypto-js';
|
|
|
11
10
|
import 'uuid';
|
|
12
11
|
import 'luxon';
|
|
13
12
|
import '@tanstack/react-query';
|
|
14
|
-
import { q as queryAppleApp } from '../../../../useAppleApp-
|
|
13
|
+
import { q as queryAppleApp } from '../../../../useAppleApp-taaewPSf.js';
|
|
15
14
|
import 'fast-glob';
|
|
16
15
|
import 'yazl';
|
|
17
16
|
import 'socket.io-client';
|
|
@@ -21,13 +20,12 @@ import 'strip-ansi';
|
|
|
21
20
|
import 'open';
|
|
22
21
|
import '@inkjs/ui';
|
|
23
22
|
import 'node:path';
|
|
24
|
-
import '../../../../ejs-DirFZbza.js';
|
|
25
23
|
import 'marked';
|
|
26
24
|
import 'marked-terminal';
|
|
27
25
|
import 'qrcode';
|
|
28
26
|
import { R as RunWithSpinner } from '../../../../RunWithSpinner-DucRnFp6.js';
|
|
29
|
-
import '../../../../
|
|
30
|
-
import
|
|
27
|
+
import { C as Command } from '../../../../Command-CHh8RDXK.js';
|
|
28
|
+
import 'chalk';
|
|
31
29
|
import '@expo/apple-utils/build/index.js';
|
|
32
30
|
import 'node:crypto';
|
|
33
31
|
import 'node:readline';
|
|
@@ -38,7 +36,6 @@ import 'deepmerge';
|
|
|
38
36
|
import 'ini';
|
|
39
37
|
import 'fs';
|
|
40
38
|
import 'path';
|
|
41
|
-
import '../../../../useAndroidServiceAccountTestResult-CwKeW0ED.js';
|
|
42
39
|
|
|
43
40
|
const TEST_GROUP_NAME = "ShipThis Test Group";
|
|
44
41
|
class GameIosAppAddTester extends BaseGameCommand {
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { Flags } from '@oclif/core';
|
|
3
3
|
import { render } from 'ink';
|
|
4
|
-
import {
|
|
4
|
+
import { h as BaseGameCommand, c as getInput, i as generatePackageName, j as getGodotAppleBundleIdentifier, k as BundleId, l as App } from '../../../../index-CmuXyPed.js';
|
|
5
5
|
import 'ink-spinner';
|
|
6
|
-
import { a as getInput, b as generatePackageName } from '../../../../index-CJWMt1s-.js';
|
|
7
6
|
import 'react';
|
|
8
7
|
import 'node:fs';
|
|
9
8
|
import 'axios';
|
|
@@ -20,13 +19,12 @@ import 'strip-ansi';
|
|
|
20
19
|
import 'open';
|
|
21
20
|
import '@inkjs/ui';
|
|
22
21
|
import 'node:path';
|
|
23
|
-
import '../../../../ejs-DirFZbza.js';
|
|
24
22
|
import 'marked';
|
|
25
23
|
import 'marked-terminal';
|
|
26
24
|
import 'qrcode';
|
|
27
25
|
import { R as RunWithSpinner } from '../../../../RunWithSpinner-DucRnFp6.js';
|
|
28
|
-
import '../../../../
|
|
29
|
-
import
|
|
26
|
+
import { C as Command } from '../../../../Command-CHh8RDXK.js';
|
|
27
|
+
import 'chalk';
|
|
30
28
|
import '@expo/apple-utils/build/index.js';
|
|
31
29
|
import 'node:crypto';
|
|
32
30
|
import 'node:readline';
|
|
@@ -37,7 +35,6 @@ import 'deepmerge';
|
|
|
37
35
|
import 'ini';
|
|
38
36
|
import 'fs';
|
|
39
37
|
import 'path';
|
|
40
|
-
import '../../../../useAndroidServiceAccountTestResult-CwKeW0ED.js';
|
|
41
38
|
|
|
42
39
|
class GameIosAppCreate extends BaseGameCommand {
|
|
43
40
|
static args = {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { Flags } from '@oclif/core';
|
|
3
3
|
import { render } from 'ink';
|
|
4
|
-
import {
|
|
4
|
+
import { h as BaseGameCommand } from '../../../../index-CmuXyPed.js';
|
|
5
5
|
import 'ink-spinner';
|
|
6
6
|
import 'node:crypto';
|
|
7
7
|
import 'node:fs';
|
|
@@ -24,25 +24,22 @@ import 'string-length';
|
|
|
24
24
|
import 'strip-ansi';
|
|
25
25
|
import 'open';
|
|
26
26
|
import '@inkjs/ui';
|
|
27
|
-
import '../../../../ejs-DirFZbza.js';
|
|
28
27
|
import 'marked';
|
|
29
28
|
import 'marked-terminal';
|
|
30
29
|
import { N as NextSteps } from '../../../../NextSteps-DbJHmscQ.js';
|
|
31
30
|
import 'qrcode';
|
|
32
|
-
import '../../../../
|
|
33
|
-
import {
|
|
34
|
-
import
|
|
31
|
+
import { A as AppleAppDetails, a as AppleBundleIdDetails } from '../../../../AppleBundleIdDetails-KMzyex1H.js';
|
|
32
|
+
import { C as Command } from '../../../../Command-CHh8RDXK.js';
|
|
33
|
+
import 'chalk';
|
|
35
34
|
import '@expo/apple-utils/build/index.js';
|
|
36
35
|
import 'deepmerge';
|
|
37
36
|
import 'ini';
|
|
38
37
|
import 'fs';
|
|
39
38
|
import 'path';
|
|
40
39
|
import '../../../../Title-BCQtayg6.js';
|
|
41
|
-
import '../../../../
|
|
42
|
-
import '../../../../useAndroidServiceAccountTestResult-CwKeW0ED.js';
|
|
43
|
-
import '../../../../useAppleApp-BZc_cNa-.js';
|
|
40
|
+
import '../../../../useAppleApp-taaewPSf.js';
|
|
44
41
|
import '../../../../Table-FaNgpyeq.js';
|
|
45
|
-
import '../../../../useAppleBundleId-
|
|
42
|
+
import '../../../../useAppleBundleId-BeGViMe7.js';
|
|
46
43
|
|
|
47
44
|
class GameIosAppStatus extends BaseGameCommand {
|
|
48
45
|
static args = {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { Flags } from '@oclif/core';
|
|
3
3
|
import { render } from 'ink';
|
|
4
|
-
import {
|
|
4
|
+
import { h as BaseGameCommand, m as CapabilityTypeOption } from '../../../../index-CmuXyPed.js';
|
|
5
5
|
import 'ink-spinner';
|
|
6
6
|
import 'node:crypto';
|
|
7
7
|
import 'node:fs';
|
|
@@ -16,7 +16,7 @@ import '@tanstack/react-query';
|
|
|
16
16
|
import 'react';
|
|
17
17
|
import 'crypto-js';
|
|
18
18
|
import 'uuid';
|
|
19
|
-
import { f as fetchBundleId } from '../../../../useAppleBundleId-
|
|
19
|
+
import { f as fetchBundleId } from '../../../../useAppleBundleId-BeGViMe7.js';
|
|
20
20
|
import 'fast-glob';
|
|
21
21
|
import 'yazl';
|
|
22
22
|
import 'socket.io-client';
|
|
@@ -25,20 +25,17 @@ import 'string-length';
|
|
|
25
25
|
import 'strip-ansi';
|
|
26
26
|
import 'open';
|
|
27
27
|
import '@inkjs/ui';
|
|
28
|
-
import '../../../../ejs-DirFZbza.js';
|
|
29
28
|
import 'marked';
|
|
30
29
|
import 'marked-terminal';
|
|
31
30
|
import 'qrcode';
|
|
32
31
|
import { R as RunWithSpinner } from '../../../../RunWithSpinner-DucRnFp6.js';
|
|
33
|
-
import '../../../../
|
|
34
|
-
import
|
|
32
|
+
import { C as Command } from '../../../../Command-CHh8RDXK.js';
|
|
33
|
+
import 'chalk';
|
|
35
34
|
import '@expo/apple-utils/build/index.js';
|
|
36
35
|
import 'deepmerge';
|
|
37
36
|
import 'ini';
|
|
38
37
|
import 'fs';
|
|
39
38
|
import 'path';
|
|
40
|
-
import '../../../../index-CJWMt1s-.js';
|
|
41
|
-
import '../../../../useAndroidServiceAccountTestResult-CwKeW0ED.js';
|
|
42
39
|
|
|
43
40
|
class GameIosAppSync extends BaseGameCommand {
|
|
44
41
|
static args = {};
|
|
@@ -5,9 +5,9 @@ import { render } from 'ink';
|
|
|
5
5
|
import 'node:fs';
|
|
6
6
|
import 'crypto-js';
|
|
7
7
|
import 'uuid';
|
|
8
|
-
import {
|
|
8
|
+
import { h as BaseGameCommand, P as Platform, C as CredentialsType, d as Certificate, p as CertificateType, q as Profile, r as ProfileType } from '../../../../index-CmuXyPed.js';
|
|
9
9
|
import 'luxon';
|
|
10
|
-
import { a as getProjectCredentials, g as getUserCredentials } from '../../../../index-
|
|
10
|
+
import { a as getProjectCredentials, g as getUserCredentials } from '../../../../index-CNsmEDXi.js';
|
|
11
11
|
import 'ink-spinner';
|
|
12
12
|
import 'node:crypto';
|
|
13
13
|
import 'node:path';
|
|
@@ -17,7 +17,7 @@ import 'readline-sync';
|
|
|
17
17
|
import 'isomorphic-git';
|
|
18
18
|
import '@tanstack/react-query';
|
|
19
19
|
import 'react';
|
|
20
|
-
import { f as fetchBundleId } from '../../../../useAppleBundleId-
|
|
20
|
+
import { f as fetchBundleId } from '../../../../useAppleBundleId-BeGViMe7.js';
|
|
21
21
|
import 'fast-glob';
|
|
22
22
|
import 'yazl';
|
|
23
23
|
import 'socket.io-client';
|
|
@@ -26,21 +26,18 @@ import 'string-length';
|
|
|
26
26
|
import 'strip-ansi';
|
|
27
27
|
import 'open';
|
|
28
28
|
import '@inkjs/ui';
|
|
29
|
-
import '../../../../ejs-DirFZbza.js';
|
|
30
29
|
import 'marked';
|
|
31
30
|
import 'marked-terminal';
|
|
32
31
|
import 'qrcode';
|
|
33
32
|
import { R as RunWithSpinner } from '../../../../RunWithSpinner-DucRnFp6.js';
|
|
34
|
-
import '../../../../
|
|
35
|
-
import {
|
|
36
|
-
import
|
|
33
|
+
import { C as Command } from '../../../../Command-CHh8RDXK.js';
|
|
34
|
+
import { a as uploadProjectCredentials } from '../../../../upload-D4x4yCia.js';
|
|
35
|
+
import 'chalk';
|
|
37
36
|
import '@expo/apple-utils/build/index.js';
|
|
38
37
|
import 'deepmerge';
|
|
39
38
|
import 'ini';
|
|
40
39
|
import 'fs';
|
|
41
40
|
import 'path';
|
|
42
|
-
import '../../../../index-CJWMt1s-.js';
|
|
43
|
-
import '../../../../useAndroidServiceAccountTestResult-CwKeW0ED.js';
|
|
44
41
|
|
|
45
42
|
class GameIosProfileCreate extends BaseGameCommand {
|
|
46
43
|
static args = {};
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { Flags } from '@oclif/core';
|
|
2
|
+
import { h as BaseGameCommand, P as Platform, C as CredentialsType, g as getShortUUID, b as getRenderedMarkdown, c as getInput } from '../../../../index-CmuXyPed.js';
|
|
3
|
+
import 'node:fs';
|
|
4
|
+
import 'axios';
|
|
5
|
+
import 'crypto-js';
|
|
6
|
+
import 'uuid';
|
|
7
|
+
import 'luxon';
|
|
8
|
+
import { a as getProjectCredentials, b as deleteProjectCredential } from '../../../../index-CNsmEDXi.js';
|
|
9
|
+
import 'react/jsx-runtime';
|
|
10
|
+
import 'ink';
|
|
11
|
+
import 'ink-spinner';
|
|
12
|
+
import 'react';
|
|
13
|
+
import '@tanstack/react-query';
|
|
14
|
+
import { q as queryAppleProfiles } from '../../../../useAppleProfiles-1TtO0aO6.js';
|
|
15
|
+
import 'fast-glob';
|
|
16
|
+
import 'yazl';
|
|
17
|
+
import 'socket.io-client';
|
|
18
|
+
import 'fullscreen-ink';
|
|
19
|
+
import 'string-length';
|
|
20
|
+
import 'strip-ansi';
|
|
21
|
+
import 'open';
|
|
22
|
+
import '@inkjs/ui';
|
|
23
|
+
import 'qrcode';
|
|
24
|
+
import 'node:path';
|
|
25
|
+
import 'chalk';
|
|
26
|
+
import '@expo/apple-utils/build/index.js';
|
|
27
|
+
import 'node:crypto';
|
|
28
|
+
import 'node:readline';
|
|
29
|
+
import 'node:url';
|
|
30
|
+
import 'readline-sync';
|
|
31
|
+
import 'isomorphic-git';
|
|
32
|
+
import 'deepmerge';
|
|
33
|
+
import 'ini';
|
|
34
|
+
import 'fs';
|
|
35
|
+
import 'path';
|
|
36
|
+
import 'marked';
|
|
37
|
+
import 'marked-terminal';
|
|
38
|
+
|
|
39
|
+
class GameIosProfileDelete extends BaseGameCommand {
|
|
40
|
+
static args = {};
|
|
41
|
+
static description = "Delete an iOS Mobile Provisioning Profile from ShipThis and optionally from Apple";
|
|
42
|
+
static examples = [
|
|
43
|
+
"<%= config.bin %> <%= command.id %>",
|
|
44
|
+
"<%= config.bin %> <%= command.id %> --revokeInApple --immediate --iAmSure"
|
|
45
|
+
];
|
|
46
|
+
static flags = {
|
|
47
|
+
...BaseGameCommand.flags,
|
|
48
|
+
immediate: Flags.boolean({
|
|
49
|
+
char: "i",
|
|
50
|
+
description: "Remove from storage immediately (rather than waiting for automatic cleanup - cannot be undone)",
|
|
51
|
+
required: false
|
|
52
|
+
}),
|
|
53
|
+
iAmSure: Flags.boolean({
|
|
54
|
+
char: "y",
|
|
55
|
+
description: "I am sure I want to do this - do not prompt me",
|
|
56
|
+
required: false
|
|
57
|
+
}),
|
|
58
|
+
revokeInApple: Flags.boolean({
|
|
59
|
+
char: "a",
|
|
60
|
+
description: "Also revoke the Profile in Apple (cannot be undone)",
|
|
61
|
+
required: false
|
|
62
|
+
})
|
|
63
|
+
};
|
|
64
|
+
async run() {
|
|
65
|
+
const { flags } = await this.parse(GameIosProfileDelete);
|
|
66
|
+
const { immediate, iAmSure, revokeInApple } = flags;
|
|
67
|
+
const game = await this.getGame();
|
|
68
|
+
const projectCredentials = await getProjectCredentials(game.id);
|
|
69
|
+
const userAppleProfileCredentials = projectCredentials.filter(
|
|
70
|
+
(cred) => cred.platform === Platform.IOS && cred.type === CredentialsType.CERTIFICATE && cred.isActive
|
|
71
|
+
);
|
|
72
|
+
if (userAppleProfileCredentials.length === 0) {
|
|
73
|
+
this.error("No active Mobile Provisioning Profile found which can be deleted.");
|
|
74
|
+
}
|
|
75
|
+
const [profile] = userAppleProfileCredentials;
|
|
76
|
+
let appleProfile = null;
|
|
77
|
+
if (revokeInApple) {
|
|
78
|
+
const authState = await this.refreshAppleAuthState();
|
|
79
|
+
const ctx = authState.context;
|
|
80
|
+
const appleProfiles = await queryAppleProfiles({ ctx });
|
|
81
|
+
appleProfile = appleProfiles.find((p) => {
|
|
82
|
+
const profileSerialNumber = p.attributes.certificates?.[0]?.attributes.serialNumber;
|
|
83
|
+
return profileSerialNumber === profile.serialNumber;
|
|
84
|
+
});
|
|
85
|
+
if (!appleProfile?.id) {
|
|
86
|
+
this.error("The Mobile Provisioning Profile was not found in Apple, so cannot be revoked there.");
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
const getAreYouSure = async () => {
|
|
90
|
+
if (iAmSure) return true;
|
|
91
|
+
const confirmString = getShortUUID(profile.id);
|
|
92
|
+
const prompt = getRenderedMarkdown({
|
|
93
|
+
filename: "confirm-delete-apple-credential.md.ejs",
|
|
94
|
+
templateVars: {
|
|
95
|
+
confirmString,
|
|
96
|
+
credentialType: "Mobile Provisioning Profile",
|
|
97
|
+
exportCommand: `shipthis game ios profile export userProfile.zip`,
|
|
98
|
+
immediate,
|
|
99
|
+
revokeInApple
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
this.log(prompt);
|
|
103
|
+
const input = await getInput("");
|
|
104
|
+
return input.trim().toLowerCase() === confirmString.toLowerCase();
|
|
105
|
+
};
|
|
106
|
+
const areYouSure = await getAreYouSure();
|
|
107
|
+
if (!areYouSure) {
|
|
108
|
+
this.log("Aborting - Mobile Provisioning Profile not deleted");
|
|
109
|
+
this.exit(0);
|
|
110
|
+
}
|
|
111
|
+
await deleteProjectCredential(game.id, {
|
|
112
|
+
credentialId: profile.id,
|
|
113
|
+
isImmediate: immediate
|
|
114
|
+
});
|
|
115
|
+
this.log("The Mobile Provisioning Profile has been deleted from ShipThis.");
|
|
116
|
+
if (revokeInApple && appleProfile?.id) {
|
|
117
|
+
await appleProfile.deleteAsync();
|
|
118
|
+
this.log("The Mobile Provisioning Profile has been deleted in Apple.");
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export { GameIosProfileDelete as default };
|
|
@@ -2,8 +2,8 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import * as fs from 'node:fs';
|
|
3
3
|
import { Args, Flags } from '@oclif/core';
|
|
4
4
|
import { render } from 'ink';
|
|
5
|
-
import { a as getProjectCredentials } from '../../../../index-
|
|
6
|
-
import {
|
|
5
|
+
import { a as getProjectCredentials } from '../../../../index-CNsmEDXi.js';
|
|
6
|
+
import { h as BaseGameCommand, P as Platform, C as CredentialsType } from '../../../../index-CmuXyPed.js';
|
|
7
7
|
import 'ink-spinner';
|
|
8
8
|
import 'node:crypto';
|
|
9
9
|
import 'node:path';
|
|
@@ -25,21 +25,18 @@ import 'string-length';
|
|
|
25
25
|
import 'strip-ansi';
|
|
26
26
|
import 'open';
|
|
27
27
|
import '@inkjs/ui';
|
|
28
|
-
import '../../../../ejs-DirFZbza.js';
|
|
29
28
|
import 'marked';
|
|
30
29
|
import 'marked-terminal';
|
|
31
30
|
import 'qrcode';
|
|
32
31
|
import { R as RunWithSpinner } from '../../../../RunWithSpinner-DucRnFp6.js';
|
|
33
|
-
import '../../../../
|
|
34
|
-
import {
|
|
35
|
-
import
|
|
32
|
+
import { C as Command } from '../../../../Command-CHh8RDXK.js';
|
|
33
|
+
import { e as exportCredential } from '../../../../export-DujIwhJw.js';
|
|
34
|
+
import 'chalk';
|
|
36
35
|
import '@expo/apple-utils/build/index.js';
|
|
37
36
|
import 'deepmerge';
|
|
38
37
|
import 'ini';
|
|
39
38
|
import 'fs';
|
|
40
39
|
import 'path';
|
|
41
|
-
import '../../../../index-CJWMt1s-.js';
|
|
42
|
-
import '../../../../useAndroidServiceAccountTestResult-CwKeW0ED.js';
|
|
43
40
|
|
|
44
41
|
class GameIosProfileExport extends BaseGameCommand {
|
|
45
42
|
static args = {
|
|
@@ -2,8 +2,8 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import * as fs from 'node:fs';
|
|
3
3
|
import { Args, Flags } from '@oclif/core';
|
|
4
4
|
import { render } from 'ink';
|
|
5
|
-
import { a as getProjectCredentials } from '../../../../index-
|
|
6
|
-
import {
|
|
5
|
+
import { a as getProjectCredentials } from '../../../../index-CNsmEDXi.js';
|
|
6
|
+
import { h as BaseGameCommand, P as Platform, C as CredentialsType } from '../../../../index-CmuXyPed.js';
|
|
7
7
|
import 'ink-spinner';
|
|
8
8
|
import 'node:crypto';
|
|
9
9
|
import 'node:path';
|
|
@@ -25,21 +25,18 @@ import 'string-length';
|
|
|
25
25
|
import 'strip-ansi';
|
|
26
26
|
import 'open';
|
|
27
27
|
import '@inkjs/ui';
|
|
28
|
-
import '../../../../ejs-DirFZbza.js';
|
|
29
28
|
import 'marked';
|
|
30
29
|
import 'marked-terminal';
|
|
31
30
|
import 'qrcode';
|
|
32
31
|
import { R as RunWithSpinner } from '../../../../RunWithSpinner-DucRnFp6.js';
|
|
33
|
-
import '../../../../
|
|
34
|
-
import {
|
|
35
|
-
import
|
|
32
|
+
import { C as Command } from '../../../../Command-CHh8RDXK.js';
|
|
33
|
+
import { i as importCredential } from '../../../../import-DGCqCAcC.js';
|
|
34
|
+
import 'chalk';
|
|
36
35
|
import '@expo/apple-utils/build/index.js';
|
|
37
36
|
import 'deepmerge';
|
|
38
37
|
import 'ini';
|
|
39
38
|
import 'fs';
|
|
40
39
|
import 'path';
|
|
41
|
-
import '../../../../index-CJWMt1s-.js';
|
|
42
|
-
import '../../../../useAndroidServiceAccountTestResult-CwKeW0ED.js';
|
|
43
40
|
|
|
44
41
|
class GameIosProfileImport extends BaseGameCommand {
|
|
45
42
|
static args = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
2
2
|
import { Flags } from '@oclif/core';
|
|
3
3
|
import { Box, Text, render } from 'ink';
|
|
4
|
-
import {
|
|
4
|
+
import { C as CredentialsType, P as Platform, h as BaseGameCommand } from '../../../../index-CmuXyPed.js';
|
|
5
5
|
import Spinner from 'ink-spinner';
|
|
6
6
|
import 'node:crypto';
|
|
7
7
|
import 'node:fs';
|
|
@@ -9,10 +9,10 @@ import 'node:path';
|
|
|
9
9
|
import 'node:readline';
|
|
10
10
|
import 'node:url';
|
|
11
11
|
import 'readline-sync';
|
|
12
|
-
import
|
|
12
|
+
import 'luxon';
|
|
13
13
|
import 'axios';
|
|
14
14
|
import 'isomorphic-git';
|
|
15
|
-
import
|
|
15
|
+
import '@tanstack/react-query';
|
|
16
16
|
import 'react';
|
|
17
17
|
import 'crypto-js';
|
|
18
18
|
import 'uuid';
|
|
@@ -22,67 +22,24 @@ import 'socket.io-client';
|
|
|
22
22
|
import 'fullscreen-ink';
|
|
23
23
|
import 'string-length';
|
|
24
24
|
import 'strip-ansi';
|
|
25
|
-
import { P as ProjectCredentialsTable } from '../../../../ProjectCredentialsTable-
|
|
25
|
+
import { P as ProjectCredentialsTable } from '../../../../ProjectCredentialsTable-BDYVYqAq.js';
|
|
26
26
|
import 'open';
|
|
27
27
|
import '@inkjs/ui';
|
|
28
|
-
import '../../../../ejs-DirFZbza.js';
|
|
29
28
|
import 'marked';
|
|
30
29
|
import 'marked-terminal';
|
|
31
30
|
import 'qrcode';
|
|
32
|
-
import '../../../../
|
|
33
|
-
import { u as useProjectCredentials } from '../../../../useProjectCredentials-
|
|
31
|
+
import { u as useAppleProfiles, c as canAppleProfileBeUsed, g as getAppleProfileSummary } from '../../../../useAppleProfiles-1TtO0aO6.js';
|
|
32
|
+
import { u as useProjectCredentials } from '../../../../useProjectCredentials-Cm50WMZU.js';
|
|
34
33
|
import { T as Table } from '../../../../Table-FaNgpyeq.js';
|
|
35
34
|
import { T as Title } from '../../../../Title-BCQtayg6.js';
|
|
36
35
|
import { N as NextSteps } from '../../../../NextSteps-DbJHmscQ.js';
|
|
37
|
-
import { C as Command } from '../../../../Command-
|
|
36
|
+
import { C as Command } from '../../../../Command-CHh8RDXK.js';
|
|
37
|
+
import 'chalk';
|
|
38
38
|
import '@expo/apple-utils/build/index.js';
|
|
39
39
|
import 'deepmerge';
|
|
40
40
|
import 'ini';
|
|
41
41
|
import 'fs';
|
|
42
42
|
import 'path';
|
|
43
|
-
import '../../../../index-CJWMt1s-.js';
|
|
44
|
-
import '../../../../useAndroidServiceAccountTestResult-CwKeW0ED.js';
|
|
45
|
-
|
|
46
|
-
async function queryAppleProfiles({ ctx }) {
|
|
47
|
-
const appleProfiles = await Profile.getAsync(ctx, {
|
|
48
|
-
query: {
|
|
49
|
-
filter: {
|
|
50
|
-
profileType: [ProfileType.IOS_APP_STORE]
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
return appleProfiles;
|
|
55
|
-
}
|
|
56
|
-
const canAppleProfileBeUsed = (appleProfile, project, projectCredentials) => {
|
|
57
|
-
try {
|
|
58
|
-
if (!appleProfile.isValid) return false;
|
|
59
|
-
const profileBundleId = appleProfile.attributes.bundleId?.attributes.identifier;
|
|
60
|
-
const profileCertificateSerialNumber = appleProfile.attributes.certificates?.[0]?.attributes.serialNumber;
|
|
61
|
-
if (profileBundleId !== project.details?.iosBundleId) return false;
|
|
62
|
-
return projectCredentials.some(
|
|
63
|
-
(credential) => credential.isActive && credential.serialNumber === profileCertificateSerialNumber
|
|
64
|
-
);
|
|
65
|
-
} catch (error) {
|
|
66
|
-
console.log(error);
|
|
67
|
-
return false;
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
|
-
function getAppleProfileSummary(appleProfile, project, projectCredentials) {
|
|
71
|
-
return {
|
|
72
|
-
canBeUsed: canAppleProfileBeUsed(appleProfile, project, projectCredentials),
|
|
73
|
-
expires: getShortDate(DateTime.fromISO(appleProfile.attributes.expirationDate)),
|
|
74
|
-
id: appleProfile.id,
|
|
75
|
-
name: appleProfile.attributes.name,
|
|
76
|
-
platform: appleProfile.attributes.platform
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
const useAppleProfiles = (props) => {
|
|
80
|
-
const queryResult = useQuery({
|
|
81
|
-
queryFn: () => queryAppleProfiles(props),
|
|
82
|
-
queryKey: ["appleProfiles"]
|
|
83
|
-
});
|
|
84
|
-
return queryResult;
|
|
85
|
-
};
|
|
86
43
|
|
|
87
44
|
const AppleProfilesTable = ({ ctx, project, ...boxProps }) => {
|
|
88
45
|
const { data: credentialsResponse } = useProjectCredentials({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import { Flags } from '@oclif/core';
|
|
3
3
|
import { render, Box } from 'ink';
|
|
4
|
-
import {
|
|
4
|
+
import { h as BaseGameCommand, P as Platform } from '../../../index-CmuXyPed.js';
|
|
5
5
|
import 'ink-spinner';
|
|
6
6
|
import 'node:crypto';
|
|
7
7
|
import 'node:fs';
|
|
@@ -20,32 +20,29 @@ import 'fast-glob';
|
|
|
20
20
|
import 'yazl';
|
|
21
21
|
import 'socket.io-client';
|
|
22
22
|
import 'fullscreen-ink';
|
|
23
|
-
import { G as GameStatusDetails } from '../../../GameStatus-
|
|
23
|
+
import { G as GameStatusDetails } from '../../../GameStatus-D7ID10tS.js';
|
|
24
24
|
import 'string-length';
|
|
25
25
|
import 'strip-ansi';
|
|
26
26
|
import 'open';
|
|
27
27
|
import '@inkjs/ui';
|
|
28
|
-
import '../../../ejs-DirFZbza.js';
|
|
29
28
|
import 'marked';
|
|
30
29
|
import 'marked-terminal';
|
|
31
30
|
import 'qrcode';
|
|
32
|
-
import '../../../
|
|
33
|
-
import {
|
|
34
|
-
import
|
|
31
|
+
import { A as AppleAppDetails, a as AppleBundleIdDetails } from '../../../AppleBundleIdDetails-KMzyex1H.js';
|
|
32
|
+
import { C as CommandGame } from '../../../CommandGame-Rvmsa7b0.js';
|
|
33
|
+
import 'chalk';
|
|
35
34
|
import '@expo/apple-utils/build/index.js';
|
|
36
35
|
import 'deepmerge';
|
|
37
36
|
import 'ini';
|
|
38
|
-
import '
|
|
37
|
+
import 'fs';
|
|
38
|
+
import 'path';
|
|
39
39
|
import '../../../StatusTable-DzRWcMr4.js';
|
|
40
40
|
import '../../../Title-BCQtayg6.js';
|
|
41
41
|
import '../../../NextSteps-DbJHmscQ.js';
|
|
42
|
-
import '
|
|
43
|
-
import 'path';
|
|
44
|
-
import '../../../useAndroidServiceAccountTestResult-CwKeW0ED.js';
|
|
45
|
-
import '../../../useAppleApp-BZc_cNa-.js';
|
|
42
|
+
import '../../../useAppleApp-taaewPSf.js';
|
|
46
43
|
import '../../../Table-FaNgpyeq.js';
|
|
47
|
-
import '../../../useAppleBundleId-
|
|
48
|
-
import '../../../Command-
|
|
44
|
+
import '../../../useAppleBundleId-BeGViMe7.js';
|
|
45
|
+
import '../../../Command-CHh8RDXK.js';
|
|
49
46
|
|
|
50
47
|
class GameIosStatus extends BaseGameCommand {
|
|
51
48
|
static args = {};
|
|
@@ -4,9 +4,9 @@ import 'node:fs';
|
|
|
4
4
|
import 'axios';
|
|
5
5
|
import 'crypto-js';
|
|
6
6
|
import 'uuid';
|
|
7
|
-
import { B as BaseAuthenticatedCommand,
|
|
7
|
+
import { B as BaseAuthenticatedCommand, o as isCWDGodotGame, b as getRenderedMarkdown, W as WEB_URL, P as Platform, C as CredentialsType } from '../../../index-CmuXyPed.js';
|
|
8
8
|
import 'luxon';
|
|
9
|
-
import { g as getUserCredentials, a as getProjectCredentials } from '../../../index-
|
|
9
|
+
import { g as getUserCredentials, a as getProjectCredentials } from '../../../index-CNsmEDXi.js';
|
|
10
10
|
import 'react/jsx-runtime';
|
|
11
11
|
import 'ink';
|
|
12
12
|
import 'ink-spinner';
|
|
@@ -26,14 +26,10 @@ import 'string-length';
|
|
|
26
26
|
import 'strip-ansi';
|
|
27
27
|
import 'open';
|
|
28
28
|
import '@inkjs/ui';
|
|
29
|
-
import { g as getRenderedMarkdown } from '../../../index-hoHfGrjg.js';
|
|
30
29
|
import 'qrcode';
|
|
31
30
|
import '@expo/apple-utils/build/index.js';
|
|
32
31
|
import 'deepmerge';
|
|
33
32
|
import 'ini';
|
|
34
|
-
import '../../../index-CJWMt1s-.js';
|
|
35
|
-
import '../../../useAndroidServiceAccountTestResult-CwKeW0ED.js';
|
|
36
|
-
import '../../../ejs-DirFZbza.js';
|
|
37
33
|
import 'fs';
|
|
38
34
|
import 'path';
|
|
39
35
|
import 'marked';
|
|
@@ -2,15 +2,13 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import { Flags } from '@oclif/core';
|
|
3
3
|
import { render, Box, Text } from 'ink';
|
|
4
4
|
import { DateTime } from 'luxon';
|
|
5
|
-
import {
|
|
5
|
+
import { h as BaseGameCommand, H as getProjectJobs, I as getJobSummary, J as getJobStatusColor } from '../../../index-CmuXyPed.js';
|
|
6
6
|
import 'ink-spinner';
|
|
7
|
-
import { c as getJobStatusColor } from '../../../index-CJWMt1s-.js';
|
|
8
7
|
import { T as Table } from '../../../Table-FaNgpyeq.js';
|
|
9
8
|
import { T as Title } from '../../../Title-BCQtayg6.js';
|
|
10
9
|
import 'react';
|
|
11
10
|
import '@tanstack/react-query';
|
|
12
11
|
import 'axios';
|
|
13
|
-
import { a as getJobSummary } from '../../../index-hoHfGrjg.js';
|
|
14
12
|
import 'node:fs';
|
|
15
13
|
import 'fast-glob';
|
|
16
14
|
import 'uuid';
|
|
@@ -22,12 +20,12 @@ import 'strip-ansi';
|
|
|
22
20
|
import 'open';
|
|
23
21
|
import '@inkjs/ui';
|
|
24
22
|
import 'node:path';
|
|
25
|
-
import '../../../ejs-DirFZbza.js';
|
|
26
23
|
import 'marked';
|
|
27
24
|
import 'marked-terminal';
|
|
28
25
|
import 'qrcode';
|
|
29
|
-
import { C as Command } from '../../../Command-
|
|
26
|
+
import { C as Command } from '../../../Command-CHh8RDXK.js';
|
|
30
27
|
import 'crypto-js';
|
|
28
|
+
import 'chalk';
|
|
31
29
|
import '@expo/apple-utils/build/index.js';
|
|
32
30
|
import 'node:crypto';
|
|
33
31
|
import 'node:readline';
|
|
@@ -36,7 +34,6 @@ import 'readline-sync';
|
|
|
36
34
|
import 'isomorphic-git';
|
|
37
35
|
import 'deepmerge';
|
|
38
36
|
import 'ini';
|
|
39
|
-
import '../../../useAndroidServiceAccountTestResult-CwKeW0ED.js';
|
|
40
37
|
import 'fs';
|
|
41
38
|
import 'path';
|
|
42
39
|
|