Skip to content

Commit 041e294

Browse files
committed
documentation
1 parent 98e9bcd commit 041e294

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

ElectronNET.CLI/Commands/BuildCommand.cs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
using System.IO;
44
using System.Linq;
55
using System.Runtime.InteropServices;
6+
using System.Text;
67
using System.Threading.Tasks;
78
using ElectronNET.CLI.Commands.Actions;
89

@@ -12,7 +13,14 @@ public class BuildCommand : ICommand
1213
{
1314
public const string COMMAND_NAME = "build";
1415
public const string COMMAND_DESCRIPTION = "Build your Electron Application.";
15-
public const string COMMAND_ARGUMENTS = "<Platform> to build (default is current OS, possible values are: win,osx,linux)";
16+
public static string COMMAND_ARGUMENTS = "Needed: '/target' with params 'win/osx/linux' to build for a typical app or use 'custom' and specify .NET Core build config & electron build config" + Environment.NewLine +
17+
" for custom target, check .NET Core RID Catalog and Electron build target/" + Environment.NewLine +
18+
" e.g. '/target win' or '/target custom \"win7-x86;win32\"'" + Environment.NewLine +
19+
"Optional: '/dotnet-configuration' with the desired .NET Core build config e.g. release or debug. Default = Release" + Environment.NewLine +
20+
"Optional: '/electron-arch' to specify the resulting electron processor architecture (e.g. ia86 for x86 builds). Be aware to use the '/target custom' param as well!" + Environment.NewLine +
21+
"Optional: '/electron-params' specify any other valid parameter, which will be routed to the electron-packager." + Environment.NewLine +
22+
"Full example for a 32bit debug build with electron prune: build /target custom win7-x86;win32 /dotnet-configuration Debug /electron-arch ia32 /electron-params \"--prune=true \"";
23+
1624
public static IList<CommandOption> CommandOptions { get; set; } = new List<CommandOption>();
1725

1826
private string[] _args;

0 commit comments

Comments
 (0)