forked from Taritsyn/JavaScriptEngineSwitcher
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInstall.ps1
More file actions
18 lines (15 loc) · 811 Bytes
/
Install.ps1
File metadata and controls
18 lines (15 loc) · 811 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
param($installPath, $toolsPath, $package, $project)
if ($project.Type -eq "Web Site") {
$runtimesDirectoryPath = Join-Path $installPath "runtimes"
$projectDirectoryPath = $project.Properties.Item("FullPath").Value
$binDirectoryPath = Join-Path $projectDirectoryPath "bin"
$assembly64FileNames = "ClearScriptV8-64.dll", "v8-libcpp-x64.dll", "v8-base-x64.dll", "v8-x64.dll"
$assembly64DestDirectoryPath = Join-Path $binDirectoryPath "x64"
if (!(Test-Path $assembly64DestDirectoryPath)) {
New-Item -ItemType Directory -Force -Path $assembly64DestDirectoryPath
}
foreach ($assembly64FileName in $assembly64FileNames) {
$assembly64SourceFilePath = Join-Path $runtimesDirectoryPath ("win-x64/native/" + $assembly64FileName)
Copy-Item $assembly64SourceFilePath $assembly64DestDirectoryPath -Force
}
}