Skip to content

Commit bb6f08a

Browse files
committed
fix: Removed unused parameter from prebuild script.
1 parent c4f900a commit bb6f08a

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

lib/NativeCode/DynamicLibraryLoaderHelper/NativeRender/NativeRender.vcxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
</ClCompile>
8383
<PreBuildEvent>
8484
<!-- Execute the prebuild powershell command -->
85-
<Command>powershell -NoProfile -ExecutionPolicy Bypass -File "$(ProjectDir)scripts\prebuild.ps1" -Configuration "$(Configuration)" -NormalizedPlatform "$(NormalizedPlatform)" -OutputUnityAssetsDirectory "$(OutputUnityAssetsDirectory)" -EOS_SDK_DLL_NAME "$(EOS_SDK_DLL_NAME)" -STEAM_API_DLL_NAME "$(STEAM_API_DLL_NAME)" -TargetDir $(TargetDir) -SteamLibraryDirectory "$(SteamLibraryDirectory)" -SolutionDir "$(SolutionDir)"</Command>
85+
<Command>powershell -NoProfile -ExecutionPolicy Bypass -File "$(ProjectDir)scripts\prebuild.ps1" -Configuration "$(Configuration)" -OutputUnityAssetsDirectory "$(OutputUnityAssetsDirectory)" -EOS_SDK_DLL_NAME "$(EOS_SDK_DLL_NAME)" -STEAM_API_DLL_NAME "$(STEAM_API_DLL_NAME)" -TargetDir $(TargetDir) -SteamLibraryDirectory "$(SteamLibraryDirectory)" -SolutionDir "$(SolutionDir)"</Command>
8686
</PreBuildEvent>
8787
<PostBuildEvent>
8888
<!-- Copy the meta file stored in the solution directory, since it's values have been properly set in such a way that Unity interacts with the DLL in the intended manner. -->

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

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
param(
22
[string]$Configuration,
3-
[string]$NormalizedPlatform,
43
[string]$OutputUnityAssetsDirectory,
54
[string]$EOS_SDK_DLL_NAME,
65
[string]$STEAM_API_DLL_NAME,
@@ -11,15 +10,6 @@ param(
1110

1211
Write-Host "=============== Start of Prebuild Script =========================="
1312

14-
Write-Host "Configuration: $Configuration"
15-
Write-Host "NormalizedPlatform: $NormalizedPlatform"
16-
Write-Host "OutputUnityAssetsDirectory: $OutputUnityAssetsDirectory"
17-
Write-Host "EOS_SDK_DLL_NAME: $EOS_SDK_DLL_NAME"
18-
Write-Host "STEAM_API_DLL_NAME: $STEAM_API_DLL_NAME"
19-
Write-Host "TargetDir: $TargetDir"
20-
Write-Host "SteamLibraryDirectory: $SteamLibraryDirectory"
21-
Write-Host "SolutionDir: $SolutionDir"
22-
2313
# If in debug mode, we want to copy the eos sdk dll, the steam app id file, and
2414
# The steam DLL into the output directory
2515
if ($Configuration -eq "Debug")
@@ -35,7 +25,7 @@ if ($Configuration -eq "Debug")
3525

3626
Write-Host ('Copying file "{0}" to "{1}".' -f $itemBeingCopied.FullName, $TargetDir);
3727

38-
Copy-Item -LiteralPath $itemBeingCopied.FullName -Destination $TargetDir;
28+
Copy-Item -LiteralPath $itemBeingCopied.FullName -Destination $TargetDir -Force;
3929
}
4030
}
4131

0 commit comments

Comments
 (0)