From cb6feb525e0c795c1f907edc37cda14578639749 Mon Sep 17 00:00:00 2001 From: Iristyle Date: Mon, 15 Sep 2014 10:35:41 -0700 Subject: [PATCH] chore(ST3): release 3.0.0.3065 --- SublimeText3/SublimeText3.nuspec | 2 +- SublimeText3/tools/chocolateyInstall.ps1 | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/SublimeText3/SublimeText3.nuspec b/SublimeText3/SublimeText3.nuspec index 04a4eb2..bfc3423 100644 --- a/SublimeText3/SublimeText3.nuspec +++ b/SublimeText3/SublimeText3.nuspec @@ -3,7 +3,7 @@ SublimeText3 Sublime Text 3 - 3.0.0.3059 + 3.0.0.3065 Jon Skinner Ethan J. Brown Sublime Text 3 is a sophisticated text editor for code, html and prose. You'll love the slick user interface and extraordinary features. diff --git a/SublimeText3/tools/chocolateyInstall.ps1 b/SublimeText3/tools/chocolateyInstall.ps1 index 183e4af..24bebee 100644 --- a/SublimeText3/tools/chocolateyInstall.ps1 +++ b/SublimeText3/tools/chocolateyInstall.ps1 @@ -1,5 +1,5 @@ $package = 'SublimeText3' -$build = '3059' +$build = '3065' $installFolder = 'Sublime Text 3' try { @@ -10,7 +10,15 @@ try { Select -First 1 # only way to test for installation of this version is by path on disk + $found = $false if ($installedPath -and (Test-Path $installedPath)) + { + $exe = Join-Path $installedPath 'sublime_text.exe' + $version = (Get-Command $exe).FileVersionInfo.ProductVersion + $found = ($version -eq $build) + } + + if ($found) { Write-Host "$package is already installed to $installedPath" }