Skip to content
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 native macosX64 target if it runs on mac #93

Merged
merged 1 commit into from Oct 3, 2019

Conversation

jmfayard
Copy link
Contributor

@jmfayard jmfayard commented Oct 3, 2019

I would be really interested as well to use clikt with Kotlin native for command-line tools #40

I think we can solve the "I don't have a mac" by adding this configuration to Gradle: System.getProperty("os.name") == "Mac OS X"

Then a CI or another dev that runs on a mac can do the release.

Seems to work fine for me on a macbook:

./gradlew :nativesample:runReleaseExecutableMacosX64
Hello Native.

 ./nativesample/build/bin/macosX64/releaseExecutable/nativesample.kexe
Hello Native.

System.getProperty("os.name") == "Mac OS X"

./gradlew :nativesample:runReleaseExecutableMacosX64
Hello Native.

 ./nativesample/build/bin/macosX64/releaseExecutable/nativesample.kexe
Hello Native.
@ajalt ajalt merged commit 87862cd into ajalt:multiplatform Oct 3, 2019
@ajalt
Copy link
Owner

ajalt commented Oct 3, 2019

Thanks! I'm not sure what I'll do about releases yet, but at least this will let people build the library themselves.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants