Cake.Electron.Net
A Cake AddIn that extends Cake with Electron.NET command tools.
Install / Use
/learn @Blind-Striker/Cake.Electron.NetREADME
Cake.Electron.Net
A Cake AddIn that extends Cake with Electron.NET command tools.
| Stable | Nightly |
| ------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| |
|
Continuous integration
| Build server | Platform | Build status |
| --------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Azure Pipelines | Ubuntu | |
| Azure Pipelines | macOs |
|
| Azure Pipelines | Windows |
|
Table of Contents
Requirements To Run
Cake.Electron.Net is depends on ElectronNET.CLI cli tool. Make sure you have installed the ElectronNET.CLI packages as global tool:
dotnet tool install ElectronNET.CLI -g
Including Add-in
Including add-in in cake script is easy.
#addin "nuget:?package=Cake.Electron.Net"
Usage
Please see Electron.NET for commands usages.
Commands Supported
- ElectronNetBuild
- ElectronNetAdd
- 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.
Important Notes
ElectronNET.API & ElectronNET.CLI Version 5.22.12
Make sure you also have the new Electron.NET CLI 5.22.12 version. This now uses electron-builder and the necessary configuration to build is made in the electron.manifest.json file. In addition, own Electron.NET configurations are stored. Please make sure that your electron.manifest.json file has the following new structure:
{
"executable": "{{executable}}",
"splashscreen": {
"imageFile": ""
},
"singleInstance": false,
"build": {
"appId": "com.{{executable}}.app",
"productName": "{{executable}}",
"copyright": "Copyright © 2019",
"buildVersion": "1.0.0",
"compression": "maximum",
"directories": {
"output": "../../../bin/Desktop"
},
"extraResources": [
{
"from": "./bin",
"to": "bin",
"filter": ["**/*"]
}
],
"files": [
{
"from": "./ElectronHostHook/node_modules",
"to": "ElectronHostHook/node_modules",
"filter": ["**/*"]
},
"**/*"
]
}
}
ElectronNET.CLI Version 0.0.9
In the Version 0.0.9 the CLI was not a global tool and needed to be registred like this in the .csproj:
<ItemGroup>
<DotNetCliToolReference Include="ElectronNET.CLI" Version="0.0.9" />
</ItemGroup>
If you still use this version you will need to install Cake.Electron.Net v0.0.9
Related Skills
node-connect
349.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.9kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.9kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
