diff --git a/SublimeText2.PackageControl/SublimeText2.PackageControl.nuspec b/SublimeText2.PackageControl/SublimeText2.PackageControl.nuspec new file mode 100644 index 0000000..150fb02 --- /dev/null +++ b/SublimeText2.PackageControl/SublimeText2.PackageControl.nuspec @@ -0,0 +1,29 @@ + + + + SublimeText2.PackageControl + Sublime Text 2 Package Control + 1.6.3 + Will Bond + Ethan J Brown + A full-featured package manager that helps discovering, installing, updating and removing packages for Sublime Text 2. It features an automatic upgrader and supports GitHub, BitBucket and a full channel/repository system. + * Easily find, install, upgrade and remove packages without restarting Sublime Text +* Keeps installed packages up-to-date with an auto-upgrade feature +* Downloads packages from GitHub, BitBucket and the custom JSON channel/repository system +* Handles updating packages cloned from GitHub and BitBucket via Git and Hg +* Provides commands for enabling and disabling packages +* Includes a command to bundle any package directory into a .sublime-package file. + Helper package to install Sublime Package Control. + http://wbond.net/sublime_packages/package_control + sublime text editor package + http://www.sublimetext.com/eula + false + https://github.com/Iristyle/ChocolateyPackages/raw/master/SublimeText2.app/Sublime_Text.png + + + + + + + + diff --git a/SublimeText2.PackageControl/tools/ChocolateyInstall.ps1 b/SublimeText2.PackageControl/tools/ChocolateyInstall.ps1 new file mode 100644 index 0000000..f09b780 --- /dev/null +++ b/SublimeText2.PackageControl/tools/ChocolateyInstall.ps1 @@ -0,0 +1,22 @@ +try { + $package = 'SublimeText2.PackageControl' + + # install package control + $installPath = Join-Path $Env:ProgramFiles 'Sublime Text 2' + $sublimeDataPath = Join-Path ([Environment]::GetFolderPath('ApplicationData')) 'Sublime Text 2' + $packagesPath = Join-Path $sublimeDataPath 'Installed Packages' + if (!(Test-Path $packagesPath)) { New-Item $packagesPath -Type Directory } + $packageControl = Join-Path $packagesPath 'Package Control.sublime-package' + + if (!(Test-Path $packageControl)) + { + # http://wbond.net/sublime_packages/package_control/installation + $packageUrl = 'http://sublime.wbond.net/Package%20Control.sublime-package' + Get-ChocolateyWebFile -url $packageUrl -fileFullPath $packageControl + } + + Write-ChocolateySuccess $package +} catch { + Write-ChocolateyFailure $package "$($_.Exception.Message)" + throw +}