@stlite/desktop 0.68.0 → 0.69.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -177,6 +177,22 @@ In the example below, `"."` on the host OS file system is mounted to the `/mnt`
|
|
|
177
177
|
}
|
|
178
178
|
```
|
|
179
179
|
|
|
180
|
+
You can use the placeholders such as `{{home}}`, `{{userData}}`, `{{temp}}`, etc. in the host OS paths to specify the paths dynamically. Check the [Electron's `app.getPath` documentation](https://www.electronjs.org/docs/latest/api/app#appgetpathname) for the available path names because the placeholders are resolved to the paths returned by `app.getPath`.
|
|
181
|
+
|
|
182
|
+
```json
|
|
183
|
+
{
|
|
184
|
+
// ...other fields...
|
|
185
|
+
"stlite": {
|
|
186
|
+
"desktop": {
|
|
187
|
+
"nodeJsWorker": true,
|
|
188
|
+
"nodefsMountpoints": {
|
|
189
|
+
"/foo": "{{home}}/foo" // e.g. The host OS path is resolved to "/home/user/foo" on Linux
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
```
|
|
195
|
+
|
|
180
196
|
### NodeJS worker mode
|
|
181
197
|
|
|
182
198
|
`@stlite/desktop` runs your app on [Electron](https://www.electronjs.org/) as a desktop app.
|