Skip to content

Instantly share code, notes, and snippets.

@windwp
Last active April 21, 2016 00:26
Show Gist options
  • Save windwp/6b732172e944d94bb642c14e08df51d7 to your computer and use it in GitHub Desktop.
Save windwp/6b732172e944d94bb642c14e08df51d7 to your computer and use it in GitHub Desktop.
vmware mac os
SET "sourceDir=F:\workspace\build\IOS"
SET "destinationDir=D:\mac\share\IOS"
del "%sourceDir%\Libraries\libiPhone-lib.a"
for /d %%I in ("%destinationDir%\*") do (
if /i not "%%~nxI" equ "Libraries" rmdir /q /s "%%~I"
)
for /d %%I in ("%destinationDir%\Libraries\*") do (
if /i not "%%~nxI" equ "libiPhone-lib.a" rmdir /q /s "%%~I"
)
for %%f in ("%destinationDir%\Libraries\*") do (
if /i not "%%~nXf" equ "libiPhone-lib.a" del /q "%%f"
)
del /q "%destinationDir%\*"
::copy file
xcopy "%sourceDir%" "%destinationDir%" /e /i /h
SOURCE="/Volumes/VMWARE Shared Folders/share/IOS"
DEST="/Users/letrieu/desktop/build/"
## turn on extglob1
shopt -s extglob
## delete another file
##rm -rf $DEST!(/Libraries/libiPhone-lib.a)
find "$DEST/IOS" ! -name 'libiPhone-lib.a' -type f -exec rm -rf {} \;
rm -rf "$DEST/IOS/Unity-iPhone.xcodeproj"
##sync folder
rsync -aP --exclude=libiPhone-lib.a "$SOURCE" "$DEST"
cp -rf "/Users/letrieu/desktop/GoogleMobileAds.framework" "/Users/letrieu/desktop/Build/IOS"
## turn off extglob
shopt -u extglob
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment