1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-20 13:50:12 +01:00

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

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