feat(SublimeText2.PackeControl) - new pkg 1.6.3

This commit is contained in:
Iristyle
2013-04-03 23:59:04 -04:00
parent 4482d900d2
commit 656be7d066
2 changed files with 51 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>SublimeText2.PackageControl</id>
<title>Sublime Text 2 Package Control</title>
<version>1.6.3</version>
<authors>Will Bond</authors>
<owners>Ethan J Brown</owners>
<summary>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.</summary>
<description>* 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.</description>
<releaseNotes>Helper package to install Sublime Package Control.</releaseNotes>
<projectUrl>http://wbond.net/sublime_packages/package_control</projectUrl>
<tags>sublime text editor package</tags>
<licenseUrl>http://www.sublimetext.com/eula</licenseUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<iconUrl>https://github.com/Iristyle/ChocolateyPackages/raw/master/SublimeText2.app/Sublime_Text.png</iconUrl>
<dependencies>
<dependency id="sublimetext2" />
</dependencies>
</metadata>
<files>
<file src="tools\**" target="tools" />
</files>
</package>

View File

@@ -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
}