You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -190,17 +191,19 @@ Replace the `NwBuilder` initialization with a function
190
191
+await nwbuild({
191
192
```
192
193
193
-
The `files` property has been renamed to `srcDir`. As the name suggests, it does not taken in any globbing patterns. Structure of the NW app if left up to the user.
194
+
The `files` property has been renamed to `srcDir`.S
194
195
195
196
```patch
196
-
- files: ["./nwapp", "./other/**/*.js"],
197
-
+ srcDir: "./nwapp",
197
+
- files: ["./nwapp/**/*", "./other/**/*.js"],
198
+
+ srcDir: "./nwapp/**/* ./other/**/*.js",
198
199
```
199
200
200
-
Add the `mode` option.
201
+
Add the `mode` option and remove the now redundant `nw.build` function call.
201
202
202
203
```patch
203
204
+ mode: "build",
205
+
206
+
-nw.build();
204
207
```
205
208
206
209
The `platforms` option has been removed and replaced with `platform` and `arch`. Notice that one `nwbuild` function call now creates one build only. Refer to the [documentation](./index.md) for valid `platform` and `arch` values.
@@ -211,6 +214,8 @@ The `platforms` option has been removed and replaced with `platform` and `arch`.
211
214
+ arch: "x64",
212
215
```
213
216
217
+
> If platform is Linux then even if Windows or MacOS specific `app.*` properties are defined, only the Linux `app.*` properties will be parsed. Multiple platform `app.*` properties have been shown in this guide to cater to all platforms.
218
+
214
219
The `buildDir` option has been rename to `outDir`.
0 commit comments