opticharger: use $ANDROID_HOST_OUT
Change-Id: I1b6988051ba7a83aa7149862ae8d96050bf59e23
This commit is contained in:
parent
8e8a67896d
commit
d1dbaf3ef0
1 changed files with 2 additions and 10 deletions
|
@ -9,14 +9,6 @@
|
||||||
# cyanogen - shade@chemlab.org
|
# cyanogen - shade@chemlab.org
|
||||||
# ChrisSoyars - me@ctso.me
|
# ChrisSoyars - me@ctso.me
|
||||||
|
|
||||||
OUT_TARGET_HOST=$(uname -a | grep Darwin)
|
|
||||||
if [ -z "$OUT_TARGET_HOST" ]
|
|
||||||
then
|
|
||||||
OUT_TARGET_HOST=linux-x86
|
|
||||||
else
|
|
||||||
OUT_TARGET_HOST=darwin-x86
|
|
||||||
fi
|
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
QUIET=1
|
QUIET=1
|
||||||
BASE=`pwd`
|
BASE=`pwd`
|
||||||
|
@ -137,8 +129,8 @@ then
|
||||||
|
|
||||||
[ $QUIET ] || echo "Resigning with cert: `echo $CERT`"
|
[ $QUIET ] || echo "Resigning with cert: `echo $CERT`"
|
||||||
|
|
||||||
[ $QUIET ] || echo java -jar $OUT/../../../host/$OUT_TARGET_HOST/framework/signapk.jar $ANDROID_BUILD_TOP/$CERT $ANDROID_BUILD_TOP/$KEY $NAME signed_$NAME
|
[ $QUIET ] || echo java -jar $ANDROID_HOST_OUT/framework/signapk.jar $ANDROID_BUILD_TOP/$CERT $ANDROID_BUILD_TOP/$KEY $NAME signed_$NAME
|
||||||
java -jar $OUT/../../../host/$OUT_TARGET_HOST/framework/signapk.jar $ANDROID_BUILD_TOP/$CERT $ANDROID_BUILD_TOP/$KEY $NAME signed_$NAME
|
java -jar $ANDROID_HOST_OUT/framework/signapk.jar $ANDROID_BUILD_TOP/$CERT $ANDROID_BUILD_TOP/$KEY $NAME signed_$NAME
|
||||||
[ $QUIET ] || echo "Zipalign.."
|
[ $QUIET ] || echo "Zipalign.."
|
||||||
zipalign -f 4 signed_$NAME $BASE/$1
|
zipalign -f 4 signed_$NAME $BASE/$1
|
||||||
if [ ! $QUIET ]; then
|
if [ ! $QUIET ]; then
|
||||||
|
|
Loading…
Reference in a new issue