File tree Expand file tree Collapse file tree 5 files changed +8
-8
lines changed
Expand file tree Collapse file tree 5 files changed +8
-8
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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" ) ;
Original file line number Diff line number Diff line change 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" />
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ echo Bundle ASP.NET Core Project into EXE
22
33cd ElectronNET.WebApp
44dotnet restore
5- dotnet publish -r win10 -x64 --output ../ElectronNET.Host/bin/
5+ dotnet publish -r win -x64 --output ../ElectronNET.Host/bin/
66
77echo Start Electron with bundled EXE
88cd ..\ElectronNET.Host
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ echo Bundle ASP.NET Core Project into EXE
22
33cd ElectronNET.WebApp
44dotnet restore
5- dotnet publish -r osx.10.11 -x64 --output ../ElectronNET.Host/bin/
5+ dotnet publish -r osx-x64 --output ../ElectronNET.Host/bin/
66
77echo Start Electron with bundled EXE
88cd ../ElectronNET.Host
You can’t perform that action at this time.
0 commit comments