From 521e7c935a9853213fcae767127102984ccbca22 Mon Sep 17 00:00:00 2001 From: Florian Rappl Date: Mon, 7 Sep 2026 08:25:18 +0200 Subject: [PATCH] Removed references to electronize --- docs/GettingStarted/Templates.md | 2 +- src/ElectronNET.WebApp/Controllers/UpdateController.cs | 3 --- src/ElectronNET.WebApp/Views/HostHook/Index.cshtml | 2 +- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/docs/GettingStarted/Templates.md b/docs/GettingStarted/Templates.md index 7b2a3b7..1df64ea 100644 --- a/docs/GettingStarted/Templates.md +++ b/docs/GettingStarted/Templates.md @@ -36,7 +36,7 @@ Then start it in the Electron shell: ```bash dotnet build -electronize start +dotnet run ``` ### Options diff --git a/src/ElectronNET.WebApp/Controllers/UpdateController.cs b/src/ElectronNET.WebApp/Controllers/UpdateController.cs index e145ec7..84bcfde 100644 --- a/src/ElectronNET.WebApp/Controllers/UpdateController.cs +++ b/src/ElectronNET.WebApp/Controllers/UpdateController.cs @@ -29,9 +29,6 @@ namespace ElectronNET.WebApp.Controllers Electron.IpcMain.On("auto-update", async (args) => { - // Electron.NET CLI Command for deploy: - // electronize build /target win /electron-params --publish=always - var currentVersion = await Electron.App.GetVersionAsync(); var updateCheckResult = await Electron.AutoUpdater.CheckForUpdatesAndNotifyAsync(); var availableVersion = updateCheckResult.UpdateInfo.Version; diff --git a/src/ElectronNET.WebApp/Views/HostHook/Index.cshtml b/src/ElectronNET.WebApp/Views/HostHook/Index.cshtml index 7dbbed0..7c5c267 100644 --- a/src/ElectronNET.WebApp/Views/HostHook/Index.cshtml +++ b/src/ElectronNET.WebApp/Views/HostHook/Index.cshtml @@ -8,7 +8,7 @@

The HostHook API allows you to execute your own JavaScript/TypeScript code on the host process.

-

Create first an ElectronHostHook directory via the Electron.NET CLI, with the following command: electronize add hosthook.

+

Create first an ElectronHostHook directory with a package.json and a JavaScript file.

In this directory you can install any NPM packages and embed your own JavaScript/TypeScript code. It is also possible to respond to events from the host process.

You find the sample source code in Controllers\HostHookController.cs and in the ElectronHostHook folder.