use FDroid-standard naming when copying APKs for tests

This makes sure that there are no APKs with duplicate version codes.
This commit is contained in:
Hans-Christoph Steiner 2014-04-10 12:37:07 -04:00
parent 234736f306
commit 49387b7108
1 changed files with 2 additions and 4 deletions

View File

@ -7,12 +7,10 @@ copy_apks_into_repo() {
for f in `ls -1 ../../*/bin/*.apk`; do
name=$(basename $(dirname `dirname $f`))
echo "name $name"
apk=${name}_`basename $f`
apk=`aapt d badging "$f" | sed -n "s,^package: name='\(.*\)' versionCode='\([0-9][0-9]*\)' .*,\1_\2.apk,p"`
echo "apk $apk"
cp $f $1/repo/$apk
cp -f $f $1/repo/$apk
done
# delete any 'unaligned' duplicates
rm -f $1/repo/*unaligned*.apk
}
if [ -z $WORKSPACE ]; then