Skip to content

Commit 4c880cb

Browse files
authored
Merge pull request #852 from rs22/update-electron-30
Update Electron version to 30.0.3
2 parents e361367 + e46ba98 commit 4c880cb

File tree

5 files changed

+78
-56
lines changed

5 files changed

+78
-56
lines changed

Changelog.md

+35-31
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 30.0.3
2+
3+
(none)
4+
15
# 23.6.2
26

37
## ElectronNET.API
@@ -34,7 +38,7 @@
3438

3539
## ElectronNET.API
3640

37-
* New Feature: Native Electron 23.2.0 support, but not all new API features included (we search contributors)
41+
* New Feature: Native Electron 23.2.0 support, but not all new API features included (we search contributors)
3842
* New Feature: Upgrade to .NET 6 support
3943
* New Feature: Changed Web-Socket .NET Library to [SocketIOClient](https://github.com/doghappy/socket.io-client-csharp)
4044
* Breaking Changes: We removed deprecated API events/methods from ElectronNET.API [(More Details)](https://www.electronjs.org/docs/latest/breaking-changes)
@@ -43,26 +47,26 @@
4347

4448
ElectronNET.CLI:
4549

46-
* New Feature: Using exit code instead of seek for the term 'error' (thanks [TSrgy](https://github.com/TSrgy)) [\#562](https://github.com/ElectronNET/Electron.NET/pull/562)
47-
* Fixed bug: Allow for property overrides to be passed in (thanks [danatcofo](https://github.com/danatcofo)) [\#531](https://github.com/ElectronNET/Electron.NET/pull/531)
48-
Use `/p:propertyName=value` or `/property:propertyName=value` to pass in property overrides. This is equivalent to the `-p:` option documented here: [https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-publish](https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-publish)
49-
* Fixed bug: Add ability to pass an argument for "Version" for both the "dotnet publish" and "electron-builder" commands (thanks [tub5](https://github.com/tub5)) [\#546](https://github.com/ElectronNET/Electron.NET/pull/546)
50-
* Fixed bug: Version flag not persisting with the referenced executable (thanks [tub5](https://github.com/tub5)) [\#585](https://github.com/ElectronNET/Electron.NET/pull/585)
51-
* Fixed bug: Changes PublishSingleFile default to false for NET5 compatibility (thanks [cristiangiagante](https://github.com/cristiangiagante)) [\#570](https://github.com/ElectronNET/Electron.NET/pull/570)
52-
53-
ElectronNET.API:
54-
55-
* New Feature: Native Electron 13.1.5 support, but not all new features (we search contributors)
56-
* Breaking API Changes (from native Electron 13.1.5):
57-
- `Shell.MoveItemToTrashAsync` renamed with `Shell.TrashItemAsync`
58-
- The deprecated extension APIs have been removed: `BrowserWindow.GetAllExtensionsAsync()`, `BrowserWindow.RemoveExtension()`, `BrowserWindow.AddExtensionAsync()`. Use the session APIs instead: `Session.GetAllExtensionsAsync()`, `Session.RemoveExtension()`, `Session.LoadExtensionAsync()`.
59-
* New Feature: singleInstance handle command line arguments [\#520](https://github.com/ElectronNET/Electron.NET/issues/520)
60-
* New Feature: Add WebContents [insertCSS](https://www.electronjs.org/docs/api/web-contents#contentsinsertcsscss-options) functionality (thanks [nfichter](https://github.com/nfichter)) [\#559](https://github.com/ElectronNET/Electron.NET/pull/559)
61-
* New Feature: Allow IpcMain to send IPC messages to BrowserViews (thanks [nfichter](https://github.com/nfichter)) [\#560](https://github.com/ElectronNET/Electron.NET/pull/560)
62-
* New Feature: Add support for proxies that require basic username/password authentication (thanks [nfichter](https://github.com/nfichter)) [\#561](https://github.com/ElectronNET/Electron.NET/pull/561)
63-
* New Feature: Add PostData to LoadURLOptions to allow http-posts in LoadURL calls (thanks [Funkrusha](https://github.com/Funkrusha)) [\#547](https://github.com/ElectronNET/Electron.NET/pull/547)
64-
* Fixed bug: Fix splash screen interaction causing crashes, ghost dragging, and resizable behavior #540 (thanks [MiniguyBrendan](https://github.com/MiniguyBrendan)) [\#540](https://github.com/ElectronNET/Electron.NET/pull/540)
65-
* Fixed bug: Vibrancy serialization fix (thanks [tantumalice](https://github.com/tantumalice)) [\#573](https://github.com/ElectronNET/Electron.NET/pull/573)
50+
* New Feature: Using exit code instead of seek for the term 'error' (thanks [TSrgy](https://github.com/TSrgy)) [\#562](https://github.com/ElectronNET/Electron.NET/pull/562)
51+
* Fixed bug: Allow for property overrides to be passed in (thanks [danatcofo](https://github.com/danatcofo)) [\#531](https://github.com/ElectronNET/Electron.NET/pull/531)
52+
Use `/p:propertyName=value` or `/property:propertyName=value` to pass in property overrides. This is equivalent to the `-p:` option documented here: [https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-publish](https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-publish)
53+
* Fixed bug: Add ability to pass an argument for "Version" for both the "dotnet publish" and "electron-builder" commands (thanks [tub5](https://github.com/tub5)) [\#546](https://github.com/ElectronNET/Electron.NET/pull/546)
54+
* Fixed bug: Version flag not persisting with the referenced executable (thanks [tub5](https://github.com/tub5)) [\#585](https://github.com/ElectronNET/Electron.NET/pull/585)
55+
* Fixed bug: Changes PublishSingleFile default to false for NET5 compatibility (thanks [cristiangiagante](https://github.com/cristiangiagante)) [\#570](https://github.com/ElectronNET/Electron.NET/pull/570)
56+
57+
ElectronNET.API:
58+
59+
* New Feature: Native Electron 13.1.5 support, but not all new features (we search contributors)
60+
* Breaking API Changes (from native Electron 13.1.5):
61+
- `Shell.MoveItemToTrashAsync` renamed with `Shell.TrashItemAsync`
62+
- The deprecated extension APIs have been removed: `BrowserWindow.GetAllExtensionsAsync()`, `BrowserWindow.RemoveExtension()`, `BrowserWindow.AddExtensionAsync()`. Use the session APIs instead: `Session.GetAllExtensionsAsync()`, `Session.RemoveExtension()`, `Session.LoadExtensionAsync()`.
63+
* New Feature: singleInstance handle command line arguments [\#520](https://github.com/ElectronNET/Electron.NET/issues/520)
64+
* New Feature: Add WebContents [insertCSS](https://www.electronjs.org/docs/api/web-contents#contentsinsertcsscss-options) functionality (thanks [nfichter](https://github.com/nfichter)) [\#559](https://github.com/ElectronNET/Electron.NET/pull/559)
65+
* New Feature: Allow IpcMain to send IPC messages to BrowserViews (thanks [nfichter](https://github.com/nfichter)) [\#560](https://github.com/ElectronNET/Electron.NET/pull/560)
66+
* New Feature: Add support for proxies that require basic username/password authentication (thanks [nfichter](https://github.com/nfichter)) [\#561](https://github.com/ElectronNET/Electron.NET/pull/561)
67+
* New Feature: Add PostData to LoadURLOptions to allow http-posts in LoadURL calls (thanks [Funkrusha](https://github.com/Funkrusha)) [\#547](https://github.com/ElectronNET/Electron.NET/pull/547)
68+
* Fixed bug: Fix splash screen interaction causing crashes, ghost dragging, and resizable behavior #540 (thanks [MiniguyBrendan](https://github.com/MiniguyBrendan)) [\#540](https://github.com/ElectronNET/Electron.NET/pull/540)
69+
* Fixed bug: Vibrancy serialization fix (thanks [tantumalice](https://github.com/tantumalice)) [\#573](https://github.com/ElectronNET/Electron.NET/pull/573)
6670

6771
# 11.5.1
6872

@@ -150,24 +154,24 @@ Thank you for donation [Phil Seeman](https://github.com/mpnow) ❤
150154

151155
ElectronNET.CLI:
152156
* New Feature: Deactivate PublishReadyToRun for build or start [\#395](https://github.com/ElectronNET/Electron.NET/issues/395)
153-
154-
`electronize build /target win /PublishReadyToRun false`
155-
`electronize start /PublishReadyToRun false`
157+
158+
`electronize build /target win /PublishReadyToRun false`
159+
`electronize start /PublishReadyToRun false`
156160
* Fixed bug: Application window doesn't open after packaging [\#387](https://github.com/ElectronNET/Electron.NET/issues/387)
157161

158162
ElectronNET.API:
159163

160-
* New Feature: NativeImage Support (thanks [ThrDev](https://github.com/ThrDev)) [\#394](https://github.com/ElectronNET/Electron.NET/pull/394)
161-
* New Feature: Update menu items for context menu and system tray on-the-fly. [\#270](https://github.com/ElectronNET/Electron.NET/pull/270)
164+
* New Feature: NativeImage Support (thanks [ThrDev](https://github.com/ThrDev)) [\#394](https://github.com/ElectronNET/Electron.NET/pull/394)
165+
* New Feature: Update menu items for context menu and system tray on-the-fly. [\#270](https://github.com/ElectronNET/Electron.NET/pull/270)
162166

163167

164168
# 8.31.1
165169

166170
ElectronNET.CLI:
167171
* New Feature: Set a name and author of the app in `electron.manifest.json` [\#348](https://github.com/ElectronNET/Electron.NET/issues/348#issuecomment-615977950) [\#310](https://github.com/ElectronNET/Electron.NET/issues/310#issuecomment-617361086)
168-
* New Feature: Live reload (thanks [syedadeel2](https://github.com/syedadeel2)) [\#390](https://github.com/ElectronNET/Electron.NET/pull/390)
172+
* New Feature: Live reload (thanks [syedadeel2](https://github.com/syedadeel2)) [\#390](https://github.com/ElectronNET/Electron.NET/pull/390)
169173
`electronize start /watch`
170-
* New Feature: Every new window will created with an clear cache [\#273](https://github.com/ElectronNET/Electron.NET/issues/273)
174+
* New Feature: Every new window will created with an clear cache [\#273](https://github.com/ElectronNET/Electron.NET/issues/273)
171175
`electronize start /clear-cache`
172176

173177
ElectronNET.API:
@@ -247,7 +251,7 @@ ElectronNET.API:
247251

248252
* Fixed bug: Menu Item visibility [\#257](https://github.com/ElectronNET/Electron.NET/issues/257)
249253
* Fixed bug: electron.manifest.json - singleInstance not working [\#258](https://github.com/ElectronNET/Electron.NET/issues/258)
250-
* Fixed security issue: ASP.NET Core process is now bound to 127.0.0.1 instead of the broader localhost [\#258](https://github.com/ElectronNET/Electron.NET/pull/266)
254+
* Fixed security issue: ASP.NET Core process is now bound to 127.0.0.1 instead of the broader localhost [\#258](https://github.com/ElectronNET/Electron.NET/pull/266)
251255

252256
# 5.22.12
253257

@@ -337,7 +341,7 @@ ElectronNET.CLI:
337341
ElectronNET.CLI:
338342

339343
* nuget packages are now release bits and have the correct assembly version
340-
* Version command
344+
* Version command
341345
* better devCleanup.cmd
342346
* Better Platform Support Issue - thanks to @Petermarcu
343347
* Start Command should now work on OSX/Linux - thanks to @r105m
@@ -369,7 +373,7 @@ ElectronNET.CLI:
369373
* Build for all platforms (well... for newest OSX/Linux/Windows)
370374

371375
ElectronNET.API:
372-
* Moar XML documentation
376+
* Moar XML documentation
373377
* Hybrid support (e.g. running as normal website and electron app)
374378
* Event bugfixing
375379

src/ElectronNET.CLI/Commands/BuildCommand.cs

+5-5
Original file line numberDiff line numberDiff line change
@@ -110,13 +110,13 @@ public Task<bool> ExecuteAsync()
110110
string tempBinPath = Path.Combine(tempPath, "bin");
111111

112112
Console.WriteLine($"Build ASP.NET Core App for {platformInfo.NetCorePublishRid} under {configuration}-Configuration...");
113-
113+
114114
var dotNetPublishFlags = GetDotNetPublishFlags(parser);
115115

116116
var command =
117117
$"dotnet publish -r {platformInfo.NetCorePublishRid} -c \"{configuration}\"{noRestore} --output \"{tempBinPath}\" {string.Join(' ', dotNetPublishFlags.Select(kvp => $"{kvp.Key}={kvp.Value}"))}";
118-
119-
// output the command
118+
119+
// output the command
120120
Console.ForegroundColor = ConsoleColor.Green;
121121
Console.WriteLine(command);
122122
Console.ResetColor();
@@ -205,7 +205,7 @@ public Task<bool> ExecuteAsync()
205205
: $"node build-helper.js {manifestFileName} {version}", tempPath);
206206

207207
Console.WriteLine($"Package Electron App for Platform {platformInfo.ElectronPackerPlatform}...");
208-
ProcessHelper.CmdExecute($"npx electron-builder --config=./bin/electron-builder.json --{platformInfo.ElectronPackerPlatform} --{electronArch} -c.electronVersion=23.2.0 {electronParams}", tempPath);
208+
ProcessHelper.CmdExecute($"npx electron-builder --config=./bin/electron-builder.json --{platformInfo.ElectronPackerPlatform} --{electronArch} -c.electronVersion=30.0.3 {electronParams}", tempPath);
209209

210210
Console.WriteLine("... done");
211211

@@ -260,4 +260,4 @@ private Dictionary<string, string> GetDotNetPublishFlags(SimpleCommandLineParser
260260
return dotNetPublishFlags;
261261
}
262262
}
263-
}
263+
}

src/ElectronNET.Host/package-lock.json

+35-17
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/ElectronNET.Host/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
},
2121
"devDependencies": {
2222
"@types/node": "^18.15.5",
23-
"electron": "^23.2.0",
23+
"electron": "^30.0.3",
2424
"tslint": "^6.1.3",
2525
"typescript": "^5.0.2"
2626
}

src/ElectronNET.WebApp/electron.manifest.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"appId": "com.electronnetapidemos.app",
1010
"productName": "ElectronNET API Demos",
1111
"copyright": "Copyright © 2019-2024",
12-
"buildVersion": "23.6.2",
12+
"buildVersion": "30.0.3",
1313
"compression": "maximum",
1414
"win": {
1515
"icon": "Assets/electron.ico",
@@ -46,4 +46,4 @@
4646
"**/*"
4747
]
4848
}
49-
}
49+
}

0 commit comments

Comments
 (0)