shipthis 0.0.28 → 0.0.29

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.
@@ -1,4 +1,4 @@
1
- import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
1
+ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
2
2
  import { Flags } from '@oclif/core';
3
3
  import { Box, Text, render } from 'ink';
4
4
  import { f as getShortDate, q as Certificate, r as CertificateType, P as Platform, C as CredentialsType, B as BaseAuthenticatedCommand } from '../../../baseGameCommand-B3NbuvDu.js';
@@ -65,17 +65,20 @@ const AppleCertificatesTable = ({ ctx, ...boxProps }) => {
65
65
  });
66
66
  const { data: certs, isLoading } = useAppleCertificates({ ctx });
67
67
  const hasUsable = certs && userCredentialsResponse && certs.some((cert) => canAppleCertificateBeUsed(cert, userCredentialsResponse.data));
68
- return /* @__PURE__ */ jsxs(Box, { flexDirection: "column", marginBottom: 1, ...boxProps, children: [
69
- /* @__PURE__ */ jsx(Title, { children: "Distribution Certificates in your Apple account" }),
70
- isLoading && /* @__PURE__ */ jsx(Spinner, { type: "dots" }),
71
- certs && userCredentialsResponse && /* @__PURE__ */ jsxs(Fragment, { children: [
72
- /* @__PURE__ */ jsxs(Box, { marginLeft: 2, marginBottom: 1, flexDirection: "column", children: [
73
- /* @__PURE__ */ jsx(Text, { children: `You have ${certs.length} Distribution Certificates in your Apple account` }),
74
- /* @__PURE__ */ jsx(Text, { children: `${hasUsable ? "One" : "None"} of these can be used by ShipThis` })
75
- ] }),
76
- /* @__PURE__ */ jsx(Table, { data: certs.map((cert) => getAppleCertificateSummary(cert, userCredentialsResponse.data)) }),
77
- !hasUsable && /* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(Text, { bold: true, children: "You do not have a usable Distribution Certificate. To ship an iOS game, you will need a usable Distribution Certificate." }) })
78
- ] })
68
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
69
+ /* @__PURE__ */ jsxs(Box, { flexDirection: "column", marginBottom: 1, ...boxProps, children: [
70
+ /* @__PURE__ */ jsx(Title, { children: "Distribution Certificates in your Apple account" }),
71
+ isLoading && /* @__PURE__ */ jsx(Spinner, { type: "dots" }),
72
+ certs && userCredentialsResponse && /* @__PURE__ */ jsxs(Fragment, { children: [
73
+ /* @__PURE__ */ jsxs(Box, { marginLeft: 2, marginBottom: 1, flexDirection: "column", children: [
74
+ /* @__PURE__ */ jsx(Text, { children: `You have ${certs.length} Distribution Certificates in your Apple account` }),
75
+ /* @__PURE__ */ jsx(Text, { children: `${hasUsable ? "One" : "None"} of these can be used by ShipThis` })
76
+ ] }),
77
+ certs.length > 0 && /* @__PURE__ */ jsx(Table, { data: certs.map((cert) => getAppleCertificateSummary(cert, userCredentialsResponse.data)) }),
78
+ !hasUsable && /* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(Text, { bold: true, children: "You do not have a usable Distribution Certificate. To ship an iOS game, you will need a usable Distribution Certificate." }) })
79
+ ] })
80
+ ] }),
81
+ certs && !hasUsable && /* @__PURE__ */ jsx(NextSteps, { steps: ["shipthis apple certificate create"] })
79
82
  ] });
80
83
  };
81
84
 
@@ -1,27 +1,32 @@
1
1
  # Topic: `apple apiKey`
2
2
 
3
+ ## Description
4
+
3
5
  Commands in the apple apiKey topic are prefixed `shipthis apple apiKey`. These commands relate to App Store Connect API Keys.
4
6
 
5
7
  - You can view the App Store Connect API Keys in the [Apple Developer Portal](https://appstoreconnect.apple.com/access/integrations/api).
6
8
  - You can view the keys which ShipThis can use in the [ShipThis Dashboard](https://shipthis.cc/credentials)
7
9
 
10
+ :::info
11
+ An **App Store Connect API key** is used to authenticate and authorize automated interactions with Apple's App Store Connect API, enabling tasks like managing app metadata, TestFlight, and sales reports.
12
+ :::
13
+
8
14
  :::tip
9
15
  You will need to be authenticated against ShipThis and Apple before you can use
10
16
  these commands. To do that please run the following commands first:
11
17
 
12
18
  - [`shipthis login`](/docs/reference/login)
13
19
  - [`shipthis apple login`](/docs/reference/apple/login)
20
+
14
21
  :::
15
22
 
16
23
  ## Example
17
24
 
18
-
19
-
25
+ [![asciicast](https://asciinema.org/a/PsCq8H4NowWSiGGMLraosAh9a.svg)](https://asciinema.org/a/PsCq8H4NowWSiGGMLraosAh9a)
20
26
 
21
27
  ## Commands
22
28
 
23
-
24
- ### apple apiKey create
29
+ ### `apple apiKey create`
25
30
 
26
31
  #### Description
27
32
 
@@ -48,7 +53,7 @@ EXAMPLES
48
53
  $ shipthis apple apiKey create --force
49
54
  ```
50
55
 
51
- ### apple apiKey export
56
+ ### `apple apiKey export`
52
57
 
53
58
  #### Description
54
59
 
@@ -73,7 +78,7 @@ EXAMPLES
73
78
  $ shipthis apple apiKey export userApiKey.zip
74
79
  ```
75
80
 
76
- ### apple apiKey import
81
+ ### `apple apiKey import`
77
82
 
78
83
  #### Description
79
84
 
@@ -98,7 +103,7 @@ EXAMPLES
98
103
  $ shipthis apple apiKey import userApiKey.zip
99
104
  ```
100
105
 
101
- ### apple apiKey status
106
+ ### `apple apiKey status`
102
107
 
103
108
  #### Description
104
109
 
@@ -1,12 +1,32 @@
1
1
  # Topic: `apple certificate`
2
2
 
3
- Commands related to App Store Certificates
3
+ ## Description
4
4
 
5
+ Commands in the apple certificate topic are prefixed `shipthis apple certificate`.
6
+ These commands relate to iOS Distribution Certificates within your Apple Developer account.
5
7
 
6
- ## Commands
8
+ - You can view the Distribution Certificates in the [Apple Developer Portal](https://developer.apple.com/account/resources/certificates/list).
9
+ - You can more about Certificates in the [Apple Documentation](https://developer.apple.com/help/account/create-certificates/certificates-overview/).
10
+ - You can view the Certificates which ShipThis uses in the [ShipThis Dashboard](https://shipthis.cc/credentials).
11
+
12
+ :::info
13
+ An **iOS Distribution Certificate** is used to authenticate and authorize the distribution of iOS apps, ensuring they are signed and trusted for installation on devices or submission to the App Store.
14
+ :::
15
+
16
+ :::tip
17
+ You will need to be authenticated against ShipThis and Apple before you can use
18
+ these commands. To do that please run the following commands first:
19
+
20
+ - [`shipthis login`](/docs/reference/login)
21
+ - [`shipthis apple login`](/docs/reference/apple/login)
7
22
 
23
+ :::
24
+
25
+ ## Example
26
+
27
+ ## Commands
8
28
 
9
- ### apple certificate create
29
+ ### `apple certificate create`
10
30
 
11
31
  #### Description
12
32
 
@@ -33,7 +53,7 @@ EXAMPLES
33
53
  $ shipthis apple certificate create --force
34
54
  ```
35
55
 
36
- ### apple certificate export
56
+ ### `apple certificate export`
37
57
 
38
58
  #### Description
39
59
 
@@ -58,7 +78,7 @@ EXAMPLES
58
78
  $ shipthis apple certificate export userCert.zip
59
79
  ```
60
80
 
61
- ### apple certificate import
81
+ ### `apple certificate import`
62
82
 
63
83
  #### Description
64
84
 
@@ -83,7 +103,7 @@ EXAMPLES
83
103
  $ shipthis apple certificate import userCert.zip
84
104
  ```
85
105
 
86
- ### apple certificate status
106
+ ### `apple certificate status`
87
107
 
88
108
  #### Description
89
109
 
@@ -5,13 +5,19 @@ to managing completed builds of your game.
5
5
 
6
6
  ShipThis allows you to list and download your builds.
7
7
 
8
- ## Example
8
+ :::tip
9
+ The `game build` topic relates to the files which are generated by ShipThis from
10
+ your game code. It should not be confused with the command [`shipthis game ship`](/docs/reference/game/ship).
11
+ :::
12
+
13
+
14
+ ## Example
9
15
 
10
16
  [![asciicast](https://asciinema.org/a/m2i3bOvZHUpQXFWtYXc7UnaKQ.svg)](https://asciinema.org/a/m2i3bOvZHUpQXFWtYXc7UnaKQ)
11
17
 
12
18
  ## Commands
13
19
 
14
- ### game build download
20
+ ### Command: `game build download`
15
21
 
16
22
  #### Description
17
23
 
@@ -40,7 +46,7 @@ EXAMPLES
40
46
  $ shipthis game build download --gameId 0c179fc4 e4b9a3d7 output.apk
41
47
  ```
42
48
 
43
- ### game build list
49
+ ### Command: `game build list`
44
50
 
45
51
  #### Description
46
52
 
@@ -663,139 +663,6 @@
663
663
  "status.js"
664
664
  ]
665
665
  },
666
- "game:build:download": {
667
- "aliases": [],
668
- "args": {
669
- "build_id": {
670
- "description": "The ID of the build to download",
671
- "name": "build_id",
672
- "required": true
673
- },
674
- "file": {
675
- "description": "Name of the file to output",
676
- "name": "file",
677
- "required": true
678
- }
679
- },
680
- "description": "Downloads the given build artifact to the specified file",
681
- "examples": [
682
- "<%= config.bin %> <%= command.id %> 7a3f5c92 output.ipa",
683
- "<%= config.bin %> <%= command.id %> --gameId 0c179fc4 e4b9a3d7 output.apk"
684
- ],
685
- "flags": {
686
- "gameId": {
687
- "char": "g",
688
- "description": "The ID of the game",
689
- "name": "gameId",
690
- "hasDynamicHelp": false,
691
- "multiple": false,
692
- "type": "option"
693
- },
694
- "force": {
695
- "char": "f",
696
- "description": "Overwrite the file if it already exists",
697
- "name": "force",
698
- "allowNo": false,
699
- "type": "boolean"
700
- }
701
- },
702
- "hasDynamicHelp": false,
703
- "hiddenAliases": [],
704
- "id": "game:build:download",
705
- "pluginAlias": "shipthis",
706
- "pluginName": "shipthis",
707
- "pluginType": "core",
708
- "strict": true,
709
- "enableJsonFlag": false,
710
- "isESM": true,
711
- "relativePath": [
712
- "dist",
713
- "commands",
714
- "game",
715
- "build",
716
- "download.js"
717
- ]
718
- },
719
- "game:build:list": {
720
- "aliases": [],
721
- "args": {},
722
- "description": "Lists the builds for successful jobs of a game.",
723
- "examples": [
724
- "<%= config.bin %> <%= command.id %>",
725
- "<%= config.bin %> <%= command.id %> --gameId 0c179fc4",
726
- "<%= config.bin %> <%= command.id %> --gameId 0c179fc4 --pageSize 20 --pageNumber 1"
727
- ],
728
- "flags": {
729
- "gameId": {
730
- "char": "g",
731
- "description": "The ID of the game",
732
- "name": "gameId",
733
- "hasDynamicHelp": false,
734
- "multiple": false,
735
- "type": "option"
736
- },
737
- "pageNumber": {
738
- "char": "p",
739
- "description": "The page number to show (starts at 0)",
740
- "name": "pageNumber",
741
- "default": 0,
742
- "hasDynamicHelp": false,
743
- "multiple": false,
744
- "type": "option"
745
- },
746
- "pageSize": {
747
- "char": "s",
748
- "description": "The number of items to show per page",
749
- "name": "pageSize",
750
- "default": 10,
751
- "hasDynamicHelp": false,
752
- "multiple": false,
753
- "type": "option"
754
- },
755
- "orderBy": {
756
- "char": "o",
757
- "description": "The field to order by",
758
- "name": "orderBy",
759
- "default": "createdAt",
760
- "hasDynamicHelp": false,
761
- "multiple": false,
762
- "options": [
763
- "createdAt",
764
- "updatedAt"
765
- ],
766
- "type": "option"
767
- },
768
- "order": {
769
- "char": "r",
770
- "description": "The order to sort by",
771
- "name": "order",
772
- "default": "desc",
773
- "hasDynamicHelp": false,
774
- "multiple": false,
775
- "options": [
776
- "asc",
777
- "desc"
778
- ],
779
- "type": "option"
780
- }
781
- },
782
- "hasDynamicHelp": false,
783
- "hiddenAliases": [],
784
- "id": "game:build:list",
785
- "pluginAlias": "shipthis",
786
- "pluginName": "shipthis",
787
- "pluginType": "core",
788
- "strict": true,
789
- "enableJsonFlag": false,
790
- "isESM": true,
791
- "relativePath": [
792
- "dist",
793
- "commands",
794
- "game",
795
- "build",
796
- "list.js"
797
- ]
798
- },
799
666
  "apple:apiKey:create": {
800
667
  "aliases": [],
801
668
  "args": {},
@@ -945,13 +812,67 @@
945
812
  "status.js"
946
813
  ]
947
814
  },
948
- "game:ios:status": {
815
+ "game:build:download": {
816
+ "aliases": [],
817
+ "args": {
818
+ "build_id": {
819
+ "description": "The ID of the build to download",
820
+ "name": "build_id",
821
+ "required": true
822
+ },
823
+ "file": {
824
+ "description": "Name of the file to output",
825
+ "name": "file",
826
+ "required": true
827
+ }
828
+ },
829
+ "description": "Downloads the given build artifact to the specified file",
830
+ "examples": [
831
+ "<%= config.bin %> <%= command.id %> 7a3f5c92 output.ipa",
832
+ "<%= config.bin %> <%= command.id %> --gameId 0c179fc4 e4b9a3d7 output.apk"
833
+ ],
834
+ "flags": {
835
+ "gameId": {
836
+ "char": "g",
837
+ "description": "The ID of the game",
838
+ "name": "gameId",
839
+ "hasDynamicHelp": false,
840
+ "multiple": false,
841
+ "type": "option"
842
+ },
843
+ "force": {
844
+ "char": "f",
845
+ "description": "Overwrite the file if it already exists",
846
+ "name": "force",
847
+ "allowNo": false,
848
+ "type": "boolean"
849
+ }
850
+ },
851
+ "hasDynamicHelp": false,
852
+ "hiddenAliases": [],
853
+ "id": "game:build:download",
854
+ "pluginAlias": "shipthis",
855
+ "pluginName": "shipthis",
856
+ "pluginType": "core",
857
+ "strict": true,
858
+ "enableJsonFlag": false,
859
+ "isESM": true,
860
+ "relativePath": [
861
+ "dist",
862
+ "commands",
863
+ "game",
864
+ "build",
865
+ "download.js"
866
+ ]
867
+ },
868
+ "game:build:list": {
949
869
  "aliases": [],
950
870
  "args": {},
951
- "description": "Shows the Game iOS Platform status. If --gameId is not provided it will look in the current directory.",
871
+ "description": "Lists the builds for successful jobs of a game.",
952
872
  "examples": [
953
873
  "<%= config.bin %> <%= command.id %>",
954
- "<%= config.bin %> <%= command.id %> --gameId 0c179fc4"
874
+ "<%= config.bin %> <%= command.id %> --gameId 0c179fc4",
875
+ "<%= config.bin %> <%= command.id %> --gameId 0c179fc4 --pageSize 20 --pageNumber 1"
955
876
  ],
956
877
  "flags": {
957
878
  "gameId": {
@@ -961,11 +882,55 @@
961
882
  "hasDynamicHelp": false,
962
883
  "multiple": false,
963
884
  "type": "option"
885
+ },
886
+ "pageNumber": {
887
+ "char": "p",
888
+ "description": "The page number to show (starts at 0)",
889
+ "name": "pageNumber",
890
+ "default": 0,
891
+ "hasDynamicHelp": false,
892
+ "multiple": false,
893
+ "type": "option"
894
+ },
895
+ "pageSize": {
896
+ "char": "s",
897
+ "description": "The number of items to show per page",
898
+ "name": "pageSize",
899
+ "default": 10,
900
+ "hasDynamicHelp": false,
901
+ "multiple": false,
902
+ "type": "option"
903
+ },
904
+ "orderBy": {
905
+ "char": "o",
906
+ "description": "The field to order by",
907
+ "name": "orderBy",
908
+ "default": "createdAt",
909
+ "hasDynamicHelp": false,
910
+ "multiple": false,
911
+ "options": [
912
+ "createdAt",
913
+ "updatedAt"
914
+ ],
915
+ "type": "option"
916
+ },
917
+ "order": {
918
+ "char": "r",
919
+ "description": "The order to sort by",
920
+ "name": "order",
921
+ "default": "desc",
922
+ "hasDynamicHelp": false,
923
+ "multiple": false,
924
+ "options": [
925
+ "asc",
926
+ "desc"
927
+ ],
928
+ "type": "option"
964
929
  }
965
930
  },
966
931
  "hasDynamicHelp": false,
967
932
  "hiddenAliases": [],
968
- "id": "game:ios:status",
933
+ "id": "game:build:list",
969
934
  "pluginAlias": "shipthis",
970
935
  "pluginName": "shipthis",
971
936
  "pluginType": "core",
@@ -976,8 +941,8 @@
976
941
  "dist",
977
942
  "commands",
978
943
  "game",
979
- "ios",
980
- "status.js"
944
+ "build",
945
+ "list.js"
981
946
  ]
982
947
  },
983
948
  "game:job:list": {
@@ -1117,6 +1082,41 @@
1117
1082
  "status.js"
1118
1083
  ]
1119
1084
  },
1085
+ "game:ios:status": {
1086
+ "aliases": [],
1087
+ "args": {},
1088
+ "description": "Shows the Game iOS Platform status. If --gameId is not provided it will look in the current directory.",
1089
+ "examples": [
1090
+ "<%= config.bin %> <%= command.id %>",
1091
+ "<%= config.bin %> <%= command.id %> --gameId 0c179fc4"
1092
+ ],
1093
+ "flags": {
1094
+ "gameId": {
1095
+ "char": "g",
1096
+ "description": "The ID of the game",
1097
+ "name": "gameId",
1098
+ "hasDynamicHelp": false,
1099
+ "multiple": false,
1100
+ "type": "option"
1101
+ }
1102
+ },
1103
+ "hasDynamicHelp": false,
1104
+ "hiddenAliases": [],
1105
+ "id": "game:ios:status",
1106
+ "pluginAlias": "shipthis",
1107
+ "pluginName": "shipthis",
1108
+ "pluginType": "core",
1109
+ "strict": true,
1110
+ "enableJsonFlag": false,
1111
+ "isESM": true,
1112
+ "relativePath": [
1113
+ "dist",
1114
+ "commands",
1115
+ "game",
1116
+ "ios",
1117
+ "status.js"
1118
+ ]
1119
+ },
1120
1120
  "game:ios:app:addTester": {
1121
1121
  "aliases": [],
1122
1122
  "args": {},
@@ -1508,5 +1508,5 @@
1508
1508
  ]
1509
1509
  }
1510
1510
  },
1511
- "version": "0.0.28"
1511
+ "version": "0.0.29"
1512
1512
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "shipthis",
3
3
  "description": "Game Shipping Tool",
4
- "version": "0.0.28",
4
+ "version": "0.0.29",
5
5
  "author": "Hello Invent Ltd",
6
6
  "bin": {
7
7
  "shipthis": "./bin/run.js"