Explorar o código

Merge pull request #149 from nonperforming/patch-1

Powershell-ify build.ps1
BLUELOVETH %!s(int64=2) %!d(string=hai) anos
pai
achega
5832c226fe
Modificáronse 1 ficheiros con 7 adicións e 4 borrados
  1. 7 4
      build.ps1

+ 7 - 4
build.ps1

@@ -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 ".."