Reference .sh files in PreInstallScript and PostInstall .csproj for RPM generation instead of inline bash commands #121

Open
opened 2026-01-29 16:30:01 +00:00 by claunia · 0 comments
Owner

Originally created by @ar1950 on GitHub (May 26, 2022).

So I see this comment: https://github.com/quamotion/dotnet-packaging/issues/163

I would basically like to do

>     <PreInstallScript>
>       <![CDATA[
> #the bash preinst script
>       ]]>
>     </PreInstallScript>
>     <PostInstallScript>
>       <![CDATA[
> #the bash postinst script
>       ]]>
>     </PostInstallScript>

but with my script files referenced instead of hardcoded values

>     <PreInstallScript>
>       <![CDATA[
>  ./directory/PreInstallScript.sh
>       ]]>
>     </PreInstallScript>
>     <PostInstallScript>
>       <![CDATA[
>  ./directory/PostInstallScript.sh
>       ]]>
>     </PostInstallScript>

so I don't have to worry about breaking anything by turning the entire .csproj into LF endings. Is this possible?

Originally created by @ar1950 on GitHub (May 26, 2022). So I see this comment: https://github.com/quamotion/dotnet-packaging/issues/163 I would basically like to do ``` > <PreInstallScript> > <![CDATA[ > #the bash preinst script > ]]> > </PreInstallScript> > <PostInstallScript> > <![CDATA[ > #the bash postinst script > ]]> > </PostInstallScript> ``` but with my script files referenced instead of hardcoded values ``` > <PreInstallScript> > <![CDATA[ > ./directory/PreInstallScript.sh > ]]> > </PreInstallScript> > <PostInstallScript> > <![CDATA[ > ./directory/PostInstallScript.sh > ]]> > </PostInstallScript> ``` so I don't have to worry about breaking anything by turning the entire .csproj into LF endings. Is this possible?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/dotnet-packaging#121