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
Add iOS builds to nFPM deb pkgs #3410
Comments
I just tested it and all non-linux builds are ignored in the |
wait... jailbroken iphones can install debs? if so... can we run automated tests on github actions? if not, I'd be inclined to not implement this. |
@CRKatri ? I assume that it's not testable unless macOS can also install debs? |
You can test packaging them, and the code should be identical to the packaging code used for Linux debs. You obviously can't test running the iOS binaries with GitHub actions, you could probably do something with corellium, but that's very expensive for no real benefit. |
@CRKatri I can see where @caarlos0 is testing his debs here - https://github.com/goreleaser/goreleaser/blob/main/Taskfile.yml#L162 Is there a docker image that can approximate the iOS environment at least just from an installing debs point of view? |
No. As I said though, as long as the Linux debs work, the ios debs will too. |
@caarlos0 is there a "generic" step for packaging that I could use to create these debs should you choose not to implement? |
if its just setting that arch, you can use nfpm directly... but within goreleaser, no there isn't... |
Yes, the jailbreaking tools actually install
You wouldn't be able to test on iOS itself, but as I said, it uses unmodified |
goreleaser allows setting GOOS to ios, not sure if github actions et al build it though (pretty sure they don't without a good amount of modifications), but goreleaser will not package debs for ios. maybe we could do something like: nfpm:
- id: foo
package_name: etc
goos: ios so, |
I believe we would also need to ensure in your nfpm pkg that
|
I was thinking you could add support for an |
Also just FYI in order to build GOOS Also I've been using Zig for cross compiling instead of using a FULL Github Action VM or one of those docker images and it has be working GREAT and might be something you'd want to officially support via goreleaser in the future 😎 |
yes, that would be the idea... |
hmm, that might be even simpler, as the majority of projects don't build for ios anyway... will think about it for a bit... having a rough couple of weeks personal life wise, but will see what I can do... |
Really appreciate everything you do @caarlos0 ❤️ |
Jailbroken iOS can install deb packages, and it seems the only change needed is to set the OS to `ios` instead of `linux`. Closes #3410
check out #3436 |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Is your feature request related to a problem? Please describe.
No problem, but there is a community of people that pkg bins/apps for jailbroken phones etc and this would make it much easier for them to include my tools in their distros.
Describe the solution you'd like
I believe that we could also pkg the GOOS ios GOARCH arm64 builds into deb pkgs if we set the "Architecture: field in the control file to
iphoneos-arm64
".Is that possible to add as a config?
Describe alternatives you've considered
I'm not sure how else to do this?
Search
Code of Conduct
Additional context
I think from a UX point of view you would just add
ios
as a one of thebuilds
to be packaged and it would auto set theiphoneos-arm64
and apologies if you have already implemented this.The text was updated successfully, but these errors were encountered: