mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-11-09 11:52:08 +08:00
23 lines
489 B
JavaScript
23 lines
489 B
JavaScript
import { execFileSync } from 'node:child_process'
|
|
import path from 'node:path'
|
|
|
|
const ROOT = path.resolve(import.meta.dirname, '..')
|
|
execFileSync(
|
|
'cargo',
|
|
['run', '-p', 'clash-verge', '--bin', 'frontend-contract', '--locked', '-q'],
|
|
{
|
|
cwd: ROOT,
|
|
stdio: 'inherit',
|
|
},
|
|
)
|
|
execFileSync(
|
|
process.execPath,
|
|
[
|
|
path.join(ROOT, 'node_modules/@biomejs/biome/bin/biome'),
|
|
'format',
|
|
'--write',
|
|
'src/services/bindings.ts',
|
|
],
|
|
{ cwd: ROOT, stdio: 'inherit' },
|
|
)
|