소스 검색

Merge branch 'blueloveTH:main' into build

Pranav Jain 3 년 전
부모
커밋
9a0e9d7a62
1개의 변경된 파일과 7개의 추가작업 그리고 4개의 파일을 삭제
  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 ".."