Assuming you want to build multiple apks for multiple resolutions on android or just have faster apk upload time to your android device during development.

Considering you want to copy from /myapp/resources/ to /myapp/android/assets/ for several resolutions and you want only to click once for each resolution build.
To accomplish this i recommend using rsycn/ and cygwin.

You might have these script files in:

/myapp/scripts/320x_CopyAssets.bat
/myapp/scripts/480x_CopyAssets.bat
/myapp/scripts/540x_CopyAssets.bat
/myapp/scripts/600x_CopyAssets.bat
/myapp/scripts/720x_CopyAssets.bat
/myapp/scripts/768x_CopyAssets.bat
/myapp/scripts/800x_CopyAssets.bat
/myapp/scripts/1080x_CopyAssets.bat
/myapp/scripts/copy_assets.sh
/myapp/IgnoreCopyAssets/IgnoreCopyAssets.txt
/myapp/IgnoreCopyAssets/320x_IgnoreCopyAssets.txt
/myapp/IgnoreCopyAssets/480x_IgnoreCopyAssets.txt
/myapp/IgnoreCopyAssets/540x_IgnoreCopyAssets.txt
/myapp/IgnoreCopyAssets/600x_IgnoreCopyAssets.txt
/myapp/IgnoreCopyAssets/720x_IgnoreCopyAssets.txt
/myapp/IgnoreCopyAssets/768x_IgnoreCopyAssets.txt
/myapp/IgnoreCopyAssets/800x_IgnoreCopyAssets.txt
/myapp/IgnoreCopyAssets/1080x_IgnoreCopyAssets.txt

Where you merely send the desired resolution at to the actually copy_assets shell script. (e.g the 768x_CopyAssets.bat)

The copy_assets.sh would look like:

And in case you want to ignore files or dirs you can use IgnoreCopyAssets.txt

Or the other resolutions (e.g the 768x_IgnoreCopyAssets.txt) Note: you can use # to comment files or directories out. ;)

Conclusion

Easy to use scripts to copy assets and remove all unwanted ones from your assets folder plus the posibility to ignore files and dirs on demand. Enjoy :)

Facebook comments:

comments