added -tsa http://timestamp.digicert.com to jarsigner for prevent warning 'No -tsa or -tsacert is provided and this jar is not timestamped.'
This commit is contained in:
4
build.sh
4
build.sh
@@ -182,14 +182,14 @@ cd project && env PATH=$NDKBUILDPATH BUILD_NUM_CPUS=$NCPU nice -n19 ndk-build -j
|
|||||||
ln -s -f libs lib ; \
|
ln -s -f libs lib ; \
|
||||||
zip -u -r bin/MainActivity-release-unsigned.apk lib assets || exit 1 ; \
|
zip -u -r bin/MainActivity-release-unsigned.apk lib assets || exit 1 ; \
|
||||||
} || ant release || exit 1 ; \
|
} || ant release || exit 1 ; \
|
||||||
jarsigner -verbose -keystore ~/.android/debug.keystore -storepass android -sigalg MD5withRSA -digestalg SHA1 bin/MainActivity-release-unsigned.apk androiddebugkey || exit 1 ; \
|
jarsigner -tsa http://timestamp.digicert.com -verbose -keystore ~/.android/debug.keystore -storepass android -sigalg MD5withRSA -digestalg SHA1 bin/MainActivity-release-unsigned.apk androiddebugkey || exit 1 ; \
|
||||||
rm -f bin/MainActivity-debug.apk ; \
|
rm -f bin/MainActivity-debug.apk ; \
|
||||||
zipalign 4 bin/MainActivity-release-unsigned.apk bin/MainActivity-debug.apk || exit 1 ; \
|
zipalign 4 bin/MainActivity-release-unsigned.apk bin/MainActivity-debug.apk || exit 1 ; \
|
||||||
else \
|
else \
|
||||||
$quick_rebuild && { \
|
$quick_rebuild && { \
|
||||||
ln -s -f libs lib ; \
|
ln -s -f libs lib ; \
|
||||||
zip -u -r bin/MainActivity-debug-unaligned.apk lib assets || exit 1 ; \
|
zip -u -r bin/MainActivity-debug-unaligned.apk lib assets || exit 1 ; \
|
||||||
jarsigner -verbose -keystore ~/.android/debug.keystore -storepass android -sigalg MD5withRSA -digestalg SHA1 bin/MainActivity-debug-unaligned.apk androiddebugkey || exit 1 ; \
|
jarsigner -tsa http://timestamp.digicert.com -verbose -keystore ~/.android/debug.keystore -storepass android -sigalg MD5withRSA -digestalg SHA1 bin/MainActivity-debug-unaligned.apk androiddebugkey || exit 1 ; \
|
||||||
rm -f bin/MainActivity-debug.apk ; \
|
rm -f bin/MainActivity-debug.apk ; \
|
||||||
zipalign 4 bin/MainActivity-debug-unaligned.apk bin/MainActivity-debug.apk || exit 1 ; \
|
zipalign 4 bin/MainActivity-debug-unaligned.apk bin/MainActivity-debug.apk || exit 1 ; \
|
||||||
} || ant debug || exit 1 ; \
|
} || ant debug || exit 1 ; \
|
||||||
|
|||||||
Reference in New Issue
Block a user