Powershell-ify build.ps1

Convert *nix commands to PowerShell commands
This commit is contained in:
Non 2023-10-05 19:16:40 +13:00 committed by GitHub
parent d540af3043
commit c18821fc42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,9 +1,12 @@
if (Test-Path build) {
Remove-Item -Recurse -Force build
}
mkdir build
cd build
New-Item -ItemType Directory -Path build
Push-Location build
cmake ..
cmake --build . --config Release
cp Release/main.exe ../
cp Release/pocketpy.dll ../
Copy-Item "Release\main.exe" -Destination ".." # Note: NTFS uses backslash (\) instead of slashes (*nix, /)
Copy-Item "Release\pocketpy.dll" -Destination ".."