feat: call build script

This commit is contained in:
TrèsAbhi committed 2024-02-20 09:51:11 -06:00
1 parent 53b4c0db69
commit b222cbe41c
15 files changed
+35 -17

No files matched your search

+9
View File
@@ -1,4 +1,5 @@
import { config } from 'dotenv';
import { readdir } from 'fs/promises';
import { argv } from 'process';
import { boosterIcons } from './boosterIcons';
import { camouflageIcons } from './camouflageIcons';
@@ -21,6 +22,14 @@ const targets = argv
?.split('=')[1]
.split(',');
const production = argv.includes('--production');
const isDepot = argv.includes('--depot');
export const DATA = isDepot
? await (async () => {
const [installationVersion] = await readdir('depots/444202');
return `depots/444202/${installationVersion}/Data`;
})()
: 'C:/Program Files (x86)/Steam/steamapps/common/World of Tanks Blitz/Data';
if (!targets && !allTargets) throw new Error('No target(s) specified');