shipthis 0.0.2 → 0.0.4

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.
Files changed (50) hide show
  1. package/README.md +34 -67
  2. package/dist/{App-DFPMSEZF.js → App-CRcDsay7.js} +1 -1
  3. package/dist/{AppleBundleIdDetails-CuhAbVEp.js → AppleBundleIdDetails-UNAVT0U6.js} +3 -3
  4. package/dist/{UserCredentialsTable-DHeRI4h6.js → UserCredentialsTable-CPx_wwST.js} +2 -2
  5. package/dist/{baseAppleCommand-BXUu-026.js → baseAppleCommand-BUDjh10x.js} +1 -1
  6. package/dist/{baseGameCommand-xrD2WDDN.js → baseGameCommand-DvFilbRN.js} +37 -18
  7. package/dist/commands/apple/apiKey/create.js +4 -4
  8. package/dist/commands/apple/apiKey/export.js +3 -3
  9. package/dist/commands/apple/apiKey/import.js +3 -3
  10. package/dist/commands/apple/apiKey/status.js +4 -4
  11. package/dist/commands/apple/certificate/create.js +4 -4
  12. package/dist/commands/apple/certificate/export.js +3 -3
  13. package/dist/commands/apple/certificate/import.js +3 -3
  14. package/dist/commands/apple/certificate/status.js +4 -4
  15. package/dist/commands/apple/login.js +2 -6
  16. package/dist/commands/apple/status.js +3 -3
  17. package/dist/commands/dashboard.js +1 -1
  18. package/dist/commands/game/build/download.js +2 -2
  19. package/dist/commands/game/build/list.js +5 -5
  20. package/dist/commands/game/create.js +2 -2
  21. package/dist/commands/game/details.js +3 -3
  22. package/dist/commands/game/export.js +1 -1
  23. package/dist/commands/game/ios/app/addTester.js +4 -4
  24. package/dist/commands/game/ios/app/create.js +3 -3
  25. package/dist/commands/game/ios/app/status.js +5 -5
  26. package/dist/commands/game/ios/app/sync.js +3 -3
  27. package/dist/commands/game/ios/profile/create.js +4 -4
  28. package/dist/commands/game/ios/profile/export.js +3 -3
  29. package/dist/commands/game/ios/profile/import.js +3 -3
  30. package/dist/commands/game/ios/profile/status.js +3 -3
  31. package/dist/commands/game/ios/status.js +6 -6
  32. package/dist/commands/game/job/list.js +4 -4
  33. package/dist/commands/game/job/status.js +5 -5
  34. package/dist/commands/game/list.js +3 -3
  35. package/dist/commands/game/ship.js +2 -2
  36. package/dist/commands/game/status.js +3 -3
  37. package/dist/commands/game/wizard.js +1 -1
  38. package/dist/commands/login.js +12 -2
  39. package/dist/commands/status.js +6 -6
  40. package/dist/{export-CujqsTR_.js → export-DnCkwLrK.js} +1 -1
  41. package/dist/{import-Q-KO61ll.js → import-CMzGrYJE.js} +1 -1
  42. package/dist/{index-DKsVctbw.js → index-Bw_nDHi8.js} +1 -1
  43. package/dist/{upload-CUlWmNbS.js → upload-O-TtkVJK.js} +1 -1
  44. package/dist/{useAppleApp-BmwYu7qG.js → useAppleApp-aigGCahA.js} +1 -1
  45. package/dist/{useAppleBundleId-DCJnfNWr.js → useAppleBundleId-Csd5x81b.js} +1 -1
  46. package/dist/{useBuilds-Dh_PWwCf.js → useBuilds-v-UBnSnM.js} +3 -3
  47. package/dist/{useJob-CCkqCMvF.js → useJob-DJQrqUh2.js} +2 -2
  48. package/oclif.manifest.json +37 -37
  49. package/package.json +2 -3
  50. package/dist/run.js +0 -3
package/README.md CHANGED
@@ -1,37 +1,6 @@
1
1
  shipthis
2
2
  =================
3
3
 
4
- # Development Notes
5
-
6
- To build and run locally:
7
-
8
- ```
9
- npm run build
10
- npm link
11
- ```
12
-
13
- When you add or remove a command you will need to update the `"exports"` section in the `package.json` file using:
14
-
15
- ```
16
- find src/commands/ -type f | sed "s/src\([^\.]*\)\..*$/dist\1.js/g"
17
- ```
18
-
19
- # Zero to iOS shipping steps
20
-
21
- ```
22
- shipthis login
23
- shipthis game create
24
- shipthis apple login
25
- shipthis apple apiKey create
26
- shipthis apple certificate create
27
- shipthis game ios app create
28
- shipthis game ios app sync
29
- shipthis game ios profile create
30
- shipthis game ship
31
- ```
32
-
33
-
34
-
35
4
  # Introduction
36
5
 
37
6
  Mobile Game Shipping Tool
@@ -41,8 +10,6 @@ Mobile Game Shipping Tool
41
10
 
42
11
 
43
12
  <!-- toc -->
44
- * [Development Notes](#development-notes)
45
- * [Zero to iOS shipping steps](#zero-to-ios-shipping-steps)
46
13
  * [Introduction](#introduction)
47
14
  * [Usage](#usage)
48
15
  * [Commands](#commands)
@@ -54,7 +21,7 @@ $ npm install -g shipthis
54
21
  $ shipthis COMMAND
55
22
  running command...
56
23
  $ shipthis (--version)
57
- shipthis/0.0.2 linux-x64 node-v20.17.0
24
+ shipthis/0.0.4 linux-x64 node-v20.17.0
58
25
  $ shipthis --help [COMMAND]
59
26
  USAGE
60
27
  $ shipthis COMMAND
@@ -120,7 +87,7 @@ EXAMPLES
120
87
  $ shipthis apple apiKey create --force
121
88
  ```
122
89
 
123
- _See code: [src/commands/apple/apiKey/create.ts](https://github.com/oclif-cli/shipthis/blob/v0.0.2/src/commands/apple/apiKey/create.ts)_
90
+ _See code: [src/commands/apple/apiKey/create.ts](https://gitlab.com/shipthis.cc/shipthis-cli/blob/v0.0.4/src/commands/apple/apiKey/create.ts)_
124
91
 
125
92
  ## `shipthis apple apiKey export FILE`
126
93
 
@@ -143,7 +110,7 @@ EXAMPLES
143
110
  $ shipthis apple apiKey export userApiKey.zip
144
111
  ```
145
112
 
146
- _See code: [src/commands/apple/apiKey/export.ts](https://github.com/oclif-cli/shipthis/blob/v0.0.2/src/commands/apple/apiKey/export.ts)_
113
+ _See code: [src/commands/apple/apiKey/export.ts](https://gitlab.com/shipthis.cc/shipthis-cli/blob/v0.0.4/src/commands/apple/apiKey/export.ts)_
147
114
 
148
115
  ## `shipthis apple apiKey import FILE`
149
116
 
@@ -166,7 +133,7 @@ EXAMPLES
166
133
  $ shipthis apple apiKey import userApiKey.zip
167
134
  ```
168
135
 
169
- _See code: [src/commands/apple/apiKey/import.ts](https://github.com/oclif-cli/shipthis/blob/v0.0.2/src/commands/apple/apiKey/import.ts)_
136
+ _See code: [src/commands/apple/apiKey/import.ts](https://gitlab.com/shipthis.cc/shipthis-cli/blob/v0.0.4/src/commands/apple/apiKey/import.ts)_
170
137
 
171
138
  ## `shipthis apple apiKey status`
172
139
 
@@ -189,7 +156,7 @@ EXAMPLES
189
156
  $ shipthis apple apiKey status --noAppleAuth
190
157
  ```
191
158
 
192
- _See code: [src/commands/apple/apiKey/status.ts](https://github.com/oclif-cli/shipthis/blob/v0.0.2/src/commands/apple/apiKey/status.ts)_
159
+ _See code: [src/commands/apple/apiKey/status.ts](https://gitlab.com/shipthis.cc/shipthis-cli/blob/v0.0.4/src/commands/apple/apiKey/status.ts)_
193
160
 
194
161
  ## `shipthis apple certificate create`
195
162
 
@@ -213,7 +180,7 @@ EXAMPLES
213
180
  $ shipthis apple certificate create --force
214
181
  ```
215
182
 
216
- _See code: [src/commands/apple/certificate/create.ts](https://github.com/oclif-cli/shipthis/blob/v0.0.2/src/commands/apple/certificate/create.ts)_
183
+ _See code: [src/commands/apple/certificate/create.ts](https://gitlab.com/shipthis.cc/shipthis-cli/blob/v0.0.4/src/commands/apple/certificate/create.ts)_
217
184
 
218
185
  ## `shipthis apple certificate export FILE`
219
186
 
@@ -236,7 +203,7 @@ EXAMPLES
236
203
  $ shipthis apple certificate export userCert.zip
237
204
  ```
238
205
 
239
- _See code: [src/commands/apple/certificate/export.ts](https://github.com/oclif-cli/shipthis/blob/v0.0.2/src/commands/apple/certificate/export.ts)_
206
+ _See code: [src/commands/apple/certificate/export.ts](https://gitlab.com/shipthis.cc/shipthis-cli/blob/v0.0.4/src/commands/apple/certificate/export.ts)_
240
207
 
241
208
  ## `shipthis apple certificate import FILE`
242
209
 
@@ -259,7 +226,7 @@ EXAMPLES
259
226
  $ shipthis apple certificate import userCert.zip
260
227
  ```
261
228
 
262
- _See code: [src/commands/apple/certificate/import.ts](https://github.com/oclif-cli/shipthis/blob/v0.0.2/src/commands/apple/certificate/import.ts)_
229
+ _See code: [src/commands/apple/certificate/import.ts](https://gitlab.com/shipthis.cc/shipthis-cli/blob/v0.0.4/src/commands/apple/certificate/import.ts)_
263
230
 
264
231
  ## `shipthis apple certificate status`
265
232
 
@@ -282,7 +249,7 @@ EXAMPLES
282
249
  $ shipthis apple certificate status --noAppleAuth
283
250
  ```
284
251
 
285
- _See code: [src/commands/apple/certificate/status.ts](https://github.com/oclif-cli/shipthis/blob/v0.0.2/src/commands/apple/certificate/status.ts)_
252
+ _See code: [src/commands/apple/certificate/status.ts](https://gitlab.com/shipthis.cc/shipthis-cli/blob/v0.0.4/src/commands/apple/certificate/status.ts)_
286
253
 
287
254
  ## `shipthis apple login`
288
255
 
@@ -306,7 +273,7 @@ EXAMPLES
306
273
  $ shipthis apple login --force --appleEmail me@email.nowhere
307
274
  ```
308
275
 
309
- _See code: [src/commands/apple/login.ts](https://github.com/oclif-cli/shipthis/blob/v0.0.2/src/commands/apple/login.ts)_
276
+ _See code: [src/commands/apple/login.ts](https://gitlab.com/shipthis.cc/shipthis-cli/blob/v0.0.4/src/commands/apple/login.ts)_
310
277
 
311
278
  ## `shipthis apple status`
312
279
 
@@ -323,7 +290,7 @@ EXAMPLES
323
290
  $ shipthis apple status
324
291
  ```
325
292
 
326
- _See code: [src/commands/apple/status.ts](https://github.com/oclif-cli/shipthis/blob/v0.0.2/src/commands/apple/status.ts)_
293
+ _See code: [src/commands/apple/status.ts](https://gitlab.com/shipthis.cc/shipthis-cli/blob/v0.0.4/src/commands/apple/status.ts)_
327
294
 
328
295
  ## `shipthis dashboard`
329
296
 
@@ -340,7 +307,7 @@ EXAMPLES
340
307
  $ shipthis dashboard
341
308
  ```
342
309
 
343
- _See code: [src/commands/dashboard.ts](https://github.com/oclif-cli/shipthis/blob/v0.0.2/src/commands/dashboard.ts)_
310
+ _See code: [src/commands/dashboard.ts](https://gitlab.com/shipthis.cc/shipthis-cli/blob/v0.0.4/src/commands/dashboard.ts)_
344
311
 
345
312
  ## `shipthis game build download BUILD_ID FILE`
346
313
 
@@ -367,7 +334,7 @@ EXAMPLES
367
334
  $ shipthis game build download --gameId 0c179fc4 e4b9a3d7 output.apk
368
335
  ```
369
336
 
370
- _See code: [src/commands/game/build/download.ts](https://github.com/oclif-cli/shipthis/blob/v0.0.2/src/commands/game/build/download.ts)_
337
+ _See code: [src/commands/game/build/download.ts](https://gitlab.com/shipthis.cc/shipthis-cli/blob/v0.0.4/src/commands/game/build/download.ts)_
371
338
 
372
339
  ## `shipthis game build list`
373
340
 
@@ -397,7 +364,7 @@ EXAMPLES
397
364
  $ shipthis game build list --gameId 0c179fc4 --pageSize 20 --pageNumber 1
398
365
  ```
399
366
 
400
- _See code: [src/commands/game/build/list.ts](https://github.com/oclif-cli/shipthis/blob/v0.0.2/src/commands/game/build/list.ts)_
367
+ _See code: [src/commands/game/build/list.ts](https://gitlab.com/shipthis.cc/shipthis-cli/blob/v0.0.4/src/commands/game/build/list.ts)_
401
368
 
402
369
  ## `shipthis game create`
403
370
 
@@ -419,7 +386,7 @@ EXAMPLES
419
386
  $ shipthis game create
420
387
  ```
421
388
 
422
- _See code: [src/commands/game/create.ts](https://github.com/oclif-cli/shipthis/blob/v0.0.2/src/commands/game/create.ts)_
389
+ _See code: [src/commands/game/create.ts](https://gitlab.com/shipthis.cc/shipthis-cli/blob/v0.0.4/src/commands/game/create.ts)_
423
390
 
424
391
  ## `shipthis game details`
425
392
 
@@ -453,7 +420,7 @@ EXAMPLES
453
420
  $ shipthis game details --gameEngine godot --gameEngineVersion 4.2 --force
454
421
  ```
455
422
 
456
- _See code: [src/commands/game/details.ts](https://github.com/oclif-cli/shipthis/blob/v0.0.2/src/commands/game/details.ts)_
423
+ _See code: [src/commands/game/details.ts](https://gitlab.com/shipthis.cc/shipthis-cli/blob/v0.0.4/src/commands/game/details.ts)_
457
424
 
458
425
  ## `shipthis game export GAME_ID`
459
426
 
@@ -478,7 +445,7 @@ EXAMPLES
478
445
  $ shipthis game export abcd1234 --force
479
446
  ```
480
447
 
481
- _See code: [src/commands/game/export.ts](https://github.com/oclif-cli/shipthis/blob/v0.0.2/src/commands/game/export.ts)_
448
+ _See code: [src/commands/game/export.ts](https://gitlab.com/shipthis.cc/shipthis-cli/blob/v0.0.4/src/commands/game/export.ts)_
482
449
 
483
450
  ## `shipthis game ios app addTester`
484
451
 
@@ -501,7 +468,7 @@ EXAMPLES
501
468
  $ shipthis game ios app addTester
502
469
  ```
503
470
 
504
- _See code: [src/commands/game/ios/app/addTester.ts](https://github.com/oclif-cli/shipthis/blob/v0.0.2/src/commands/game/ios/app/addTester.ts)_
471
+ _See code: [src/commands/game/ios/app/addTester.ts](https://gitlab.com/shipthis.cc/shipthis-cli/blob/v0.0.4/src/commands/game/ios/app/addTester.ts)_
505
472
 
506
473
  ## `shipthis game ios app create`
507
474
 
@@ -526,7 +493,7 @@ EXAMPLES
526
493
  $ shipthis game ios app create
527
494
  ```
528
495
 
529
- _See code: [src/commands/game/ios/app/create.ts](https://github.com/oclif-cli/shipthis/blob/v0.0.2/src/commands/game/ios/app/create.ts)_
496
+ _See code: [src/commands/game/ios/app/create.ts](https://gitlab.com/shipthis.cc/shipthis-cli/blob/v0.0.4/src/commands/game/ios/app/create.ts)_
530
497
 
531
498
  ## `shipthis game ios app status`
532
499
 
@@ -546,7 +513,7 @@ EXAMPLES
546
513
  $ shipthis game ios app status
547
514
  ```
548
515
 
549
- _See code: [src/commands/game/ios/app/status.ts](https://github.com/oclif-cli/shipthis/blob/v0.0.2/src/commands/game/ios/app/status.ts)_
516
+ _See code: [src/commands/game/ios/app/status.ts](https://gitlab.com/shipthis.cc/shipthis-cli/blob/v0.0.4/src/commands/game/ios/app/status.ts)_
550
517
 
551
518
  ## `shipthis game ios app sync`
552
519
 
@@ -569,7 +536,7 @@ EXAMPLES
569
536
  $ shipthis game ios app sync
570
537
  ```
571
538
 
572
- _See code: [src/commands/game/ios/app/sync.ts](https://github.com/oclif-cli/shipthis/blob/v0.0.2/src/commands/game/ios/app/sync.ts)_
539
+ _See code: [src/commands/game/ios/app/sync.ts](https://gitlab.com/shipthis.cc/shipthis-cli/blob/v0.0.4/src/commands/game/ios/app/sync.ts)_
573
540
 
574
541
  ## `shipthis game ios profile create`
575
542
 
@@ -592,7 +559,7 @@ EXAMPLES
592
559
  $ shipthis game ios profile create
593
560
  ```
594
561
 
595
- _See code: [src/commands/game/ios/profile/create.ts](https://github.com/oclif-cli/shipthis/blob/v0.0.2/src/commands/game/ios/profile/create.ts)_
562
+ _See code: [src/commands/game/ios/profile/create.ts](https://gitlab.com/shipthis.cc/shipthis-cli/blob/v0.0.4/src/commands/game/ios/profile/create.ts)_
596
563
 
597
564
  ## `shipthis game ios profile export FILE`
598
565
 
@@ -616,7 +583,7 @@ EXAMPLES
616
583
  $ shipthis game ios profile export userProfile.zip
617
584
  ```
618
585
 
619
- _See code: [src/commands/game/ios/profile/export.ts](https://github.com/oclif-cli/shipthis/blob/v0.0.2/src/commands/game/ios/profile/export.ts)_
586
+ _See code: [src/commands/game/ios/profile/export.ts](https://gitlab.com/shipthis.cc/shipthis-cli/blob/v0.0.4/src/commands/game/ios/profile/export.ts)_
620
587
 
621
588
  ## `shipthis game ios profile import FILE`
622
589
 
@@ -640,7 +607,7 @@ EXAMPLES
640
607
  $ shipthis game ios profile import profile.zip
641
608
  ```
642
609
 
643
- _See code: [src/commands/game/ios/profile/import.ts](https://github.com/oclif-cli/shipthis/blob/v0.0.2/src/commands/game/ios/profile/import.ts)_
610
+ _See code: [src/commands/game/ios/profile/import.ts](https://gitlab.com/shipthis.cc/shipthis-cli/blob/v0.0.4/src/commands/game/ios/profile/import.ts)_
644
611
 
645
612
  ## `shipthis game ios profile status`
646
613
 
@@ -662,7 +629,7 @@ EXAMPLES
662
629
  $ shipthis game ios profile status
663
630
  ```
664
631
 
665
- _See code: [src/commands/game/ios/profile/status.ts](https://github.com/oclif-cli/shipthis/blob/v0.0.2/src/commands/game/ios/profile/status.ts)_
632
+ _See code: [src/commands/game/ios/profile/status.ts](https://gitlab.com/shipthis.cc/shipthis-cli/blob/v0.0.4/src/commands/game/ios/profile/status.ts)_
666
633
 
667
634
  ## `shipthis game ios status`
668
635
 
@@ -684,7 +651,7 @@ EXAMPLES
684
651
  $ shipthis game ios status --gameId 0c179fc4
685
652
  ```
686
653
 
687
- _See code: [src/commands/game/ios/status.ts](https://github.com/oclif-cli/shipthis/blob/v0.0.2/src/commands/game/ios/status.ts)_
654
+ _See code: [src/commands/game/ios/status.ts](https://gitlab.com/shipthis.cc/shipthis-cli/blob/v0.0.4/src/commands/game/ios/status.ts)_
688
655
 
689
656
  ## `shipthis game job list`
690
657
 
@@ -712,7 +679,7 @@ EXAMPLES
712
679
  $ shipthis game job list --gameId 0c179fc4
713
680
  ```
714
681
 
715
- _See code: [src/commands/game/job/list.ts](https://github.com/oclif-cli/shipthis/blob/v0.0.2/src/commands/game/job/list.ts)_
682
+ _See code: [src/commands/game/job/list.ts](https://gitlab.com/shipthis.cc/shipthis-cli/blob/v0.0.4/src/commands/game/job/list.ts)_
716
683
 
717
684
  ## `shipthis game job status JOB_ID`
718
685
 
@@ -741,7 +708,7 @@ EXAMPLES
741
708
  $ shipthis game job status --gameId 0c179fc4 --lines 20 --follow 4d32239e
742
709
  ```
743
710
 
744
- _See code: [src/commands/game/job/status.ts](https://github.com/oclif-cli/shipthis/blob/v0.0.2/src/commands/game/job/status.ts)_
711
+ _See code: [src/commands/game/job/status.ts](https://gitlab.com/shipthis.cc/shipthis-cli/blob/v0.0.4/src/commands/game/job/status.ts)_
745
712
 
746
713
  ## `shipthis game list`
747
714
 
@@ -766,7 +733,7 @@ EXAMPLES
766
733
  $ shipthis game list
767
734
  ```
768
735
 
769
- _See code: [src/commands/game/list.ts](https://github.com/oclif-cli/shipthis/blob/v0.0.2/src/commands/game/list.ts)_
736
+ _See code: [src/commands/game/list.ts](https://gitlab.com/shipthis.cc/shipthis-cli/blob/v0.0.4/src/commands/game/list.ts)_
770
737
 
771
738
  ## `shipthis game ship`
772
739
 
@@ -786,7 +753,7 @@ EXAMPLES
786
753
  $ shipthis game ship
787
754
  ```
788
755
 
789
- _See code: [src/commands/game/ship.ts](https://github.com/oclif-cli/shipthis/blob/v0.0.2/src/commands/game/ship.ts)_
756
+ _See code: [src/commands/game/ship.ts](https://gitlab.com/shipthis.cc/shipthis-cli/blob/v0.0.4/src/commands/game/ship.ts)_
790
757
 
791
758
  ## `shipthis game status`
792
759
 
@@ -808,7 +775,7 @@ EXAMPLES
808
775
  $ shipthis game status --gameId 0c179fc4
809
776
  ```
810
777
 
811
- _See code: [src/commands/game/status.ts](https://github.com/oclif-cli/shipthis/blob/v0.0.2/src/commands/game/status.ts)_
778
+ _See code: [src/commands/game/status.ts](https://gitlab.com/shipthis.cc/shipthis-cli/blob/v0.0.4/src/commands/game/status.ts)_
812
779
 
813
780
  ## `shipthis game wizard`
814
781
 
@@ -830,7 +797,7 @@ EXAMPLES
830
797
  $ shipthis game wizard
831
798
  ```
832
799
 
833
- _See code: [src/commands/game/wizard.ts](https://github.com/oclif-cli/shipthis/blob/v0.0.2/src/commands/game/wizard.ts)_
800
+ _See code: [src/commands/game/wizard.ts](https://gitlab.com/shipthis.cc/shipthis-cli/blob/v0.0.4/src/commands/game/wizard.ts)_
834
801
 
835
802
  ## `shipthis help [COMMAND]`
836
803
 
@@ -873,7 +840,7 @@ EXAMPLES
873
840
  $ shipthis login --force --email me@email.nowhere
874
841
  ```
875
842
 
876
- _See code: [src/commands/login.ts](https://github.com/oclif-cli/shipthis/blob/v0.0.2/src/commands/login.ts)_
843
+ _See code: [src/commands/login.ts](https://gitlab.com/shipthis.cc/shipthis-cli/blob/v0.0.4/src/commands/login.ts)_
877
844
 
878
845
  ## `shipthis status`
879
846
 
@@ -890,5 +857,5 @@ EXAMPLES
890
857
  $ shipthis status
891
858
  ```
892
859
 
893
- _See code: [src/commands/status.ts](https://github.com/oclif-cli/shipthis/blob/v0.0.2/src/commands/status.ts)_
860
+ _See code: [src/commands/status.ts](https://gitlab.com/shipthis.cc/shipthis-cli/blob/v0.0.4/src/commands/status.ts)_
894
861
  <!-- commandsstop -->
@@ -1,7 +1,7 @@
1
1
  import { jsx } from 'react/jsx-runtime';
2
2
  import { Box } from 'ink';
3
3
  import { QueryClientProvider } from '@tanstack/react-query';
4
- import { Q as queryClient } from './baseGameCommand-xrD2WDDN.js';
4
+ import { Q as queryClient } from './baseGameCommand-DvFilbRN.js';
5
5
  import 'luxon';
6
6
  import '@expo/apple-utils/build/index.js';
7
7
  import 'crypto';
@@ -1,11 +1,11 @@
1
1
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
2
2
  import { Box, Text } from 'ink';
3
3
  import Spinner from 'ink-spinner';
4
- import './baseGameCommand-xrD2WDDN.js';
4
+ import './baseGameCommand-DvFilbRN.js';
5
5
  import 'luxon';
6
6
  import '@tanstack/react-query';
7
7
  import '@expo/apple-utils/build/index.js';
8
- import { u as useAppleApp } from './useAppleApp-BmwYu7qG.js';
8
+ import { u as useAppleApp } from './useAppleApp-aigGCahA.js';
9
9
  import 'crypto';
10
10
  import 'fs';
11
11
  import 'readline-sync';
@@ -16,7 +16,7 @@ import 'socket.io-client';
16
16
  import 'isomorphic-git';
17
17
  import { T as Title } from './Title-BCQtayg6.js';
18
18
  import { T as Table } from './Table-CvM6pccN.js';
19
- import { u as useAppleBundleId } from './useAppleBundleId-DCJnfNWr.js';
19
+ import { u as useAppleBundleId } from './useAppleBundleId-Csd5x81b.js';
20
20
 
21
21
  const AppleAppDetails = (props) => {
22
22
  const { data, isLoading } = useAppleApp(props);
@@ -8,12 +8,12 @@ import 'node:readline';
8
8
  import 'react';
9
9
  import axios from 'axios';
10
10
  import { useQuery } from '@tanstack/react-query';
11
- import { f as getShortDate, o as getAuthedHeaders, p as API_URL, I as castArrayObjectDates } from './baseGameCommand-xrD2WDDN.js';
11
+ import { f as getShortDate, o as getAuthedHeaders, p as API_URL, I as castArrayObjectDates } from './baseGameCommand-DvFilbRN.js';
12
12
  import 'luxon';
13
13
  import 'socket.io-client';
14
14
  import '@expo/apple-utils/build/index.js';
15
15
  import { c as cacheKeys } from './cacheKeys-CShA-ZjE.js';
16
- import { g as getShortUUID } from './index-DKsVctbw.js';
16
+ import { g as getShortUUID } from './index-Bw_nDHi8.js';
17
17
  import 'isomorphic-git';
18
18
  import { T as Table } from './Table-CvM6pccN.js';
19
19
  import { T as Title } from './Title-BCQtayg6.js';
@@ -1,4 +1,4 @@
1
- import { B as BaseAuthenticatedCommand } from './baseGameCommand-xrD2WDDN.js';
1
+ import { B as BaseAuthenticatedCommand } from './baseGameCommand-DvFilbRN.js';
2
2
 
3
3
  class BaseAppleCommand extends BaseAuthenticatedCommand {
4
4
  async init() {
@@ -34,23 +34,23 @@ const {
34
34
 
35
35
  const DEFAULT_SHIPPED_FILES_GLOBS = ["**/*"];
36
36
  const DEFAULT_IGNORED_FILES_GLOBS = [".git", ".gitignore", "shipthis.json", "shipthis-*.zip"];
37
- const BACKENDS = {
38
- dev: {
39
- apiUrl: "https://api.develop.shipthis.cc/api/1.0.0",
40
- wsUrl: "wss://ws.develop.shipthis.cc",
41
- webUrl: "https://develop.shipthis.cc/"
42
- },
43
- local: {
44
- apiUrl: "https://easy-reliably-gull.ngrok-free.app/api/1.0.0",
45
- wsUrl: "wss://easy-reliably-gull.ngrok-free.app",
46
- webUrl: "https://easy-reliably-gull.ngrok-free.app/"
47
- }
48
- };
49
- const BACKEND_ENV_VAR_NAME = "SHIPTHIS_BACKEND";
50
- const BACKEND_NAME = process.env[BACKEND_ENV_VAR_NAME] || "dev";
51
- const API_URL = BACKENDS[BACKEND_NAME].apiUrl;
52
- const WS_URL = BACKENDS[BACKEND_NAME].wsUrl;
53
- const WEB_URL = BACKENDS[BACKEND_NAME].webUrl;
37
+ const PRIMARY_DOMAIN = "shipthis.cc";
38
+ function getUrlsForDomain(domain) {
39
+ const isPublic = domain.includes(PRIMARY_DOMAIN);
40
+ const apiDomain = (isPublic ? `api.` : "") + domain;
41
+ const wsDomain = (isPublic ? `ws.` : "") + domain;
42
+ return {
43
+ api: `https://${apiDomain}/api/1.0.0`,
44
+ ws: `wss://${wsDomain}`,
45
+ web: `https://${domain}/`
46
+ };
47
+ }
48
+ const DOMAIN_ENV_VAR_NAME = "SHIPTHIS_DOMAIN";
49
+ const DOMAIN = process.env[DOMAIN_ENV_VAR_NAME] || PRIMARY_DOMAIN;
50
+ const BACKEND_URLS = getUrlsForDomain(DOMAIN);
51
+ const API_URL = BACKEND_URLS.api;
52
+ const WS_URL = BACKEND_URLS.ws;
53
+ const WEB_URL = BACKEND_URLS.web;
54
54
 
55
55
  const DEFAULT_LOCALE = "en-US";
56
56
  function castObjectDates(apiObject, keys = ["createdAt", "updatedAt"]) {
@@ -211,6 +211,18 @@ async function getBuild(projectId, buildId) {
211
211
  const { data } = await axios.get(`${API_URL}/projects/${projectId}/builds/${buildId}`, opt);
212
212
  return castObjectDates(data);
213
213
  }
214
+ async function getSelf() {
215
+ const headers = getAuthedHeaders();
216
+ const opt = { headers };
217
+ const { data } = await axios.get(`${API_URL}/me`, opt);
218
+ return castObjectDates(data);
219
+ }
220
+ async function acceptTerms() {
221
+ const headers = getAuthedHeaders();
222
+ const opt = { headers };
223
+ const { data } = await axios.post(`${API_URL}/me/acceptTerms`, {}, opt);
224
+ return castObjectDates(data);
225
+ }
214
226
 
215
227
  var Platform = /* @__PURE__ */ ((Platform2) => {
216
228
  Platform2["IOS"] = "IOS";
@@ -554,6 +566,13 @@ class BaseAuthenticatedCommand extends BaseCommand {
554
566
  if (!this.hasAuthConfig()) {
555
567
  this.error("No auth config found. Please run `shipthis login` to authenticate.", { exit: 1 });
556
568
  }
569
+ const self = await getSelf();
570
+ const accepted = !!self.details?.hasAcceptedTerms;
571
+ if (!accepted) {
572
+ this.error("You must accept the terms and conditions. Please run `shipthis login --force` to re-authenticate", {
573
+ exit: 1
574
+ });
575
+ }
557
576
  }
558
577
  }
559
578
 
@@ -596,4 +615,4 @@ class BaseGameCommand extends BaseAuthenticatedCommand {
596
615
  }
597
616
  }
598
617
 
599
- export { castObjectDates as $, ApiKey as A, BaseAuthenticatedCommand as B, CredentialsType as C, DEFAULT_SHIPPED_FILES_GLOBS as D, getGodotProjectName as E, getBuild as F, GODOT_CAPABILITIES as G, getShortDateTime as H, castArrayObjectDates as I, getProjectJobs as J, JobStatus as K, getShortTimeDelta as L, getJob as M, getNewUploadTicket as N, startJobsFromUpload as O, Platform as P, queryClient as Q, JobStage as R, LogLevel as S, getSingleUseUrl as T, UserRole as U, BaseCommand as V, Auth as W, BACKEND_NAME as X, WS_URL as Y, WEB_URL as Z, getAuthToken as _, ApiKeyType as a, castJobDates as a0, getShortTime as a1, getProject as b, DEFAULT_IGNORED_FILES_GLOBS as c, BaseGameCommand as d, getProjectPlatformProgress as e, getShortDate as f, getUserCredentials as g, CapabilityTypeOption as h, isCWDGodotGame as i, BetaGroup as j, App as k, getGodotAppleBundleIdentifier as l, BundleId as m, getProjectCredentials as n, getAuthedHeaders as o, API_URL as p, Certificate as q, CertificateType as r, Profile as s, ProfileType as t, getGodotProjectCapabilities as u, CapabilityType as v, getProjects as w, GameEngine as x, getGodotVersion as y, createProject as z };
618
+ export { getAuthToken as $, ApiKey as A, BaseAuthenticatedCommand as B, CredentialsType as C, DEFAULT_SHIPPED_FILES_GLOBS as D, getGodotProjectName as E, getBuild as F, GODOT_CAPABILITIES as G, getShortDateTime as H, castArrayObjectDates as I, getProjectJobs as J, JobStatus as K, getShortTimeDelta as L, getJob as M, getNewUploadTicket as N, startJobsFromUpload as O, Platform as P, queryClient as Q, JobStage as R, LogLevel as S, getSingleUseUrl as T, UserRole as U, BaseCommand as V, acceptTerms as W, Auth as X, DOMAIN as Y, WS_URL as Z, WEB_URL as _, ApiKeyType as a, castObjectDates as a0, castJobDates as a1, getShortTime as a2, getProject as b, DEFAULT_IGNORED_FILES_GLOBS as c, BaseGameCommand as d, getProjectPlatformProgress as e, getShortDate as f, getUserCredentials as g, CapabilityTypeOption as h, isCWDGodotGame as i, BetaGroup as j, App as k, getGodotAppleBundleIdentifier as l, BundleId as m, getProjectCredentials as n, getAuthedHeaders as o, API_URL as p, Certificate as q, CertificateType as r, Profile as s, ProfileType as t, getGodotProjectCapabilities as u, CapabilityType as v, getProjects as w, GameEngine as x, getGodotVersion as y, createProject as z };
@@ -3,7 +3,7 @@ import { Flags } from '@oclif/core';
3
3
  import { render } from 'ink';
4
4
  import 'path';
5
5
  import 'fs';
6
- import { g as getUserCredentials, P as Platform, C as CredentialsType, A as ApiKey, U as UserRole, a as ApiKeyType } from '../../../baseGameCommand-xrD2WDDN.js';
6
+ import { g as getUserCredentials, P as Platform, C as CredentialsType, A as ApiKey, U as UserRole, a as ApiKeyType } from '../../../baseGameCommand-DvFilbRN.js';
7
7
  import 'axios';
8
8
  import 'luxon';
9
9
  import 'crypto';
@@ -13,13 +13,13 @@ import 'react';
13
13
  import '@tanstack/react-query';
14
14
  import 'socket.io-client';
15
15
  import 'isomorphic-git';
16
- import { B as BaseAppleCommand } from '../../../baseAppleCommand-BXUu-026.js';
17
- import { A as App } from '../../../App-DFPMSEZF.js';
16
+ import { B as BaseAppleCommand } from '../../../baseAppleCommand-BUDjh10x.js';
17
+ import { A as App } from '../../../App-CRcDsay7.js';
18
18
  import 'ink-spinner';
19
19
  import 'string-length';
20
20
  import 'strip-ansi';
21
21
  import { R as RunWithSpinner } from '../../../RunWithSpinner-BVXNWGD3.js';
22
- import { u as uploadUserCredentials } from '../../../upload-CUlWmNbS.js';
22
+ import { u as uploadUserCredentials } from '../../../upload-O-TtkVJK.js';
23
23
  import '@expo/apple-utils/build/index.js';
24
24
  import 'ini';
25
25
  import 'deepmerge';
@@ -2,7 +2,7 @@ import { jsx } from 'react/jsx-runtime';
2
2
  import { Args, Flags } from '@oclif/core';
3
3
  import { render } from 'ink';
4
4
  import * as fs from 'fs';
5
- import { B as BaseAuthenticatedCommand, g as getUserCredentials, P as Platform, C as CredentialsType } from '../../../baseGameCommand-xrD2WDDN.js';
5
+ import { B as BaseAuthenticatedCommand, g as getUserCredentials, P as Platform, C as CredentialsType } from '../../../baseGameCommand-DvFilbRN.js';
6
6
  import 'path';
7
7
  import '@expo/apple-utils/build/index.js';
8
8
  import 'axios';
@@ -14,12 +14,12 @@ import 'react';
14
14
  import '@tanstack/react-query';
15
15
  import 'socket.io-client';
16
16
  import 'isomorphic-git';
17
- import { A as App } from '../../../App-DFPMSEZF.js';
17
+ import { A as App } from '../../../App-CRcDsay7.js';
18
18
  import 'ink-spinner';
19
19
  import 'string-length';
20
20
  import 'strip-ansi';
21
21
  import { R as RunWithSpinner } from '../../../RunWithSpinner-BVXNWGD3.js';
22
- import { e as exportCredential } from '../../../export-CujqsTR_.js';
22
+ import { e as exportCredential } from '../../../export-DnCkwLrK.js';
23
23
  import 'ini';
24
24
  import 'deepmerge';
25
25
 
@@ -2,7 +2,7 @@ import { jsx } from 'react/jsx-runtime';
2
2
  import { Args, Flags } from '@oclif/core';
3
3
  import { render } from 'ink';
4
4
  import * as fs from 'fs';
5
- import { B as BaseAuthenticatedCommand, g as getUserCredentials, P as Platform, C as CredentialsType } from '../../../baseGameCommand-xrD2WDDN.js';
5
+ import { B as BaseAuthenticatedCommand, g as getUserCredentials, P as Platform, C as CredentialsType } from '../../../baseGameCommand-DvFilbRN.js';
6
6
  import 'path';
7
7
  import '@expo/apple-utils/build/index.js';
8
8
  import 'axios';
@@ -14,12 +14,12 @@ import 'react';
14
14
  import '@tanstack/react-query';
15
15
  import 'socket.io-client';
16
16
  import 'isomorphic-git';
17
- import { A as App } from '../../../App-DFPMSEZF.js';
17
+ import { A as App } from '../../../App-CRcDsay7.js';
18
18
  import 'ink-spinner';
19
19
  import 'string-length';
20
20
  import 'strip-ansi';
21
21
  import { R as RunWithSpinner } from '../../../RunWithSpinner-BVXNWGD3.js';
22
- import { i as importCredential } from '../../../import-Q-KO61ll.js';
22
+ import { i as importCredential } from '../../../import-CMzGrYJE.js';
23
23
  import 'ini';
24
24
  import 'deepmerge';
25
25
 
@@ -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 { f as getShortDate, A as ApiKey, P as Platform, C as CredentialsType, B as BaseAuthenticatedCommand } from '../../../baseGameCommand-xrD2WDDN.js';
4
+ import { f as getShortDate, A as ApiKey, P as Platform, C as CredentialsType, B as BaseAuthenticatedCommand } from '../../../baseGameCommand-DvFilbRN.js';
5
5
  import 'path';
6
6
  import 'fs';
7
7
  import '@expo/apple-utils/build/index.js';
@@ -14,9 +14,9 @@ import 'react';
14
14
  import { useQuery } from '@tanstack/react-query';
15
15
  import 'socket.io-client';
16
16
  import 'isomorphic-git';
17
- import { A as App } from '../../../App-DFPMSEZF.js';
17
+ import { A as App } from '../../../App-CRcDsay7.js';
18
18
  import Spinner from 'ink-spinner';
19
- import { u as useUserCredentials, U as UserCredentialsTable } from '../../../UserCredentialsTable-DHeRI4h6.js';
19
+ import { u as useUserCredentials, U as UserCredentialsTable } from '../../../UserCredentialsTable-CPx_wwST.js';
20
20
  import { T as Title } from '../../../Title-BCQtayg6.js';
21
21
  import { T as Table } from '../../../Table-CvM6pccN.js';
22
22
  import 'string-length';
@@ -25,7 +25,7 @@ import { N as NextSteps } from '../../../NextSteps-CK9zHOCt.js';
25
25
  import 'ini';
26
26
  import 'deepmerge';
27
27
  import '../../../cacheKeys-CShA-ZjE.js';
28
- import '../../../index-DKsVctbw.js';
28
+ import '../../../index-Bw_nDHi8.js';
29
29
 
30
30
  async function queryAppleApiKeys({ ctx }) {
31
31
  const keys = await ApiKey.getAsync(ctx);
@@ -5,7 +5,7 @@ import 'path';
5
5
  import 'fs';
6
6
  import '@expo/apple-utils/build/index.js';
7
7
  import 'axios';
8
- import { q as Certificate, r as CertificateType, g as getUserCredentials, P as Platform, C as CredentialsType } from '../../../baseGameCommand-xrD2WDDN.js';
8
+ import { q as Certificate, r as CertificateType, g as getUserCredentials, P as Platform, C as CredentialsType } from '../../../baseGameCommand-DvFilbRN.js';
9
9
  import 'luxon';
10
10
  import 'crypto';
11
11
  import 'readline-sync';
@@ -14,14 +14,14 @@ import 'react';
14
14
  import '@tanstack/react-query';
15
15
  import 'socket.io-client';
16
16
  import 'isomorphic-git';
17
- import { B as BaseAppleCommand } from '../../../baseAppleCommand-BXUu-026.js';
18
- import { A as App } from '../../../App-DFPMSEZF.js';
17
+ import { B as BaseAppleCommand } from '../../../baseAppleCommand-BUDjh10x.js';
18
+ import { A as App } from '../../../App-CRcDsay7.js';
19
19
  import 'ink-spinner';
20
20
  import 'string-length';
21
21
  import 'strip-ansi';
22
22
  import { R as RunWithSpinner } from '../../../RunWithSpinner-BVXNWGD3.js';
23
23
  import forge from 'node-forge';
24
- import { u as uploadUserCredentials } from '../../../upload-CUlWmNbS.js';
24
+ import { u as uploadUserCredentials } from '../../../upload-O-TtkVJK.js';
25
25
  import 'ini';
26
26
  import 'deepmerge';
27
27
 
@@ -2,7 +2,7 @@ import { jsx } from 'react/jsx-runtime';
2
2
  import { Args, Flags } from '@oclif/core';
3
3
  import { render } from 'ink';
4
4
  import * as fs from 'fs';
5
- import { B as BaseAuthenticatedCommand, g as getUserCredentials, P as Platform, C as CredentialsType } from '../../../baseGameCommand-xrD2WDDN.js';
5
+ import { B as BaseAuthenticatedCommand, g as getUserCredentials, P as Platform, C as CredentialsType } from '../../../baseGameCommand-DvFilbRN.js';
6
6
  import 'path';
7
7
  import '@expo/apple-utils/build/index.js';
8
8
  import 'axios';
@@ -14,12 +14,12 @@ import 'react';
14
14
  import '@tanstack/react-query';
15
15
  import 'socket.io-client';
16
16
  import 'isomorphic-git';
17
- import { A as App } from '../../../App-DFPMSEZF.js';
17
+ import { A as App } from '../../../App-CRcDsay7.js';
18
18
  import 'ink-spinner';
19
19
  import 'string-length';
20
20
  import 'strip-ansi';
21
21
  import { R as RunWithSpinner } from '../../../RunWithSpinner-BVXNWGD3.js';
22
- import { e as exportCredential } from '../../../export-CujqsTR_.js';
22
+ import { e as exportCredential } from '../../../export-DnCkwLrK.js';
23
23
  import 'ini';
24
24
  import 'deepmerge';
25
25