patched this in ext-spx before, do it here instead

This commit is contained in:
DubbleClick 2025-05-30 21:21:50 +07:00
parent 5382362168
commit 2a5915f4b6

View File

@ -5,6 +5,7 @@ declare(strict_types=1);
namespace SPC\builder\extension;
use SPC\builder\Extension;
use SPC\store\FileSystem;
use SPC\util\CustomExt;
#[CustomExt('spx')]
@ -18,4 +19,14 @@ class spx extends Extension
}
return $arg;
}
public function patchBeforeConfigure(): bool
{
FileSystem::replaceFileStr(
$this->source_dir . '/Makefile.frag',
'@cp -r assets/web-ui/*',
'@cp -r ' . $this->source_dir . '/assets/web-ui/*',
);
return true;
}
}