1234567891011121314151617181920212223242526272829303132333435 |
- @echo off
- set url=https://mirrors.tuna.tsinghua.edu.cn/git/AOSP/platform/
- set tag=android-5.0.2_r3
- set launcher3Url=%url%packages/apps/Launcher3
- set dirs=packages packages\\apps
- (for %%d in (%dirs%) do (
- if exist %%d (
- rd /q /s "%%d"
- echo delete dir %%d
- )
- mkdir "%%d"
- echo create dir %%d
- ))
- ::ÏÂÔØLauncher3
- echo.
- echo.
- echo ÏÂÔØLauncher3
- set appsDir=packages/apps
- set launcher3Dir=%appsDir%/Launcher3
- @echo on
- git -C %appsDir% clone --filter=blob:none --sparse --depth 1 -b %tag% --single-branch --no-checkout %launcher3Url%
- @echo off
- git -C %launcher3Dir% sparse-checkout init --no-cone
- git -C %launcher3Dir% sparse-checkout set /*
- @echo on
- git -C %launcher3Dir% checkout -b %tag% %tag%
- @echo off
- ::ɾ³ý.gitĿ¼
- rd /q /s "%launcher3Dir%/.git"
- @echo on
- pause
|