18 lines
445 B
TypeScript
18 lines
445 B
TypeScript
import { NexeCompiler } from '../compiler'
|
|
|
|
export default async function buildFixes(compiler: NexeCompiler, next: () => Promise<void>) {
|
|
if (!compiler.target.version.startsWith('8.2')) {
|
|
return next()
|
|
}
|
|
|
|
const file = await compiler.readFileAsync('./tools/msvs/find_python.cmd')
|
|
|
|
await compiler.replaceInFileAsync(
|
|
'./tools/msvs/find_python.cmd',
|
|
'%p%python.exe -V 2>&1',
|
|
'"%p%python.exe" -V 2>&1'
|
|
)
|
|
|
|
return next()
|
|
}
|