2024-01-25 12:45:13 -06:00
|
|
|
import { readDVPLFile } from '../../src/core/blitz/readDVPLFile';
|
2024-04-23 09:57:59 -05:00
|
|
|
import { commitAssets } from '../../src/core/blitzkit/commitAssets';
|
|
|
|
|
import { FileChange } from '../../src/core/blitzkit/commitMultipleFiles';
|
2024-08-14 14:04:06 -05:00
|
|
|
import { DATA } from './constants';
|
2024-01-25 12:45:13 -06:00
|
|
|
|
|
|
|
|
export async function camouflageIcons(production: boolean) {
|
|
|
|
|
console.log('Building camouflage icons...');
|
|
|
|
|
const content = await readDVPLFile(
|
2024-08-14 14:04:06 -05:00
|
|
|
`${DATA}/Gfx/UI/Hangar/IconCamouflage.packed.webp.dvpl`,
|
2024-01-25 12:45:13 -06:00
|
|
|
).then((content) => content.toString('base64'));
|
|
|
|
|
const changes: FileChange[] = [
|
|
|
|
|
{
|
|
|
|
|
content,
|
|
|
|
|
encoding: 'base64',
|
|
|
|
|
path: 'icons/camo.webp',
|
|
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
await commitAssets('camo icons', changes, production);
|
|
|
|
|
}
|