mirror of
https://github.com/purocean/yn.git
synced 2026-09-24 15:46:02 +08:00
修正路径问题
This commit is contained in:
@@ -7,7 +7,8 @@
|
||||
"bin/**/*",
|
||||
"help/**/*",
|
||||
"dist/resources/**/*",
|
||||
"node_modules/node-plantuml/**/*"
|
||||
"node_modules/node-plantuml/**/*",
|
||||
"node_modules/node-nailgun-server/**/*"
|
||||
],
|
||||
"files": [
|
||||
"./bin/**",
|
||||
|
||||
@@ -15,4 +15,4 @@ export const HELP_DIR = path.join(__dirname, '../../help')
|
||||
export const ASSETS_DIR = path.join(__dirname, '../assets')
|
||||
|
||||
export const BIN_DIR = path.join(__dirname, '../../bin').replace('app.asar', 'app.asar.unpacked')
|
||||
export const RESOURCES_DIR = path.join(__dirname, '../../resources').replace('app.asar', 'app.asar.unpacked')
|
||||
export const RESOURCES_DIR = path.join(__dirname, '../resources').replace('app.asar', 'app.asar.unpacked')
|
||||
|
||||
@@ -12,7 +12,7 @@ const convert = async (html: string, type: string) => {
|
||||
const path = os.tmpdir() + `/yn_convert_${new Date().getTime()}.${type}`
|
||||
|
||||
return new Promise((resolve, reject) => {
|
||||
const args = ['-f', 'html', '-o', path, '--reference-doc', docxTplPath]
|
||||
const args = ['-f', 'html', '-o', path, '--reference-doc', docxTplPath]
|
||||
console.log(binPath, args)
|
||||
const process = spawn(binPath, args)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user