Skip to content

Commit 00d456f

Browse files
authored
Merge pull request toksaitov#8 from hhocker/FastDownload
Forgot to put the aria2 details in Remove and updated readme
2 parents a7b250b + a1eb22a commit 00d456f

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

Readme.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ portable. To run the scripts you need PowerShell version 2.0 or higher.
66

77
* __Setup-AndroidStudioPortable.ps1__
88

9+
+ Downloads aria2 and unpacks its archive.
910
+ Downloads lessmsi and unpacks its archive.
1011
+ Downloads 7-Zip and unpacks its installer with lessmsi.
1112
+ Downloads the Android SDK and unpacks its archive with 7-Zip as .Net
@@ -14,7 +15,7 @@ portable. To run the scripts you need PowerShell version 2.0 or higher.
1415
+ Downloads the Oracle JDK installer and unpacks it with 7-Zip.
1516
+ Unpacks `.pack` files in the JDK directory into `.jar` files with
1617
the unpack200 utility bundled with the JDK.
17-
+ Removes all lessmsi and 7-Zip files with the SDK, Studio, and JDK
18+
+ Removes all aria2, lessmsi and 7-Zip files with the SDK, Studio, and JDK
1819
archives and installers.
1920
+ Generates a batch file to start an Android Studio instance without
2021
PowerShell.
@@ -40,7 +41,7 @@ portable. To run the scripts you need PowerShell version 2.0 or higher.
4041

4142
* __Remove-AndroidStudioPortable.ps1__
4243

43-
+ Removes all lessmsi and 7-Zip files with the SDK, Studio, and JDK
44+
+ Removes all aria2, lessmsi and 7-Zip files with the SDK, Studio, and JDK
4445
archives and installers.
4546
+ Removes the unpacked SDK, Studio, and JDK directories but leaves the
4647
portable home directory along.

Remove-AndroidStudioPortable.ps1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,16 @@
2222
# Remove temporary files.
2323
#
2424

25+
$aria2RootDirectory =
26+
Get-RelativeRootDirectory -RelativePath $aria2Directory
2527
$LessMSIRootDirectory =
2628
Get-RelativeRootDirectory -RelativePath $LessMSIDirectory
2729
$7zRootDirectory =
2830
Get-RelativeRootDirectory -RelativePath $7zDirectory
2931

3032
$TemporaryFiles = @(
33+
$aria2Archive,
34+
$aria2RootDirectory,
3135
$LessMSIArchive,
3236
$LessMSIRootDirectory,
3337
$7zInstaller,

Setup-AndroidStudioPortable.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,14 +222,16 @@ foreach ($VMConfigurationFile in $AndroidStudioVMConfigurationFiles)
222222
#
223223
# Remove temporary files.
224224
#
225+
$aria2RootDirectory =
226+
Get-RelativeRootDirectory -RelativePath $aria2Directory
225227
$LessMSIRootDirectory =
226228
Get-RelativeRootDirectory -RelativePath $LessMSIDirectory
227229
$7zRootDirectory =
228230
Get-RelativeRootDirectory -RelativePath $7zDirectory
229231

230232
$TemporaryFiles = @(
231233
$aria2Archive,
232-
$aria2Directory,
234+
$aria2RootDirectory,
233235
$LessMSIArchive,
234236
$LessMSIRootDirectory,
235237
$7zInstaller,

0 commit comments

Comments
 (0)