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

MacOS - PKG build - Preinstall/Postinstall scripts KO #7299

Closed
qfl75 opened this issue Dec 1, 2022 · 1 comment
Closed

MacOS - PKG build - Preinstall/Postinstall scripts KO #7299

qfl75 opened this issue Dec 1, 2022 · 1 comment

Comments

@qfl75
Copy link

qfl75 commented Dec 1, 2022

  • Electron-Builder Version: 23.6.0
  • Node Version: 16.18.0
  • Electron Version:21.2.0
  • Electron Type (current, beta, nightly):current
  • Target: macOS - PKG

I try to build a pkg for my apps with preinstall script.
When I add "scripts" option with the path to the repo nothing happened.

The --scripts options with the directory path is added to the pkgbuild command but the .plist file used in package build doesn't contains BundlePreInstallScriptPath or BundlePostInstallScriptPath keys which should contains scripts name (eg: preinstall.sh).

These keys are necessary to execute preinstall or postinstall script on pkg install.

Could you have a look on this.

Thanks.

@qfl75 qfl75 closed this as completed Dec 1, 2022
@KaminoRyo
Copy link
Contributor

I am also in the same situation and came to the same conclusion after reading /app-builder-lib/targets/pkg.ts. This option is not working.

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

No branches or pull requests

2 participants