feat: release AndroidStudio 0.2.130.737825
- will attempt to uninstall 0.1.x if it's found see updating instructions here that warn of issues installing over top http://developer.android.com/sdk/installing/studio.html
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
<metadata>
|
<metadata>
|
||||||
<id>AndroidStudio</id>
|
<id>AndroidStudio</id>
|
||||||
<title>Android Studio</title>
|
<title>Android Studio</title>
|
||||||
<version>0.1.130.677228</version>
|
<version>0.2.130.737825</version>
|
||||||
<authors>Google</authors>
|
<authors>Google</authors>
|
||||||
<owners>Ethan J Brown</owners>
|
<owners>Ethan J Brown</owners>
|
||||||
<summary>Android Studio is a new Android development environment based on IntelliJ IDEA.</summary>
|
<summary>Android Studio is a new Android development environment based on IntelliJ IDEA.</summary>
|
||||||
|
@@ -1,15 +1,33 @@
|
|||||||
$package = 'AndroidStudio'
|
$package = 'AndroidStudio'
|
||||||
|
$version = 130.737825
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$params = @{
|
|
||||||
PackageName = $package;
|
|
||||||
FileType = 'exe';
|
|
||||||
#uses NSIS installer - http://nsis.sourceforge.net/Docs/Chapter3.html
|
|
||||||
SilentArgs = '/S';
|
|
||||||
Url = 'http://dl.google.com/android/studio/android-studio-bundle-130.677228-windows.exe';
|
|
||||||
}
|
|
||||||
|
|
||||||
Install-ChocolateyPackage @params
|
$build = Join-Path $Env:LOCALAPPDATA 'Android\android-studio\build.txt'
|
||||||
|
|
||||||
|
if ((Test-Path $build) -and ((Get-Content $build) -match '.*?(\d+\.\d+)'))
|
||||||
|
{
|
||||||
|
$installedVersion = [decimal]$Matches[1]
|
||||||
|
if ($installedVersion -lt $version)
|
||||||
|
{
|
||||||
|
Write-Host "Uninstalling existing version $installedVersion"
|
||||||
|
. .\chocolateyUninstall.ps1
|
||||||
|
|
||||||
|
$params = @{
|
||||||
|
PackageName = $package;
|
||||||
|
FileType = 'exe';
|
||||||
|
#uses NSIS installer - http://nsis.sourceforge.net/Docs/Chapter3.html
|
||||||
|
SilentArgs = '/S';
|
||||||
|
Url = 'http://dl.google.com/android/studio/android-studio-bundle-130.737825-windows.exe';
|
||||||
|
}
|
||||||
|
|
||||||
|
Install-ChocolateyPackage @params
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Write-Host "$package $installedVersion already installed!"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Write-ChocolateySuccess $package
|
Write-ChocolateySuccess $package
|
||||||
} catch {
|
} catch {
|
||||||
|
@@ -2,11 +2,6 @@ $package = 'AndroidStudio'
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
$installPath = (Join-Path "${Env:\ProgramFiles(x86)}" 'AndroidStudio'),
|
|
||||||
(Join-Path 'Env:ProgramFiles' 'AndroidStudio') |
|
|
||||||
? { Test-Path $_ } |
|
|
||||||
Select -First 1
|
|
||||||
|
|
||||||
$uninstall = Join-Path $Env:LOCALAPPDATA 'Android\android-studio\uninstall.exe'
|
$uninstall = Join-Path $Env:LOCALAPPDATA 'Android\android-studio\uninstall.exe'
|
||||||
|
|
||||||
#uses NSIS installer - http://nsis.sourceforge.net/Docs/Chapter3.html
|
#uses NSIS installer - http://nsis.sourceforge.net/Docs/Chapter3.html
|
||||||
|
Reference in New Issue
Block a user