镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

scripts.preInstall and scripts.postInstall are not implemented #503

Open

Description

@fvarrui

scripts.preInstall and scripts.postInstall are accepted in the configuration but silently ignored: only scripts.bootstrap is implemented. The old README said "Pre and post-install scripts coming soon!".

Where

model/Scripts defines preInstall and postInstall, but nothing reads getPreInstall() or getPostInstall().

Proposal

Run them from the installers that support it:

  • DEB: preinst/postinst maintainer scripts (jdeb control files).
  • RPM: %pre/%post (Redline setPreInstallScript/setPostInstallScript).
  • PKG: pkgbuild --scripts with preinstall/postinstall.
  • Inno Setup: [Run] entries or CurStepChanged.
  • MSI: custom actions.

Until then, log a warning when they are set, so users know they have no effect.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions