fix: wiki template path in dist build

This commit is contained in:
Lin Onetwo 2020-06-25 15:00:37 +08:00
parent d67cf2df45
commit e55b7db39a

View file

@ -7,7 +7,7 @@ const REACT_PATH = isDev
// .app/Contents/Resources/wiki/
const TIDDLYWIKI_FOLDER_PATH = isDev
? path.resolve(__dirname, '..', '..', 'template', 'wiki')
: path.resolve(process.resourcesPath, 'wiki');
: path.resolve(process.resourcesPath, '..', 'wiki');
const ICON_PATH = isDev
? path.resolve(__dirname, '..', 'icon.png')
: `file://${path.resolve(__dirname, '..', 'icon.png')}`;