Skip to content

Ensure jspawnhelper is executable in archives - #521

Merged
maths22 merged 1 commit into
develfrom
jspawnhelper-exec
Nov 18, 2026
Merged

maths22 merged 1 commit into
develfrom
jspawnhelper-exec

Conversation

@maths22

@maths22 maths22 commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

Fixes issue where jspawnhelper is not executable in linux tar/zipballs

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues are reported for the Linux ZIP and TAR archive permission changes.

No open issues 🎉

What changed in this PR

This PR updates Gradle’s Linux archive tasks so the bundled JRE’s jspawnhelper is executable after extraction, allowing Java applications to launch subprocesses.

Changes:

  • Excludes lib/jspawnhelper from the default archive copy specifications.
  • Includes it in the executable copy specifications with Unix permissions 755 for both ZIP and TAR archives.
File Description
src/​main/​java/​io/​github/​javapackager/​gradle/​CreateZipball.java Assigns executable permissions to jspawnhelper in Linux ZIP archives.
src/​main/​java/​io/​github/​javapackager/​gradle/​CreateTarball.java Assigns executable permissions to jspawnhelper in Linux TAR archives.

Review effort: Balanced

@maths22
maths22 merged commit 608b2f8 into devel Nov 18, 2026
12 of 15 checks passed
@maths22
maths22 deleted the jspawnhelper-exec branch November 18, 2026 03:03
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.

2 participants