Skip to content

Commit 0b351bb

Browse files
Merge pull request #38 from Petermarcu/master
Move to generic RIDs
2 parents 6cca9fa + f981c04 commit 0b351bb

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

ElectronNET.CLI/Commands/BuildCommand.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,22 +41,22 @@ public Task<bool> ExecuteAsync()
4141
switch (desiredPlatform)
4242
{
4343
case "win":
44-
netCorePublishRid = "win10-x64";
44+
netCorePublishRid = "win-x64";
4545
electronPackerPlatform = "win32";
4646
break;
4747
case "osx":
4848
netCorePublishRid = "osx-x64";
4949
electronPackerPlatform = "darwin";
5050
break;
5151
case "linux":
52-
netCorePublishRid = "ubuntu-x64";
52+
netCorePublishRid = "linux-x64";
5353
electronPackerPlatform = "linux";
5454
break;
5555
default:
5656
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
5757
{
5858
desiredPlatform = "win";
59-
netCorePublishRid = "win10-x64";
59+
netCorePublishRid = "win-x64";
6060
electronPackerPlatform = "win32";
6161
}
6262
if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
@@ -68,7 +68,7 @@ public Task<bool> ExecuteAsync()
6868
if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
6969
{
7070
desiredPlatform = "linux";
71-
netCorePublishRid = "ubuntu-x64";
71+
netCorePublishRid = "linux-x64";
7272
electronPackerPlatform = "linux";
7373
}
7474

ElectronNET.CLI/Commands/StartElectronCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public Task<bool> ExecuteAsync()
4747
}
4848

4949
string tempBinPath = Path.Combine(tempPath, "bin");
50-
ProcessHelper.CmdExecute($"dotnet publish -r win10-x64 --output \"{tempBinPath}\"", aspCoreProjectPath);
50+
ProcessHelper.CmdExecute($"dotnet publish -r win-x64 --output \"{tempBinPath}\"", aspCoreProjectPath);
5151

5252
EmbeddedFileHelper.DeployEmbeddedFile(tempPath, "main.js");
5353
EmbeddedFileHelper.DeployEmbeddedFile(tempPath, "package.json");

ElectronNET.WebApp/ElectronNET.WebApp.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Project Sdk="Microsoft.NET.Sdk.Web">
33
<PropertyGroup>
44
<TargetFramework>netcoreapp2.0</TargetFramework>
5-
<RuntimeIdentifiers>win10-x64</RuntimeIdentifiers>
5+
<RuntimeIdentifiers>win-x64</RuntimeIdentifiers>
66
</PropertyGroup>
77
<ItemGroup>
88
<Compile Remove="Controllers\ManageWindowsController.cs" />

start.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ echo Bundle ASP.NET Core Project into EXE
22

33
cd ElectronNET.WebApp
44
dotnet restore
5-
dotnet publish -r win10-x64 --output ../ElectronNET.Host/bin/
5+
dotnet publish -r win-x64 --output ../ElectronNET.Host/bin/
66

77
echo Start Electron with bundled EXE
88
cd ..\ElectronNET.Host

start.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ echo Bundle ASP.NET Core Project into EXE
22

33
cd ElectronNET.WebApp
44
dotnet restore
5-
dotnet publish -r osx.10.11-x64 --output ../ElectronNET.Host/bin/
5+
dotnet publish -r osx-x64 --output ../ElectronNET.Host/bin/
66

77
echo Start Electron with bundled EXE
88
cd ../ElectronNET.Host

0 commit comments

Comments
 (0)