修正路径问题

This commit is contained in:
purocean
2021-01-30 22:47:59 +08:00
parent f37ab7d1c2
commit c6349fff59
3 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -7,7 +7,8 @@
"bin/**/*",
"help/**/*",
"dist/resources/**/*",
"node_modules/node-plantuml/**/*"
"node_modules/node-plantuml/**/*",
"node_modules/node-nailgun-server/**/*"
],
"files": [
"./bin/**",
+1 -1
View File
@@ -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')
+1 -1
View File
@@ -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)