Created
May 22, 2011 07:43
-
-
Save kirb/985260 to your computer and use it in GitHub Desktop.
Eclipse + Android Portable Launcher (AutoIt)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#cs -------------------------------------- | |
# | Eclipse + Android Portable | | |
# | Written by Ad@m | | |
# | https://gist.github.com/gists/985260 | | |
#ce -------------------------------------- | |
#NoTrayIcon ;Disable tray icon | |
#Region ;**** Directives created by AutoIt3Wrapper_GUI **** | |
#AutoIt3Wrapper_Icon=appicon.ico | |
#AutoIt3Wrapper_Outfile=..\..\EclipseAndroidPortable.exe | |
#AutoIt3Wrapper_UseX64=n | |
#AutoIt3Wrapper_Res_Description=Eclipse Portable | |
#AutoIt3Wrapper_Res_Fileversion=1.6.6.2 | |
#AutoIt3Wrapper_Res_FileVersion_AutoIncrement=y | |
#AutoIt3Wrapper_Res_LegalCopyright=PortableApps.com & Contributors | |
#AutoIt3Wrapper_Run_Tidy=y | |
#AutoIt3Wrapper_Run_Obfuscator=y | |
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** | |
#NoAutoIt3Execute ;Prevent other AutoIt scripts being run | |
$drive = StringRegExpReplace(@ScriptDir, "(.*):\\(.*)", "$1:") ;Find out drive letter | |
$oldpath = EnvGet("PATH") ;Save the old PATH | |
EnvSet("CLASSPATH", ".") ;No idea what this variable does. | |
EnvSet("PATH", $oldpath & ";" & $drive & "\PortableApps\EclipsePortable\App\android-sdk-windows\tools\") ;Add Android tools to PATH | |
RunWait($drive & "\PortableApps\EclipsePortable\EclipsePortable.exe") ;Run Eclipse Portable | |
RunWait($drive & "\PortableApps\EclipsePortable\App\android-sdk-windows\platform-tools\adb.exe kill-server", Default, @SW_HIDE) ;Stop the Android debug server | |
EnvSet("PATH", $oldpath) ;Change the PATH back | |
Exit ;That's it. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment