Skip to content

Commit

Permalink
AU: 1 updated - androidstudio
Browse files Browse the repository at this point in the history
  • Loading branch information
dgalbraith committed Feb 2, 2021
1 parent cc47292 commit 43044bf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions automatic/androidstudio/androidstudio.nuspec
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Do not remove this test for UTF-8: if “Ω” doesn’t appear as greek uppercase omega letter enclosed in quotation marks, you should use an editor that supports UTF-8, not this one. -->
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
<metadata>
<id>androidstudio</id>
<version>4.1.1.0</version>
<version>4.1.2.0</version>
<packageSourceUrl>https://github.com/dgalbraith/chocolatey-packages/tree/master/automatic/androidstudio</packageSourceUrl>
<owners>dgalbraith, Justin James, ludicrousByte</owners>
<title>Android Studio (Install)</title>
Expand All @@ -15,7 +15,7 @@
<requireLicenseAcceptance>true</requireLicenseAcceptance>
<docsUrl>https://developer.android.com/studio/intro/</docsUrl>
<bugTrackerUrl>https://developer.android.com/studio/known-issues</bugTrackerUrl>
<tags>google android studio androidstudio cross-platform admin</tags>
<tags>google android studio androidstudio cross-platform</tags>
<summary>Android Studio is the official IDE for Android development.</summary>
<description>
Android Studio is the official IDE for Android development.
Expand All @@ -28,13 +28,13 @@ Android Studio is the official IDE for Android development.
* Intelligent code editor
* Flexible build system
* Realtime profilers

## Package Parameters
The following package parameters can be set:

* `/PinnedToTaskbar` - this put a shortcut on your taskbar to Android Studio.
* `/AddToDesktop` - this puts a shortcut on your desktop to Android Studio.

These parameters can be passed to the installer with the use of `--params`.
For example: `--params '"/PinnedToTaskbar /AddToDesktop"'`.

Expand Down
10 changes: 5 additions & 5 deletions automatic/androidstudio/tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
$ErrorActionPreference = 'Stop';
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
$url64 = 'https://redirector.gvt1.com/edgedl/android/studio/install/4.1.1.0/android-studio-ide-201.6953283-windows.exe'
$checksum64 = '88d1576b5f672e67035bc4cde55697cf4cc0e63f9c9740f82f4ef8e09ddb05d4'
$url64 = 'https://redirector.gvt1.com/edgedl/android/studio/install/4.1.2.0/android-studio-ide-201.7042882-windows.exe'
$checksum64 = '22CDCFEFFABE384E788B679C5C03238684FA3F1F4C73E2A3744F2FE5AAB7F97F'

$packageArgs = @{
packageName = $env:ChocolateyPackageName
Expand All @@ -18,14 +18,14 @@ $pp = Get-PackageParameters

Install-ChocolateyPackage @packageArgs

if ($pp.PinnedToTaskbar) {
if ($pp.PinnedToTaskbar) {
Write-Host "Param: PinToTaskbar - Pinning Android Studio to Taskbar..."
Install-ChocolateyPinnedTaskBarItem -TargetFilePath "${env:ProgramFiles}\Android\Android Studio\bin\studio64.exe"
}

if ($pp.AddToDesktop) {
if ($pp.AddToDesktop) {
Write-Host "Param: AddToDesktop - Adding Android Studio Shortcut to Desktop..."

$desktopPath = [Environment]::GetFolderPath("Desktop")

Install-ChocolateyShortcut `
Expand Down

0 comments on commit 43044bf

Please sign in to comment.