Skip to content

Commit

Permalink
Merge pull request ElectronNET#38 from Petermarcu/master
Browse files Browse the repository at this point in the history
Move to generic RIDs
  • Loading branch information
robertmuehsig authored Nov 4, 2017
2 parents 6cca9fa + f981c04 commit 0b351bb
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions ElectronNET.CLI/Commands/BuildCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,22 +41,22 @@ public Task<bool> ExecuteAsync()
switch (desiredPlatform)
{
case "win":
netCorePublishRid = "win10-x64";
netCorePublishRid = "win-x64";
electronPackerPlatform = "win32";
break;
case "osx":
netCorePublishRid = "osx-x64";
electronPackerPlatform = "darwin";
break;
case "linux":
netCorePublishRid = "ubuntu-x64";
netCorePublishRid = "linux-x64";
electronPackerPlatform = "linux";
break;
default:
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
{
desiredPlatform = "win";
netCorePublishRid = "win10-x64";
netCorePublishRid = "win-x64";
electronPackerPlatform = "win32";
}
if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
Expand All @@ -68,7 +68,7 @@ public Task<bool> ExecuteAsync()
if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
{
desiredPlatform = "linux";
netCorePublishRid = "ubuntu-x64";
netCorePublishRid = "linux-x64";
electronPackerPlatform = "linux";
}

Expand Down
2 changes: 1 addition & 1 deletion ElectronNET.CLI/Commands/StartElectronCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public Task<bool> ExecuteAsync()
}

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

EmbeddedFileHelper.DeployEmbeddedFile(tempPath, "main.js");
EmbeddedFileHelper.DeployEmbeddedFile(tempPath, "package.json");
Expand Down
2 changes: 1 addition & 1 deletion ElectronNET.WebApp/ElectronNET.WebApp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>netcoreapp2.0</TargetFramework>
<RuntimeIdentifiers>win10-x64</RuntimeIdentifiers>
<RuntimeIdentifiers>win-x64</RuntimeIdentifiers>
</PropertyGroup>
<ItemGroup>
<Compile Remove="Controllers\ManageWindowsController.cs" />
Expand Down
2 changes: 1 addition & 1 deletion start.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ echo Bundle ASP.NET Core Project into EXE

cd ElectronNET.WebApp
dotnet restore
dotnet publish -r win10-x64 --output ../ElectronNET.Host/bin/
dotnet publish -r win-x64 --output ../ElectronNET.Host/bin/

echo Start Electron with bundled EXE
cd ..\ElectronNET.Host
Expand Down
2 changes: 1 addition & 1 deletion start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ echo Bundle ASP.NET Core Project into EXE

cd ElectronNET.WebApp
dotnet restore
dotnet publish -r osx.10.11-x64 --output ../ElectronNET.Host/bin/
dotnet publish -r osx-x64 --output ../ElectronNET.Host/bin/

echo Start Electron with bundled EXE
cd ../ElectronNET.Host
Expand Down

0 comments on commit 0b351bb

Please sign in to comment.