From aabdb2b6ca74b7122e6cd676ad24811ff8e1b3ea Mon Sep 17 00:00:00 2001 From: Iristyle Date: Tue, 23 Jul 2013 17:01:20 -0400 Subject: [PATCH] feat: Sublime Text 3 package control 2.0.0-alpha9 - requires a git clone instead of a simple package file download now --- .../SublimeText3.PackageControl.nuspec | 31 +++++++++++++++++++ .../tools/chocolateyInstall.ps1 | 19 ++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 SublimeText3.PackageControl/SublimeText3.PackageControl.nuspec create mode 100644 SublimeText3.PackageControl/tools/chocolateyInstall.ps1 diff --git a/SublimeText3.PackageControl/SublimeText3.PackageControl.nuspec b/SublimeText3.PackageControl/SublimeText3.PackageControl.nuspec new file mode 100644 index 0000000..1bf1cef --- /dev/null +++ b/SublimeText3.PackageControl/SublimeText3.PackageControl.nuspec @@ -0,0 +1,31 @@ + + + + SublimeText3.PackageControl + Sublime Text 3 Package Control + 2.0.0.20130723 + Will Bond + Ethan J Brown + A full-featured package manager that helps discovering, installing, updating and removing packages for Sublime Text 3. 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/SublimeText3.PackageControl/tools/chocolateyInstall.ps1 b/SublimeText3.PackageControl/tools/chocolateyInstall.ps1 new file mode 100644 index 0000000..5ac542d --- /dev/null +++ b/SublimeText3.PackageControl/tools/chocolateyInstall.ps1 @@ -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 +}