mirror of https://github.com/axmolengine/axmol.git
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:
parent
6c604f02d3
commit
6f7cb44c62
|
@ -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:*~"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue