Skip to content

Commit c4c0bba

Browse files
Update README.md
1 parent 12b46a9 commit c4c0bba

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

README.md

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,15 +134,23 @@ In this YouTube video, we show you how you can create a new project, use the Ele
134134
Here you need the Electron.NET CLI too. Type following command in your ASP.NET Core folder:
135135

136136
```
137-
dotnet electronize build
137+
dotnet electronize build /target win
138138
```
139139

140-
In your default setting we just build the application for the OS you are running (Windows builds Windows, macOS builds macOS etc.), but this can be changed with:
140+
There are additional platforms available:
141141

142142
```
143-
dotnet electronize build win
144-
dotnet electronize build osx
145-
dotnet electronize build linux
143+
dotnet electronize build /target win
144+
dotnet electronize build /target osx
145+
dotnet electronize build /target linux
146+
```
147+
148+
Those three "default" targets will produce x64 packages for those platforms.
149+
150+
For certain NuGet packages or certain scenarios you may want to build a pure x86 application. To support those things you can define the desired [.NET Core runtime](https://docs.microsoft.com/en-us/dotnet/core/rid-catalog), the [electron platform](https://github.com/electron-userland/electron-packager/blob/master/docs/api.md#platform) and [electron architecture](https://github.com/electron-userland/electron-packager/blob/master/docs/api.md#arch) like this:
151+
152+
```
153+
dotnet electronize build build /target custom win7-x86;win32 /electron-arch ia32
146154
```
147155

148156
The end result should be an electron app under your __/bin/desktop__ folder.

0 commit comments

Comments
 (0)