resources added and win build impl
This commit is contained in:
parent
1d68336a06
commit
e4b721115f
8 changed files with 8 additions and 8 deletions
|
|
@ -21,7 +21,7 @@ export async function fillTemplate(log, objectData) {
|
|||
let documentInfo;
|
||||
try {
|
||||
// Load config file.
|
||||
let ConfigFile = fs.readFileSync('resources/config/config.json')
|
||||
let ConfigFile = fs.readFileSync('resources/files/config/config.json')
|
||||
configJson = JSON.parse(ConfigFile)
|
||||
|
||||
// Choose the template for selected document type.
|
||||
|
|
@ -46,7 +46,7 @@ export async function fillTemplate(log, objectData) {
|
|||
break;
|
||||
}
|
||||
// Read template.
|
||||
const template = fs.readFileSync(path.join('resources/templates/', documentInfo.templateFile));
|
||||
const template = fs.readFileSync(path.join('resources/files/templates/', documentInfo.templateFile));
|
||||
|
||||
// Create report.
|
||||
buffer = await createReport({
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
// Config
|
||||
import configImport from '/resources/config/config.json'
|
||||
import configImport from '/home/rbrt/WebstormProjects/marvin/resources/files/config/config.json'
|
||||
|
||||
// Components
|
||||
import {Log} from "../components/Log";
|
||||
|
|
@ -49,7 +49,7 @@ export default function Settings() {
|
|||
}
|
||||
if (rootDirFromWindow) {
|
||||
let message;
|
||||
await writeFile('resources/config/config.json', JSON.stringify(config2Safe, null, 2), (err) => {
|
||||
await writeFile('resources/files/config/config.json', JSON.stringify(config2Safe, null, 2), (err) => {
|
||||
if (err) {
|
||||
message = err;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue