mirror of
https://github.com/quamotion/dotnet-packaging.git
synced 2026-02-14 13:45:53 +00:00
Creating a .deb from Release instead of Debug #148
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @CryoViking on GitHub (Sep 16, 2024).
This might've already been asked before, but I can't seem to easily find an existing issue nor did I see a clear way to do it on the README.
Is there a way I can run
dotnet deband have it build a*.debfile from the result ofdotnet publishinstead ofdotnet build?@atauenis commented on GitHub (Sep 16, 2024):
dotnet deb -c Release -r linux-x64or:
dotnet publish -c Release -r linux-x64 -t:CreateDeb,CleanAll (or almost all) popular arguments for
dotnet publishare working withdotnet deb. And with-t:argument it's possible to specify a longer set of commands, likeCreateDeb,CreateRpm,Clean.@CryoViking commented on GitHub (Sep 17, 2024):
Thanks for the answer, I had figured it out like 30 minutes later but forgot to close the issue. My next thing is figuring out how to run a preinst and postinst script
@atauenis commented on GitHub (Sep 17, 2024):
Resave the csproj file to use LF line endings, and put scripts inside
<PropertyGroup> <PostInstallScript><![CDATA[ ]]></PostInstallScript>(<PreRemoveScript>).