Launcher3Download-android-8.0.0_r51.bat 795 B

1234567891011121314151617181920212223242526272829303132333435
  1. @echo off
  2. set url=https://mirrors.tuna.tsinghua.edu.cn/git/AOSP/platform/
  3. set tag=android-8.0.0_r51
  4. set launcher3Url=%url%packages/apps/Launcher3
  5. set dirs=packages packages\\apps
  6. (for %%d in (%dirs%) do (
  7. if exist %%d (
  8. rd /q /s "%%d"
  9. echo delete dir %%d
  10. )
  11. mkdir "%%d"
  12. echo create dir %%d
  13. ))
  14. ::ÏÂÔØLauncher3
  15. echo.
  16. echo.
  17. echo ÏÂÔØLauncher3
  18. set appsDir=packages/apps
  19. set launcher3Dir=%appsDir%/Launcher3
  20. @echo on
  21. git -C %appsDir% clone --filter=blob:none --sparse --depth 1 -b %tag% --single-branch --no-checkout %launcher3Url%
  22. @echo off
  23. git -C %launcher3Dir% sparse-checkout init --no-cone
  24. git -C %launcher3Dir% sparse-checkout set /*
  25. @echo on
  26. git -C %launcher3Dir% checkout -b %tag% %tag%
  27. @echo off
  28. ::ɾ³ý.gitĿ¼
  29. rd /q /s "%launcher3Dir%/.git"
  30. @echo on
  31. pause