Skip to content

Commit 10e95af

Browse files
Merge branch 'master' into dev/AutoUpdate
2 parents 552b433 + 68505f8 commit 10e95af

20 files changed

+2143
-44
lines changed

.github/FUNDING.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# These are supported funding model platforms
2+
3+
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4+
patreon: # Replace with a single Patreon username
5+
open_collective: # Replace with a single Open Collective username
6+
ko_fi: # Replace with a single Ko-fi username
7+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
liberapay: # Replace with a single Liberapay username
10+
issuehunt: # Replace with a single IssueHunt username
11+
otechie: # Replace with a single Otechie username
12+
custom: https://donorbox.org/electron-net

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
language: csharp
22
mono: none
3-
dotnet: 2.1.300
3+
dist: xenial
4+
dotnet: 2.2
45
before_script:
56
- export PATH="$PATH:/home/travis/.dotnet/tools"
67
- npm install electron-packager --global

Changelog.md

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,31 @@
1-
# not release
1+
# Not released
2+
3+
# 5.22.14
4+
5+
ElectronNET.CLI:
6+
7+
* Fixed bug: Build fails with latest electron-builder version [\#288](https://github.com/ElectronNET/Electron.NET/issues/288)
8+
9+
ElectronNET.API:
10+
11+
* Fixed bug: Electron tray icon TypeError ([Electron original issue](https://github.com/electron/electron/issues/7657)) (thanks [Tum4ik](https://github.com/Tum4ik))
12+
* Fixed bug: Wrong tray icon path in the application built via `electronize build` command (thanks [Tum4ik](https://github.com/Tum4ik))
13+
* Fixed bug: fix async issue where same port is considered open [\#261](https://github.com/ElectronNET/Electron.NET/issues/261) (thanks [netpoetica](https://github.com/netpoetica))
14+
15+
ElectronNET.WebApp:
16+
17+
* Fixed usage of the `Electron.Tray.Show` according fixed bugs in the ElectronNET.CLI (thanks [Tum4ik](https://github.com/Tum4ik))
18+
19+
20+
# Released
21+
22+
# 5.22.13
23+
24+
ElectronNET.API:
25+
26+
* Fixed bug: Menu Item visibility [\#257](https://github.com/ElectronNET/Electron.NET/issues/257)
27+
* Fixed bug: electron.manifest.json - singleInstance not working [\#258](https://github.com/ElectronNET/Electron.NET/issues/258)
28+
* 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)
229

330
# 5.22.12
431

ElectronNET.API/ElectronNET.API.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>netcoreapp2.1</TargetFramework>
4+
<TargetFramework>netcoreapp2.2</TargetFramework>
55
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
66
<PackageOutputPath>..\artifacts</PackageOutputPath>
77
<PackageId>ElectronNET.API</PackageId>

ElectronNET.API/Entities/WebPreferences.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public class WebPreferences
1515
public bool DevTools { get; set; } = true;
1616

1717
/// <summary>
18-
/// Whether node integration is enabled. Default is true.
18+
/// Whether node integration is enabled. Required to enable IPC. Default is true.
1919
/// </summary>
2020
[DefaultValue(true)]
2121
public bool NodeIntegration { get; set; } = true;

ElectronNET.API/WebHostBuilderExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public static IWebHostBuilder UseElectron(this IWebHostBuilder builder, string[]
3131
if(HybridSupport.IsElectronActive)
3232
{
3333
builder.UseContentRoot(AppDomain.CurrentDomain.BaseDirectory)
34-
.UseUrls("http://localhost:" + BridgeSettings.WebPort);
34+
.UseUrls("http://127.0.0.1:" + BridgeSettings.WebPort);
3535
}
3636

3737
return builder;

ElectronNET.CLI/Commands/Actions/GetTargetPlatformInformation.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ public static GetTargetPlatformInformationResult Do(string desiredPlatform, stri
2121
{
2222
case "win":
2323
netCorePublishRid = "win-x64";
24-
electronPackerPlatform = "win32";
24+
electronPackerPlatform = "win";
2525
break;
2626
case "osx":
2727
netCorePublishRid = "osx-x64";
28-
electronPackerPlatform = "darwin";
28+
electronPackerPlatform = "mac";
2929
break;
3030
case "linux":
3131
netCorePublishRid = "linux-x64";
@@ -44,12 +44,12 @@ public static GetTargetPlatformInformationResult Do(string desiredPlatform, stri
4444
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
4545
{
4646
netCorePublishRid = $"win-x{(Environment.Is64BitOperatingSystem ? "64" : "86")}";
47-
electronPackerPlatform = "win32";
47+
electronPackerPlatform = "win";
4848
}
4949
if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
5050
{
5151
netCorePublishRid = "osx-x64";
52-
electronPackerPlatform = "darwin";
52+
electronPackerPlatform = "mac";
5353
}
5454
if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
5555
{

ElectronNET.CLI/Commands/BuildCommand.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,6 @@ public Task<bool> ExecuteAsync()
154154

155155
Console.WriteLine("Executing electron magic in this directory: " + buildPath);
156156

157-
// ToDo: Need a solution for --asar support
158-
159157
string electronArch = "x64";
160158
if (parser.Arguments.ContainsKey(_paramElectronArch))
161159
{
@@ -173,7 +171,7 @@ public Task<bool> ExecuteAsync()
173171
ProcessHelper.CmdExecute($"node build-helper.js", tempPath);
174172

175173
Console.WriteLine($"Package Electron App for Platform {platformInfo.ElectronPackerPlatform}...");
176-
ProcessHelper.CmdExecute($"electron-builder . --config=./bin/electron-builder.json --platform={platformInfo.ElectronPackerPlatform} --arch={electronArch} {electronParams}", tempPath);
174+
ProcessHelper.CmdExecute($"electron-builder . --config=./bin/electron-builder.json --{platformInfo.ElectronPackerPlatform} --{electronArch} -c.electronVersion=5.0.8 {electronParams}", tempPath);
177175

178176
Console.WriteLine("... done");
179177

ElectronNET.CLI/ElectronNET.CLI.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>netcoreapp2.1</TargetFramework>
5+
<TargetFramework>netcoreapp2.2</TargetFramework>
66
<AssemblyName>electronize</AssemblyName>
77

88
<PackageType>DotnetCliTool</PackageType>

ElectronNET.Host/api/tray.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ElectronNET.Host/api/tray.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ export = (socket: SocketIO.Socket) => {
6060
electronSocket.emit('trayMenuItemClicked', id);
6161
});
6262

63-
const imagePath = path.join(__dirname.replace('api', ''), 'bin', image);
63+
const trayIcon = nativeImage.createFromPath(image);
6464

65-
tray = new Tray(imagePath);
65+
tray = new Tray(trayIcon);
6666
tray.setContextMenu(menu);
6767
});
6868

ElectronNET.Host/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,10 @@ function startSocketApiBridge(port) {
9999
server.listen(port, 'localhost');
100100
server.on('listening', function () {
101101
console.log('Electron Socket started on port %s at %s', server.address().port, server.address().address);
102+
// Now that socket connection is established, we can guarantee port will not be open for portscanner
103+
startAspCoreBackend(port);
102104
});
103105

104-
startAspCoreBackend(port);
105-
106106
io.on('connection', (socket) => {
107107
global['electronsocket'] = socket;
108108
global['electronsocket'].setMaxListeners(0);

0 commit comments

Comments
 (0)