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
16 lines (13 loc) · 675 Bytes
/
Install.ps1
File metadata and controls
16 lines (13 loc) · 675 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
param($installPath, $toolsPath, $package, $project)
if ($project.Type -eq "Web Site") {
$runtimeDirectoryPath = Join-Path $installPath "runtimes/win-arm64/"
$projectDirectoryPath = $project.Properties.Item("FullPath").Value
$binDirectoryPath = Join-Path $projectDirectoryPath "bin"
$assemblyFileName = "ChakraCore.dll"
$assemblyDestDirectoryPath = Join-Path $binDirectoryPath "arm64"
if (!(Test-Path $assemblyDestDirectoryPath)) {
New-Item -ItemType Directory -Force -Path $assemblyDestDirectoryPath
}
$assemblySourceFilePath = Join-Path $runtimeDirectoryPath ("native/" + $assemblyFileName)
Copy-Item $assemblySourceFilePath $assemblyDestDirectoryPath -Force
}