From f981c04159161e1d67db6ba152be0ced93ed69d9 Mon Sep 17 00:00:00 2001 From: Peter Marcu Date: Sat, 4 Nov 2017 09:25:43 -0700 Subject: [PATCH] Move to generic RIDs --- ElectronNET.CLI/Commands/BuildCommand.cs | 8 ++++---- ElectronNET.CLI/Commands/StartElectronCommand.cs | 2 +- ElectronNET.WebApp/ElectronNET.WebApp.csproj | 2 +- start.cmd | 2 +- start.sh | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/ElectronNET.CLI/Commands/BuildCommand.cs b/ElectronNET.CLI/Commands/BuildCommand.cs index 3637e26..fef7a0f 100644 --- a/ElectronNET.CLI/Commands/BuildCommand.cs +++ b/ElectronNET.CLI/Commands/BuildCommand.cs @@ -41,7 +41,7 @@ namespace ElectronNET.CLI.Commands switch (desiredPlatform) { case "win": - netCorePublishRid = "win10-x64"; + netCorePublishRid = "win-x64"; electronPackerPlatform = "win32"; break; case "osx": @@ -49,14 +49,14 @@ namespace ElectronNET.CLI.Commands 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)) @@ -68,7 +68,7 @@ namespace ElectronNET.CLI.Commands if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) { desiredPlatform = "linux"; - netCorePublishRid = "ubuntu-x64"; + netCorePublishRid = "linux-x64"; electronPackerPlatform = "linux"; } diff --git a/ElectronNET.CLI/Commands/StartElectronCommand.cs b/ElectronNET.CLI/Commands/StartElectronCommand.cs index 5f0adee..6a96177 100644 --- a/ElectronNET.CLI/Commands/StartElectronCommand.cs +++ b/ElectronNET.CLI/Commands/StartElectronCommand.cs @@ -47,7 +47,7 @@ namespace ElectronNET.CLI.Commands } 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"); diff --git a/ElectronNET.WebApp/ElectronNET.WebApp.csproj b/ElectronNET.WebApp/ElectronNET.WebApp.csproj index d6b4472..f116621 100644 --- a/ElectronNET.WebApp/ElectronNET.WebApp.csproj +++ b/ElectronNET.WebApp/ElectronNET.WebApp.csproj @@ -2,7 +2,7 @@ netcoreapp2.0 - win10-x64 + win-x64 diff --git a/start.cmd b/start.cmd index 4a918dd..a898fde 100644 --- a/start.cmd +++ b/start.cmd @@ -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 diff --git a/start.sh b/start.sh index 3420ddf..ac13c7e 100755 --- a/start.sh +++ b/start.sh @@ -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