Build script magic to deal with Image and Fonts on Android.

* Copy Images/* and Fonts/* into assets
 * Ignore assets/Images and assets/Fonts directories when packaging
This commit is contained in:
folecr 2012-08-28 17:03:20 -07:00
parent 6c604f02d3
commit 6f7cb44c62
2 changed files with 24 additions and 1 deletions

View File

@ -1 +1 @@
aapt.ignore.assets="!*.pvr.gz:!*.gz:!.svn:!.git:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*.scc:*~"
aapt.ignore.assets="!*.pvr.gz:!*.gz:!<dir>Images:!<dir>Fonts:!.svn:!.git:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*.scc:*~"

View File

@ -65,6 +65,29 @@ if [ -f "$file" ]; then
fi
done
# extra magic to deal with Images and Fonts for android
for file in "$APP_ROOT"/Resources/Images/*
do
if [ -d "$file" ]; then
cp -rf "$file" "$APP_ANDROID_ROOT"/assets
fi
if [ -f "$file" ]; then
cp "$file" "$APP_ANDROID_ROOT"/assets
fi
done
for file in "$APP_ROOT"/Resources/Fonts/*
do
if [ -d "$file" ]; then
cp -rf "$file" "$APP_ANDROID_ROOT"/assets
fi
if [ -f "$file" ]; then
cp "$file" "$APP_ANDROID_ROOT"/assets
fi
done
# copy js
if [ -d "$APP_ROOT/js" ]; then
cp -rf "$APP_ROOT/js" "$APP_ANDROID_ROOT"/assets