Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @rem ##########################################################################
- @rem
- @rem Clean Android Studio project folders for distribution
- @rem
- @rem ##########################################################################
- echo off
- CLS
- echo _________________________________________
- echo Android Studio project folder export
- echo _________________________________________
- echo
- echo If directory name includes space
- echo - surround name with quotes
- echo _________________________________________
- set /p dirname= Dir name to export :
- if %dirname% == "" goto ERROR
- set str=%dirname%
- mkdir c:\EXPORT\%str%
- pause
- xcopy %dirname% c:\EXPORT\%str% /s
- del c:\EXPORT\%str%\*.iml
- del c:\EXPORT\%str%\app\*.apk
- rmdir c:\EXPORT\%str%\.gradle /s /q
- rmdir c:\EXPORT\%str%\.idea /s /q
- rmdir c:\EXPORT\%str%\build /s /q
- erase c:\EXPORT\%str%\app\build /f /s /q
- rmdir c:\EXPORT\%str%\app\build /s /q
- pause
- goto END
- :ERROR
- echo Cannot create, check the directory root
- goto OUT
- :END
- CLS
- echo _________________________________________
- echo Android Studio project folder export
- echo _________________________________________
- echo Export ended, check c:\EXPORT
- :OUT
- pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement