kobaltcore / renkit

A collection of tools to help you organise and use Ren'Py instances from the command line. Especially useful for headless servers.
MIT License
26 stars 2 forks source link

Panic during `renotize provision` #13

Closed furudean closed 8 months ago

furudean commented 9 months ago

First time trying this, so not sure if I'm doing something wrong.

1. Click on 'Keys'
2. If this is your first time, click on 'Request Access' and wait until it is granted
3. Click on 'Generate API Key'
4. Enter a name for the key
5. For Access, select 'Developer'
6. Click on 'Generate'
7. Copy the Issuer ID and enter it here: ('Enter' to confirm)
<omitted>
8. Copy the Key ID and enter it here: ('Enter' to confirm)
<omitted>
9. Next to the entry of the newly-created key in the list, click on 'Download API Key'
10. In the following pop-up, Click on 'Download'
11. Save the downloaded .p8 file next to the private-key.pem and csr.pem files.
thread 'main' panicked at src/renotize.rs:409:33:
called `Option::unwrap()` on a `None` value
stack backtrace:
   0:        0x10182c5c8 - __mh_execute_header
   1:        0x1014183ec - __mh_execute_header
   2:        0x10182872c - __mh_execute_header
   3:        0x10182c3c8 - __mh_execute_header
   4:        0x10182da7c - __mh_execute_header
   5:        0x10182d778 - __mh_execute_header
   6:        0x10182e058 - __mh_execute_header
   7:        0x10182de1c - __mh_execute_header
   8:        0x10182ca48 - __mh_execute_header
   9:        0x10182dbf0 - __mh_execute_header
  10:        0x1019d2a2c - __mh_execute_header
  11:        0x1019d2aa0 - __mh_execute_header
  12:        0x101658e54 - __mh_execute_header
  13:        0x101664520 - __mh_execute_header
  14:        0x10168ea04 - __mh_execute_header
  15:        0x1016985c4 - __mh_execute_header
  16:        0x10169861c - __mh_execute_header
  17:        0x101820f50 - __mh_execute_header
  18:        0x1016985f8 - __mh_execute_header
  19:        0x10169702c - __mh_execute_header

My directory looks like this

 .
└── certificates
   ├── app-store-key.json
   ├── AuthKey_WHUPAJ39DD.p8
   ├── csr.pem
   ├── developerID_application.cer
   └── private-key.pem

I think after this all that remains at this point is to create the app-store-key.json, but I can't comprehend what the format would be just from looking at the code.

Some docs about what is happening at these steps and why would definitely be helpful!

kobaltcore commented 8 months ago

Sorry 'bout the late reply on this, I was on vacation and am currently ill. Once I'm better I'll resolve this and the other issue you logged!

kobaltcore commented 8 months ago

I'm releasing 4.0.2 with a potential fix for this, please give it a try once the release is up and let me know whether it works or not.

furudean commented 8 months ago

This seems to work now!