mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 20:19:49 +02:00
fix: tighter all targets integration
This commit is contained in:
1 parent
9a44b1fcfb
commit
2ce083222e
1 file changed
+8
-8
@@ -70,9 +70,9 @@ const targets = argv
|
|||||||
?.split('=')[1]
|
?.split('=')[1]
|
||||||
.split(',');
|
.split(',');
|
||||||
|
|
||||||
if (!targets) throw new Error('No target(s) specified');
|
if (!targets && !allTargets) throw new Error('No target(s) specified');
|
||||||
|
|
||||||
if (allTargets || targets.includes('tankDefinitions')) {
|
if (allTargets || targets?.includes('tankDefinitions')) {
|
||||||
console.log('Building tank definitions...');
|
console.log('Building tank definitions...');
|
||||||
|
|
||||||
const tankDefinitions: TankDefinitions = {};
|
const tankDefinitions: TankDefinitions = {};
|
||||||
@@ -147,8 +147,8 @@ if (allTargets || targets.includes('tankDefinitions')) {
|
|||||||
|
|
||||||
if (
|
if (
|
||||||
allTargets ||
|
allTargets ||
|
||||||
targets.includes('bigTankIcons') ||
|
targets?.includes('bigTankIcons') ||
|
||||||
targets.includes('smallTankIcons')
|
targets?.includes('smallTankIcons')
|
||||||
) {
|
) {
|
||||||
console.log('Building tank icons...');
|
console.log('Building tank icons...');
|
||||||
|
|
||||||
@@ -177,14 +177,14 @@ if (
|
|||||||
.replace(/~res:\//, '')
|
.replace(/~res:\//, '')
|
||||||
.replace(/\..+/, '')}.packed.webp.dvpl`;
|
.replace(/\..+/, '')}.packed.webp.dvpl`;
|
||||||
|
|
||||||
if (targets.includes('bigTankIcons')) {
|
if (allTargets || targets?.includes('bigTankIcons')) {
|
||||||
changes.push({
|
changes.push({
|
||||||
content: await readBase64DVPL(big),
|
content: await readBase64DVPL(big),
|
||||||
encoding: 'base64',
|
encoding: 'base64',
|
||||||
path: `icons/big/${id}.webp`,
|
path: `icons/big/${id}.webp`,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (targets.includes('smallTankIcons')) {
|
if (allTargets || targets?.includes('smallTankIcons')) {
|
||||||
changes.push({
|
changes.push({
|
||||||
content: await readBase64DVPL(small),
|
content: await readBase64DVPL(small),
|
||||||
encoding: 'base64',
|
encoding: 'base64',
|
||||||
@@ -206,7 +206,7 @@ if (
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (allTargets || targets.includes('scratchedFlags')) {
|
if (allTargets || targets?.includes('scratchedFlags')) {
|
||||||
console.log('Building scratched flags...');
|
console.log('Building scratched flags...');
|
||||||
|
|
||||||
const flags = await readdir(`${DATA}/${DOI.flags}`);
|
const flags = await readdir(`${DATA}/${DOI.flags}`);
|
||||||
@@ -239,7 +239,7 @@ if (allTargets || targets.includes('scratchedFlags')) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (allTargets || targets.includes('circleFlags')) {
|
if (allTargets || targets?.includes('circleFlags')) {
|
||||||
const flags = await readdir(`${DATA}/${DOI.flags}`);
|
const flags = await readdir(`${DATA}/${DOI.flags}`);
|
||||||
|
|
||||||
commitMultipleFiles(
|
commitMultipleFiles(
|
||||||
|
|||||||
Reference in new issue
Block a user