Last active
April 21, 2016 00:26
-
-
Save windwp/6b732172e944d94bb642c14e08df51d7 to your computer and use it in GitHub Desktop.
vmware mac os
This file contains 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
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 |
This file contains 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
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