aseprite/build.ps1
2024-11-07 17:40:52 -03:00

16 lines
474 B
PowerShell

if (Test-Path "$env:ProgramFiles\Git\bin") {
$env:Path = "$env:ProgramFiles\Git\bin;$env:ProgramFiles\Git\mingw64\bin" + $env:Path
}
elseif (Test-Path "$env:ProgramFiles(x86)\Git\bin") {
$env:Path = "$env:ProgramFiles(x86)\Git\bin;$env:ProgramFiles(x86)\Git\mingw64\bin;" + $env:Path
}
try {
sh.exe build.sh $args
}
catch {
echo "bash.exe doesn't found"
echo "`r`nInstall Git Bash from:"
echo "`r`n https://gitforwindows.org/`r`n"
}