Browse Source

Powershell-ify build.ps1

Convert *nix commands to PowerShell commands
Non 2 years ago
parent
commit
c18821fc42
1 changed files with 7 additions and 4 deletions
  1. 7 4
      build.ps1

+ 7 - 4
build.ps1

@@ -1,9 +1,12 @@
 if (Test-Path build) {
 if (Test-Path build) {
     Remove-Item -Recurse -Force build
     Remove-Item -Recurse -Force build
 }
 }
-mkdir build
-cd build
+
+New-Item -ItemType Directory -Path build
+Push-Location build
+
 cmake ..
 cmake ..
 cmake --build . --config Release
 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 ".."