aseprite/build.ps1

16 lines
474 B
PowerShell
Raw Normal View History

2024-10-28 21:49:43 +00:00
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"
}