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

fix(flat): use pkgbuild to bundle pre/postinstall scripts #282

Merged
merged 3 commits into from
Jul 4, 2024

Conversation

rickymohk
Copy link
Contributor

The --scripts should go to pkgbuild in order for preinstall and postinstall script to work. So the single productbuild command has to be separated into pkgbuild and productbuild.

I am not sure if the --scripts in productbuild has any practical use. Might need to add an new option if need to retain the --scripts for both productbuild and pkgbuild

@rickymohk rickymohk requested a review from a team as a code owner May 4, 2023 09:05
@erickzhao erickzhao changed the title Fix scripts (preinstall/postinstall) not working for flat fix: scripts (preinstall/postinstall) not working for flat Nov 7, 2023
src/flat.ts Show resolved Hide resolved
Copy link
Member

@erickzhao erickzhao left a comment

Choose a reason for hiding this comment

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

This seems to work out of the box for me with the following setup erickzhao/maker-pkg-test@4a8f4c9

Also confirmed that the current version of osx-sign doesn't work as expected.

@erickzhao erickzhao changed the title fix: scripts (preinstall/postinstall) not working for flat fix(flat): use pkgbuild to bundle pre/postinstall scripts Jul 4, 2024
@erickzhao erickzhao merged commit 51531f1 into electron:main Jul 4, 2024
3 checks passed
Copy link

🎉 This PR is included in version 1.3.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants