diff --git a/dist.js b/dist.js index 7b193f96..4b4a85c5 100644 --- a/dist.js +++ b/dist.js @@ -154,10 +154,10 @@ const options = { // ...excludedFiles.map(pathName => `!${pathName.replace('**/', '')}`), ], extraResources: [ - { - from: 'public/libs/wiki/wiki-worker.js', - to: 'app.asar.unpacked/wiki-worker.js', - }, + // { + // from: 'public/libs/wiki/wiki-worker.js', + // to: 'app.asar.unpacked/wiki-worker.js', + // }, // ...excludedFiles.map(pathName => ({ // from: pathName.replace('**/', '').replace('/**/*', ''), // to: `app.asar.unpacked/${pathName.replace('**/', '').replace('/**/*', '')}`, diff --git a/public/libs/wiki/wiki-worker-mamager.js b/public/libs/wiki/wiki-worker-mamager.js index c2259dc1..a56f88db 100644 --- a/public/libs/wiki/wiki-worker-mamager.js +++ b/public/libs/wiki/wiki-worker-mamager.js @@ -29,9 +29,9 @@ const wikiWorkers = {}; // don't forget to config option in `dist.js` https://github.com/electron/electron/issues/18540#issuecomment-652430001 // to copy all worker.js and its local dependence to `process.resourcesPath` -const WIKI_WORKER_PATH = isDev - ? path.resolve(__dirname, './wiki-worker.js') - : path.resolve(process.resourcesPath, 'app.asar.unpacked', 'wiki-worker.js'); +const WIKI_WORKER_PATH = /* isDev + ? */ path.resolve(__dirname, './wiki-worker.js'); +// : path.resolve(process.resourcesPath, 'app.asar.unpacked', 'wiki-worker.js'); module.exports.startWiki = function startWiki(homePath, tiddlyWikiPort, userName) { return new Promise((resolve, reject) => {