feat: Sublime Text 3 package control 2.0.0-alpha9
- requires a git clone instead of a simple package file download now
This commit is contained in:
19
SublimeText3.PackageControl/tools/chocolateyInstall.ps1
Normal file
19
SublimeText3.PackageControl/tools/chocolateyInstall.ps1
Normal file
@@ -0,0 +1,19 @@
|
||||
function Get-CurrentDirectory
|
||||
{
|
||||
$thisName = $MyInvocation.MyCommand.Name
|
||||
[IO.Path]::GetDirectoryName((Get-Content function:$thisName).File)
|
||||
}
|
||||
|
||||
try {
|
||||
$package = 'SublimeText3.PackageControl'
|
||||
|
||||
$current = Get-CurrentDirectory
|
||||
. (Join-Path $current 'SublimeHelpers.ps1')
|
||||
|
||||
Install-SublimePackageControl -Version 3
|
||||
|
||||
Write-ChocolateySuccess $package
|
||||
} catch {
|
||||
Write-ChocolateyFailure $package "$($_.Exception.Message)"
|
||||
throw
|
||||
}
|
Reference in New Issue
Block a user