mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-14 17:13:49 -07:00
Updated exceptron driver
This commit is contained in:
parent
e8122685b2
commit
a2d4b59002
58 changed files with 28345 additions and 241 deletions
20
packages/jQuery.1.6.1/Tools/install.ps1
vendored
Normal file
20
packages/jQuery.1.6.1/Tools/install.ps1
vendored
Normal file
|
@ -0,0 +1,20 @@
|
|||
param($installPath, $toolsPath, $package, $project)
|
||||
|
||||
$extId = "JScriptIntelliSenseParaExtension.Microsoft.039ee76c-3c7f-4281-ad23-f6528ab18623"
|
||||
$extManager = [Microsoft.VisualStudio.Shell.Package]::GetGlobalService([Microsoft.VisualStudio.ExtensionManager.SVsExtensionManager])
|
||||
$copyOverParaFile = $false
|
||||
try {
|
||||
$copyOverParaFile = $extManager.GetInstalledExtension($extId).State -eq "Enabled"
|
||||
}
|
||||
catch [Microsoft.VisualStudio.ExtensionManager.NotInstalledException] {
|
||||
#Extension is not installed
|
||||
}
|
||||
|
||||
if ($copyOverParaFile) {
|
||||
#Copy the -vsdoc-para file over the -vsdoc file
|
||||
#$projectFolder = Split-Path -Parent $project.FileName
|
||||
$projectFolder = $project.Properties.Item("FullPath").Value
|
||||
$paraVsDocPath = Join-Path $toolsPath jquery-1.6.1-vsdoc-para.js
|
||||
$vsDocPath = Join-Path $projectFolder Scripts\jquery-1.6.1-vsdoc.js
|
||||
Copy-Item $paraVsDocPath $vsDocPath -Force
|
||||
}
|
6938
packages/jQuery.1.6.1/Tools/jquery-1.6.1-vsdoc-para.js
vendored
Normal file
6938
packages/jQuery.1.6.1/Tools/jquery-1.6.1-vsdoc-para.js
vendored
Normal file
File diff suppressed because it is too large
Load diff
46
packages/jQuery.1.6.1/Tools/uninstall.ps1
vendored
Normal file
46
packages/jQuery.1.6.1/Tools/uninstall.ps1
vendored
Normal file
|
@ -0,0 +1,46 @@
|
|||
param($installPath, $toolsPath, $package, $project)
|
||||
|
||||
#Forcibly delete the -vsdoc file
|
||||
#$projectFolder = Split-Path -Parent $project.FileName
|
||||
$projectFolder = $project.Properties.Item("FullPath").Value
|
||||
$projVsDocPath = Join-Path $projectFolder Scripts\jquery-1.6.1-vsdoc.js
|
||||
$origVsDocPath = Join-Path $installPath Content\Scripts\jquery-1.6.1-vsdoc.js
|
||||
$origVsDocParaPath = Join-Path $toolsPath jquery-1.6.1-vsdoc-para.js
|
||||
|
||||
function Get-Checksum($file) {
|
||||
$cryptoProvider = New-Object "System.Security.Cryptography.MD5CryptoServiceProvider"
|
||||
|
||||
$fileInfo = Get-Item "$file"
|
||||
trap { ;
|
||||
continue } $stream = $fileInfo.OpenRead()
|
||||
if ($? -eq $false) {
|
||||
#Write-Host "Couldn't open file for reading"
|
||||
return $null
|
||||
}
|
||||
|
||||
$bytes = $cryptoProvider.ComputeHash($stream)
|
||||
$checksum = ''
|
||||
foreach ($byte in $bytes) {
|
||||
$checksum += $byte.ToString('x2')
|
||||
}
|
||||
|
||||
$stream.Close() | Out-Null
|
||||
|
||||
return $checksum
|
||||
}
|
||||
|
||||
if (Test-Path $projVsDocPath) {
|
||||
#Copy the original -vsdoc file over the -vsdoc file modified during install
|
||||
#Normal uninstall logic will then kick in
|
||||
|
||||
if ((Get-Checksum $projVsDocPath) -eq (Get-Checksum $origVsDocParaPath)) {
|
||||
#Write-Host "Copying orig vsdoc file over"
|
||||
Copy-Item $origVsDocPath $projVsDocPath -Force
|
||||
}
|
||||
else {
|
||||
#Write-Host "vsdoc file has changed"
|
||||
}
|
||||
}
|
||||
else {
|
||||
#Write-Host "vsdoc file not found in project"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue