Skip to content

Commit 8a99b9f

Browse files
committed
Take rid
1 parent 1472dd7 commit 8a99b9f

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

eng/helix/content/InstallAppRuntime.ps1

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,21 @@
99
The directory to install the shared framework to.
1010
.PARAMETER Framework
1111
The framework directory to copy the shared framework from.
12+
.PARAMETER RuntimeIdentifier
13+
The runtime identifier for the shared framework.
1214
#>
1315
param(
1416
[Parameter(Mandatory = $true)]
1517
$AppRuntimePath,
1618

1719
[Parameter(Mandatory = $true)]
1820
$InstallDir,
21+
22+
[Parameter(Mandatory = $true)]
23+
$Framework,
1924

2025
[Parameter(Mandatory = $true)]
21-
$Framework)
26+
$RuntimeIdentifier)
2227

2328
$ErrorActionPreference = 'Stop'
2429
$ProgressPreference = 'SilentlyContinue' # Workaround PowerShell/PowerShell#2138
@@ -44,6 +49,6 @@ else {
4449
Get-ChildItem -Path ".\tmpRuntime" -Recurse
4550

4651
Write-Host "Copying managed files to $InstallDir"
47-
Copy-Item -Path ".\tmpRuntime\runtimes\win-x64\lib\$Framework\*" $InstallDir
52+
Copy-Item -Path ".\tmpRuntime\runtimes\$RuntimeIdentifier\lib\$Framework\*" $InstallDir
4853
Write-Host "Copying native files to $InstallDir"
49-
Copy-Item -Path ".\tmpRuntime\runtimes\win-x64\native\*" $InstallDir
54+
Copy-Item -Path ".\tmpRuntime\runtimes\$RuntimeIdentifier\native\*" $InstallDir

0 commit comments

Comments
 (0)