diff --git a/app/api/batch/add-info-icons.ts b/app/api/batch/add-info-icons.ts index 9422ff35..7ca8abb7 100644 --- a/app/api/batch/add-info-icons.ts +++ b/app/api/batch/add-info-icons.ts @@ -13,7 +13,7 @@ export class AddInfoIcons console.log('Running batch FixHtmlLabels') // Read database - let databaseToFix = './frontend/src/assets/database/' + process.argv[2]; + let databaseToFix = './assets/database/' + process.argv[2]; console.log('Adding info icons srpite infos and sprite modifiers to ' + databaseToFix); @@ -25,8 +25,6 @@ export class AddInfoIcons let rawdata = fs.readFileSync(path).toString(); let database = JSON.parse(rawdata) as BExport; - //these can be found in the 'manual' folder under 'ui' in assets/images - //they may need to be copied from that location into the main images folder let spriteModifiersNames: string[] = [ 'element_tile_back', 'gas_tile_front', diff --git a/app/api/batch/fix-html-labels.ts b/app/api/batch/fix-html-labels.ts index 5ede5c39..512e1b0f 100644 --- a/app/api/batch/fix-html-labels.ts +++ b/app/api/batch/fix-html-labels.ts @@ -16,7 +16,7 @@ export class FixHtmlLabels this.dom = new JSDOM(''); // Read database - let databaseToFix = './frontend/src/assets/database/' + process.argv[2]; + let databaseToFix = './assets/database/' + process.argv[2]; console.log('Removing html tags from ' + databaseToFix); diff --git a/app/api/batch/test-canvas.ts b/app/api/batch/test-canvas.ts index 10cdd989..67e44c42 100644 --- a/app/api/batch/test-canvas.ts +++ b/app/api/batch/test-canvas.ts @@ -23,7 +23,7 @@ export class TestCanvas //implements PixiUtil constructor() { // Read database - let rawdata = fs.readFileSync('./frontend/src/assets/database/database-white.json').toString(); + let rawdata = fs.readFileSync('./assets/database/database-white.json').toString(); let json = JSON.parse(rawdata); ImageSource.init(); diff --git a/app/api/batch/update-thumbnail.ts b/app/api/batch/update-thumbnail.ts index 87f8b395..32df3ae3 100644 --- a/app/api/batch/update-thumbnail.ts +++ b/app/api/batch/update-thumbnail.ts @@ -19,7 +19,7 @@ export class UpdateThumbnail console.log(process.env.ENV_NAME); // Read database - let rawdata = fs.readFileSync('./frontend/src/assets/database/database-repack.json').toString(); + let rawdata = fs.readFileSync('./assets/database/database-repack.json').toString(); let json = JSON.parse(rawdata); ImageSource.init();