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

Support jpkl executable for Windows #872

Merged
merged 3 commits into from
Jan 14, 2025
Merged

Conversation

bioball
Copy link
Contributor

@bioball bioball commented Jan 3, 2025

This updates the script used to start the executable to support Windows as well.

For Windows support, the executable needs to be named jpkl.bat.

No unit tests here, but this is tested on macOS directly, and on Windows in my Parallels instance.

This follows a technique shown by this blog post: https://mill-build.org/blog/5-executable-jars.html. Thanks, @lihaoyi!

@bioball bioball changed the title Support jpkl exeuctable for windows Support jpkl exeuctable for Windows Jan 3, 2025
@bioball bioball force-pushed the jpkl-for-windows branch 2 times, most recently from 61e8245 to f2a5650 Compare January 3, 2025 06:20
@HT154
Copy link
Contributor

HT154 commented Jan 5, 2025

Heads up: this needs an update too https://github.com/apple/pkl/blob/main/pkl-cli/pkl-cli.gradle.kts#L361-L362 (for JVM versions as well?)

Also typo in PR title: s/exeuctable/executable/

This updates the script used to start the executable to support
Windows as well.

For Windows support, the executable needs to be named `jpkl.bat`.
@bioball bioball changed the title Support jpkl exeuctable for Windows Support jpkl executable for Windows Jan 7, 2025
Copy link
Contributor

@holzensp holzensp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bioball bioball merged commit 100dd05 into apple:main Jan 14, 2025
5 checks passed
@bioball bioball deleted the jpkl-for-windows branch January 14, 2025 13:17
@bioball bioball added this to the Pkl 0.28.0 milestone Jan 24, 2025
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.

4 participants