diff --git a/build.ps1 b/build.ps1 index a2e5c38..f59a19f 100644 --- a/build.ps1 +++ b/build.ps1 @@ -20,15 +20,15 @@ $msvcVersion = $latestVersionFolder.Name # Copy std.ixx to the build directory $sourceFilePath = Join-Path -Path $directoryPath -ChildPath "$msvcVersion\modules\std.ixx" $destinationFilePath = ".\build\std.cppm" -Copy-Item -Path $sourceFilePath /Destination $destinationFilePath +Copy-Item -Path $sourceFilePath -Destination $destinationFilePath $vulkanBasePath = "C:\VulkanSDK" # Get all folders (assumes version format like 14.50.35717) -$folders = Get-ChildItem -Path $vulkanBasePath /Directory +$folders = Get-ChildItem -Path $vulkanBasePath -Directory # Sort the folders by version and select the latest one -$latestVulkanVersion = $folders | Sort-Object { [Version]$_.Name } /Descending | Select-Object -First 1 +$latestVulkanVersion = $folders | Sort-Object { [Version]$_.Name } -Descending | Select-Object -First 1 # Store the latest version folder name and combine it with the base path to get the full path to Include $vulkanSDKPath = Join-Path -Path $vulkanBasePath -ChildPath (Join-Path -Path $latestVulkanVersion.Name -ChildPath "Include")