mirror of
https://github.com/tiddly-gittly/TidGi-Desktop.git
synced 2026-02-08 08:43:12 -08:00
fix: move wiki-worker back after disable asar
This commit is contained in:
parent
dcc3cc9c45
commit
f0fbcbeb23
2 changed files with 7 additions and 7 deletions
8
dist.js
8
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('/**/*', '')}`,
|
||||
|
|
|
|||
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue