mirror of
https://github.com/apple/pkl.git
synced 2026-01-11 22:30:54 +01:00
[PR #872] [MERGED] Support jpkl executable for Windows #780
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/apple/pkl/pull/872
Author: @bioball
Created: 1/3/2025
Status: ✅ Merged
Merged: 1/14/2025
Merged by: @bioball
Base:
main← Head:jpkl-for-windows📝 Commits (3)
21dc4bfSupport jpkl exeuctable for windows6d259faPolish docs0bbf2b9Update copyright years, update description📊 Changes
3 files changed (+45 additions, -17 deletions)
View changed files
📝
buildSrc/src/main/kotlin/ExecutableJar.kt(+23 -9)📝
docs/modules/pkl-cli/pages/index.adoc(+20 -6)📝
pkl-cli/pkl-cli.gradle.kts(+2 -2)📄 Description
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!
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.