-
Notifications
You must be signed in to change notification settings - Fork 22
Make Commet buildable and Runnable in macOS and iOS #422
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Thanks, this is quite exciting! Would you be able to setup actions to build for macos, as at this point I can't really test that this actually works, so that would be super helpful! |
|
I think that's added an action that should (hopefully) build for Mac. I want to make sure that it works before I add one that builds for iOS. |
|
My base status here is that the macOS build is failing, but it's failing because the base64 decode of the certificate (that I have as a secret) is failing, and I'm having trouble figuring out why it's failing. There may well be other bugs as well, but until this part is figured out, there's no good way to check that, because the runner never actually gets to the point where it's trying to build the macOS binary. |
|
Okay, this is now at the point where the builds are working both locally and on GitHub, and the builds have been made configurable on GitHub. In particular, in order to successfully build, you will need the following repository variables:
You will also need to have the following secrets set and available:
I realize that's a lot of things, but as the above extremely long list of commits probably indicates, figuring out how to properly prepare an app, whether macOS or iOS, how to get everything signed appropriately, and how to get flutter, GitHub, and Xcode to all work together when doing so, is complicated. And it all gets more complicated when trying to make it modular. One note is that the iOS build is creating a ".ipa" file, which is the file that you would submit to the App Store, for either beta testing or release. As the build actions are currently configured, the version information comes from the pubspec.yaml file, as does the build number. It's possible to set them at build time, and you might want to do that in order to do releases that give you code products. If there's anything in the above that isn't clear, I'm happy to answer questions. |
|
Thanks so much for the massive effort! It will take me a while to look through everything, but this is really cool! |
|
Okay, as you said it's a massive set of code, which means I forgot something. There's now a new GitHub environment variable, IOS_PUSH_GATEWAY, that will need to be set to a matrix push gateway that has the necessary keys installed for the app ID. |
|
I'm really looking forward to testing this out!! My macOS/iOS app building skills are really weak, I'll wait until the process is simplified! :) |
Update from base repository
Update apple dev branch
|
@MrRaph if you would like to be added to the iOS TestFlight (or get a copy of the macOS application), let me know, and (for test flight) let me know an e-mail where you can receive a TestFlight invitation. Test reports are always welcome, and will make their way into this branch. |
I'll will be glad to test both :) |
|
I'm currently in the process of setting up initial support for iOS and Mac in #525 and #524. my main goal is to get commet running on these platforms through a series of smaller pull requests, as opposed to hitting everything at once in this giant PR. I'm going to use a lot of the great work done here as a guide, and parts of this PR will probably end up being merged in through separate smaller PRs at a later date. So with that being said, I'm going to close this, but I still want to say thank you for all the work that was put in to this, it's going to be incredibly helpful for me, and whenever i borrow something from this PR, i will add you as a co-author |
This makes it possible to create commet desktop and iOS apps, and the iOS app is confirmed to pass App Store beta review.