> postinst expanded #147

Closed
opened 2026-01-29 16:30:37 +00:00 by claunia · 1 comment
Owner

Originally created by @CryoViking on GitHub (Sep 18, 2024).

          > My next thing is figuring out how to run a preinst and postinst script

Resave the csproj file to use LF line endings, and put scripts inside <PropertyGroup> <PostInstallScript><![CDATA[ ]]></PostInstallScript> (<PreRemoveScript>).

Originally posted by @atauenis in https://github.com/quamotion/dotnet-packaging/issues/253#issuecomment-2354808395

Is there any chance you can expand upon this for me please. Once I get a working example (The example project in the repo has the tags but doesn't actually do anything) I could make a PR with an extension to the README for this.

Originally created by @CryoViking on GitHub (Sep 18, 2024). > My next thing is figuring out how to run a preinst and postinst script > Resave the csproj file to use LF line endings, and put scripts inside `<PropertyGroup> <PostInstallScript><![CDATA[ ]]></PostInstallScript>` (`<PreRemoveScript>`). _Originally posted by @atauenis in https://github.com/quamotion/dotnet-packaging/issues/253#issuecomment-2354808395_ Is there any chance you can expand upon this for me please. Once I get a working example (The example project in the repo has the tags but doesn't actually do anything) I could make a PR with an extension to the README for this.
Author
Owner
@atauenis commented on GitHub (Sep 18, 2024): Look at example here: https://github.com/atauenis/webone/blob/dev/WebOne.csproj It's working without known problems. May be it can be used as source for your research. Also: https://manpages.debian.org/testing/dpkg-dev/deb-postinst.5.en.html, https://manpages.debian.org/testing/dpkg-dev/deb-preinst.5.en.html, https://manpages.debian.org/testing/dpkg-dev/deb-postrm.5.en.html, https://manpages.debian.org/testing/dpkg-dev/deb-prerm.5.en.html.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/dotnet-packaging#147