A Cake AddIn that extends Cake with Electron.NET command tools.
Switch branches/tags
Nothing to show
Clone or download

README.md

Cake.Electron.Net

A Cake AddIn that extends Cake with Electron.NET command tools.

cakebuild.net NuGet

Builds status

Linux Windows
Build Build Status Build status

Requirements to run

Cake.Electron.Net is depends on dotnet-electronize package ElectronNET.CLI NuGet package. This package must be referenced in the .csproj like this:

<ItemGroup>
        <DotNetCliToolReference Include="ElectronNET.CLI" Version="0.0.9" />
</ItemGroup>

Including addin

Including addin in cake script is easy.

#addin "nuget:?package=Cake.Electron.Net"

Usage

Please see Electron.NET for commands usages.

Commands supported

  • ElectronNetBuild
  • ElectronNetInit
  • ElectronNetStart
  • ElectronNetVersion

Example

using Cake.Electron.Net
using Cake.Electron.Net.Commands.Settings

Task("Build")
.Does(() => {    
    ElectronNetVersion(workingDirectory);

    ElectronNetBuildSettings settings = new ElectronNetBuildSettings();
    settings.WorkingDirectory = workingDirectory;
    settings.ElectronTarget = ElectronTarget.Win;
    settings.DotNetConfig = DotNetConfig.Release;

    ElectronNetBuild(settings);
});

Licenses

Licensed under MIT, see LICENSE for the full text.