← Winnitude! Search  ·  Reader Mode (1108 ms)
Links: Stay in Reader Retro Site Converter Retro Mode: OFF Original Page ↗
GITHUB · 8 LINKS

Incorrect names of resources in JPackage article · Issue #281 · java/devjava-content

Repository navigation

Incorrect names of resources in JPackage article  #281


New issue

New issue

Open

Open
Incorrect names of resources in JPackage article #281

Description

@danbulgar's profile danbulgar opened on Sep 26, 2026

In https://dev.java/learn/jvm/other-tools/jpackage/#examples section "Resource directory files considered only when building Linux DEB installer" says:

preinstall Pre-install shell script. Default resource is template.preinstall .
prerm Pre-remove shell script. Default resource is template.prerm.
postinstall Post-install shell script. Default resource is template.postinstall .
postrm Post-remove shell script. Default resource is template.postrm.

but these names are incorrect for (prefix)install scripts. Looking at openjdk repo: src/jdk.jpackage/linux/classes/jdk/jpackage/internal/resources
template.preinstall should be template.preinst, template.postinstall should be template.postinst and in consequence preinstall should be preinst and postinstall should be postinst.
I decided to verify this after creating a postinstall script in resource dir didn't work for me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions