Hi, have someone being able to create docker conta...
# kotlin-native
g
Hi, have someone being able to create docker containers to build iOS/macOS or Windows applications? I'll really appreciate a dockerfile... 😆
s
It’s against the EULA to run MacOS on non Apple hardware.
m
Current master branch supports creating Linux binaries on non-Linux hosts, creating Windows on non-Windows is WIP, and Mac on non-Mac will be not available only by legal reasons.
g
@Sam, I didn't know that. But this is strange. For example, since I researching I was able to find something like that for circleci: https://github.com/CircleCI-Public/circleci-demo-ios/blob/master/.circleci/config.yml I don't know if they are running docker but what I would like to achieve is something to guarantee my build will pass.
I have found something related with Windows too: https://github.com/hack2root/build/blob/master/.circleci/config.yml It looks it's an official image from Microsoft but I don't yet if I can use it to build a kotlin mpp app there
l
@Sam But that part of Apple's EULA is illegal in EU.
Also MKBHD who lives in USA made several videos about making a Hackintosh, yet still attended Apple events afterwards and could talk with Craig Federighi and keep the footage for YouTube.
s
All I can tell you is that Apple sued into oblivion a couple companies who thought they could distribute MacOS with some hardware capable of running it.
l
Because they sold software they didn't own. It's not the same as having the software and running it on another machine as an individual.
m
In case of K/N cross-compiling to Mac binaries - it will have to distribute MacOSX-SDK as dependency, and it is legal only for personal use, "as backup" https://github.com/JetBrains/kotlin-native/issues/2641
g
Unfortunately this approach, https://github.com/CircleCI-Public/circleci-demo-ios/blob/master/.circleci/config.yml, is a paid one and somehow expensive for me, since I’d like to integrate this with a hobby project of mine. Either way It would be a dream if we could have a continuous integration server running our build with all supported platforms (jvm, js, android, androidNativeArm32, androidNativeArm64, iosArm32, iosArm64, iosX64, linuxArm32Hfp, linuxMips32, linuxMipsel32, linuxX64, macosX64, mingwX64, wasm32).
m
TravisCI can build for iOS, and is free for github projects, even private https://docs.travis-ci.com/user/languages/objective-c/
g
Oh, that’s very good news. Do you know if we can use Travis to build windows/mingw too?
m
Windows was recently added to TravisCI, but I did not try it, still using AppveyorCI for Windows builds.
g
@msink, It looks like you already have everything that I’m looking for 😃 Can’t you share them with me? So I could have CI integrations working for all kotlin platforms?
m
Well, I actually use it only for native desktop targets, didn't try mobile and js - but in theory they should work too... https://github.com/msink/kotlin-libui