Skip to content

Commit ac301df

Browse files
committed
update README
1 parent d0357d8 commit ac301df

File tree

2 files changed

+17
-33
lines changed

2 files changed

+17
-33
lines changed

foundational-api-samples/hello-world/electron/README.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -143,13 +143,7 @@ Create the `action.js` file at the root folder, and define it like this:
143143
/* /action.js */
144144
// Configures the paths where the .wasm files and other necessary resources for modules are located.
145145
Dynamsoft.Core.CoreModule.engineResourcePaths = {
146-
std: "./node_modules/dynamsoft-capture-vision-std/dist/",
147-
dip: "./node_modules/dynamsoft-image-processing/dist/",
148-
core: "./node_modules/dynamsoft-core/dist/",
149-
license: "./node_modules/dynamsoft-license/dist/",
150-
cvr: "./node_modules/dynamsoft-capture-vision-router/dist/",
151-
dbr: "./node_modules/dynamsoft-barcode-reader/dist/",
152-
dce: "./node_modules/dynamsoft-camera-enhancer/dist/",
146+
dbrBundle: "./node_modules/dynamsoft-barcode-reader-bundle/dist/",
153147
};
154148

155149
/** LICENSE ALERT - README

foundational-api-samples/hello-world/pwa/README.md

Lines changed: 16 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -260,14 +260,7 @@ Add this code below to the `service-worker.js`
260260
```javascript
261261
/* /service-worker.js */
262262
const engineResourcePaths = {
263-
std: "https://cdn.jsdelivr.net/npm/dynamsoft-capture-vision-std@1.4.10/dist/",
264-
dip: "https://cdn.jsdelivr.net/npm/dynamsoft-image-processing@2.4.20/dist/",
265-
core: "https://cdn.jsdelivr.net/npm/dynamsoft-core@3.4.20/dist/",
266-
license: "https://cdn.jsdelivr.net/npm/dynamsoft-license@3.4.20/dist/",
267-
cvr: "https://cdn.jsdelivr.net/npm/dynamsoft-capture-vision-router@2.4.21/dist/",
268-
dbr: "https://cdn.jsdelivr.net/npm/dynamsoft-barcode-reader@10.4.20/dist/",
269-
dce: "https://cdn.jsdelivr.net/npm/dynamsoft-camera-enhancer@4.1.0/dist/",
270-
utility: "https://cdn.jsdelivr.net/npm/dynamsoft-utility@1.4.20/dist/",
263+
dbrBundle: "https://cdn.jsdelivr.net/npm/dynamsoft-barcode-reader-bundle@11.0.3000/dist/",
271264
};
272265

273266
// Files to cache
@@ -277,24 +270,21 @@ const appShellFiles = [
277270
"./dynamsoft-192x192.png",
278271
"./dynamsoft-512x512.png",
279272
"./helloworld-pwa.json",
280-
`${engineResourcePaths.std}std.js`,
281-
`${engineResourcePaths.std}std.wasm`,
282-
`${engineResourcePaths.dip}dip.wasm`,
283-
`${engineResourcePaths.core}core.js`,
284-
`${engineResourcePaths.core}core.worker.js`,
285-
`${engineResourcePaths.core}core.wasm`,
286-
`${engineResourcePaths.license}license.js`,
287-
`${engineResourcePaths.license}dls.license.dialog.html`,
288-
`${engineResourcePaths.license}license.wasm`,
289-
`${engineResourcePaths.utility}utility.js`,
290-
`${engineResourcePaths.dbr}dbr.js`,
291-
`${engineResourcePaths.dbr}dbr.wasm`,
292-
`${engineResourcePaths.dbr}DBR-PresetTemplates.json`,
293-
`${engineResourcePaths.cvr}cvr.js`,
294-
`${engineResourcePaths.cvr}cvr.wasm`,
295-
`${engineResourcePaths.cvr}cvr.worker.js`,
296-
`${engineResourcePaths.dce}dce.js`,
297-
`${engineResourcePaths.dce}dce.ui.html`,
273+
`${engineResourcePaths.dbrBundle}DBR-PresetTemplates.json`,
274+
`${engineResourcePaths.dbrBundle}dce.ui.xml`,
275+
`${engineResourcePaths.dbrBundle}barcode-reader.ui.xml`,
276+
`${engineResourcePaths.dbrBundle}dbr-with-onnx-simd.js`,
277+
`${engineResourcePaths.dbrBundle}dbr-with-onnx-simd.wasm`,
278+
`${engineResourcePaths.dbrBundle}dbr-with-onnx.js`,
279+
`${engineResourcePaths.dbrBundle}dbr-with-onnx.wasm`,
280+
`${engineResourcePaths.dbrBundle}dbr-without-onnx.js`,
281+
`${engineResourcePaths.dbrBundle}dbr-without-onnx.wasm`,
282+
`${engineResourcePaths.dbrBundle}dbr.bundle.esm.js`,
283+
`${engineResourcePaths.dbrBundle}dbr.bundle.js`,
284+
`${engineResourcePaths.dbrBundle}dbr.bundle.mjs`,
285+
`${engineResourcePaths.dbrBundle}dbr.bundle.worker.js`,
286+
`${engineResourcePaths.dbrBundle}dls.license.dialog.html`,
287+
`${engineResourcePaths.dbrBundle}OneDDeblur.data`,
298288
];
299289
```
300290

0 commit comments

Comments
 (0)