Skip to content

Commit 6301288

Browse files
committed
fix: Allow the steam dll to not exist in the prebuild step.
1 parent bb6f08a commit 6301288

File tree

1 file changed

+5
-2
lines changed
  • lib/NativeCode/DynamicLibraryLoaderHelper/NativeRender/scripts

1 file changed

+5
-2
lines changed

lib/NativeCode/DynamicLibraryLoaderHelper/NativeRender/scripts/prebuild.ps1

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,13 @@ if ($Configuration -eq "Debug")
2121
)
2222

2323
$filesToCopy | ForEach-Object {
24-
$itemBeingCopied = Get-Item $_;
24+
if (-Not(Test-Path -LiteralPath $_)) {
25+
Write-Host ("WARNING: Could not copy file '{0}' because it does not exist. This might not be a problem." -f $_);
26+
continue
27+
}
2528

29+
$itemBeingCopied = Get-Item $_;
2630
Write-Host ('Copying file "{0}" to "{1}".' -f $itemBeingCopied.FullName, $TargetDir);
27-
2831
Copy-Item -LiteralPath $itemBeingCopied.FullName -Destination $TargetDir -Force;
2932
}
3033
}

0 commit comments

Comments
 (0)