Way to add postinstallscript option while creating First-Generation managed package version using SFDX #2263
Replies: 5 comments 2 replies
-
This issue has been linked to a new work item: W-11448314 |
Beta Was this translation helpful? Give feedback.
-
Thank you for filing this feature request. We appreciate your feedback and will review the feature at our next grooming or sprint planning session. We prioritize feature requests with more upvotes and comments. |
Beta Was this translation helpful? Give feedback.
-
This issue has not received a response in 60 days. It will auto-close in 7 days unless a response is posted. |
Beta Was this translation helpful? Give feedback.
-
Any update on this? Is there going to be any support added for the post-installation script option for the 1GP packaging commands? |
Beta Was this translation helpful? Give feedback.
-
We're not going to invest in features for 1GP because of Packaging's roadmap for 2GP transition. 2GP via |
Beta Was this translation helpful? Give feedback.
-
Is your feature request related to a problem? Please describe.
I am trying to create a managed package version of my app using a set of SFDX commands to deploy the metadata and then build beta and prod packages (as per the document here https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_build_man_pack_create.htm). I want to add the post-install script value to the apckage that gets created as a result but every time I build the package using sfdx commands it fails to add the post-install value to the package.
What are you trying to do
The package that gets created should have the post-install script value on it. I have also tried adding the post-install script value on the package and then using the
sfdx force:package1:version:create
to create a new version of the package in the hope of retaining the post-install script value but everytime the new version is created the post-install script value is erased.Describe the solution you'd like
sfdx force:package1:version:create
command should provide an option (--postinstallscript) to add the post-install value or support the postInstallScript value from the sfdx-project.json. 2GP package creation sfdx command (sfdx force:package:version:create
) already supports both these options.Describe alternatives you've considered
Unfortunately, the only alternative, in this case, is to manually create the package from packaging org which defeats the purpose of using sfdx commands and building the CI/CD process for maintaining the managed package app project
Additional context
https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_dev2gp_customize_installs.htm
Here is the document that shows the support for the postinstallscript option for the 2nd Generation package creation command
Beta Was this translation helpful? Give feedback.
All reactions