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) · 691 Bytes
/
Install.ps1
File metadata and controls
16 lines (13 loc) · 691 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") {
$runtimesDirectoryPath = Join-Path $installPath "runtimes"
$projectDirectoryPath = $project.Properties.Item("FullPath").Value
$binDirectoryPath = Join-Path $projectDirectoryPath "bin"
$assemblyFileName = "ChakraCore.dll"
$assemblyArmDestDirectoryPath = Join-Path $binDirectoryPath "arm"
if (!(Test-Path $assemblyArmDestDirectoryPath)) {
New-Item -ItemType Directory -Force -Path $assemblyArmDestDirectoryPath
}
$assemblyArmSourceFilePath = Join-Path $runtimesDirectoryPath ("win8-arm/native/" + $assemblyFileName)
Copy-Item $assemblyArmSourceFilePath $assemblyArmDestDirectoryPath -Force
}