sy6sy2 / xbmc

Kodi is an award-winning free and open source home theater/media center software and entertainment hub for digital media. With its beautiful interface and powerful skinning engine, it's available for Android, BSD, Linux, macOS, iOS and Windows.
https://kodi.tv/
Other
6 stars 1 forks source link

make users' lives easier by automating code signing assets creation #86

Open kambala-decapitator opened 4 years ago

kambala-decapitator commented 4 years ago

Currently sideloading users have to use either Xcode (requires macOS) or perform magical steps on the developer website to create code signing assets. Existing instructions: https://forum.kodi.tv/showthread.php?tid=245978

Investigate how to automate creating certificate and provisioning profile(s) using fastlane:

kambala-decapitator commented 4 years ago

https://github.com/yihuang/isign looks promising for non-macOS, but getting everything automated on macOS would be first prio

kambala-decapitator commented 4 years ago

as first step, created bash script to sign iOS package (or tvOS, but without top shelf): https://gist.github.com/kambala-decapitator/567ea1545891c5ebe05cde0c312eae21

kambala-decapitator commented 4 years ago

I think I found all the needed fastlane commands to

Tested all of them separately and they work. Unfortunately, it seems that they don't work with free dev accounts and those users would still have to do it via Xcode / Altstore (when the latter fixes resigning for Kodi).

Next step would be unifying all of them into a script, possibly more than one because some commands are needed only once.

Later fastlane stuff can be moved to a Fastfile (fastlane's internal description of its commands, can be more advanced because it's Ruby) or to a similar thing but in Swift (currently it's in beta).

kambala-decapitator commented 4 years ago

created script that creates app in apple dev center and optionally links it to an app group (required for top shelf), feel free to test it: https://gist.github.com/kambala-decapitator/856b32899395eb942577952eda56891a. You need to install fastlane first, only the Installing fastlane section.

fuzzard commented 4 years ago

Nice work, I'll try give it a run over the next couple of days