feat(SublimeText2.PackeControl) - new pkg 1.6.3
This commit is contained in:
@@ -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>
|
22
SublimeText2.PackageControl/tools/ChocolateyInstall.ps1
Normal file
22
SublimeText2.PackageControl/tools/ChocolateyInstall.ps1
Normal 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
|
||||
}
|
Reference in New Issue
Block a user