fix(scripts/build): incorrect binary path for non-windows

This commit is contained in:
PalmDevs 2025-05-05 01:45:35 +07:00
parent 51f86d7d6f
commit 5b79e41526
No known key found for this signature in database
GPG key ID: 6FAE8F8677ACA8BA

View file

@ -128,8 +128,8 @@ function swcPlugin() {
function hermesCPlugin({ afterComplete, flags }: { flags?: string[]; afterComplete?: () => void } = {}) {
const paths = {
win32: 'hermesc.exe',
darwin: 'darwin/hermesc',
linux: 'linux/hermesc',
darwin: 'hermesc',
linux: 'hermesc',
}
if (!(process.platform in paths)) throw new Error(`Unsupported platform: ${process.platform}`)