kuiperzone / PupNet-Deploy

PupNet Deploy is a cross-platform deployment utility which packages your .NET project as a ready-to-ship installation file in a single step.
GNU Affero General Public License v3.0
183 stars 6 forks source link

Add multiple project support for different OS #30

Closed Juff-Ma closed 5 months ago

Juff-Ma commented 11 months ago

Could you make it possible to define multiple Projects in the pupnet.conf for when you have got multiple projects for different os (ExampleApp.Gui.Win32, ExampleApp.Gui.Gtk, ExampleApp.Gui.Mac or similar)? i haven't found a way to do this in the current state.

kuiperzone commented 11 months ago

You could disable the publish call by setting DotnetProjectPath to "NONE", and instead have DotnetPostPublish (and DotnetPostPublishOnWindows) points to scripts which perform the publish of custom projects. If you need to switch in the script, then all the macros are exported as environment variable and you could use ${DOTNET_RUNTIME}.

In the future, I may add an macro variable or two to make this a little easier.

kuiperzone commented 5 months ago

In upcoming version 1.8, you will be able to supply the csproj file from the command line. You will also be able to supply property DefineConstants from the command line also, which can be used in project files.