From 1e89e92429c9d033d6fcc51e0b84bba91e91314b Mon Sep 17 00:00:00 2001 From: "minkee.lee" Date: Wed, 1 Jul 2015 19:22:27 +0900 Subject: [PATCH] build: Enabled signing routine. - Enabling signing routine that had been blocked temporarily. Change-Id: I111e9ad84e54a3dc74aa931d0c378075b5fa4d6e Signed-off-by: minkee.lee --- package/build.windows | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/package/build.windows b/package/build.windows index a3347e8..97e7999 100755 --- a/package/build.windows +++ b/package/build.windows @@ -49,23 +49,23 @@ build() else echo "Generating emulator-manager.exe SUCCESS." # Add signing to emulator-manager.exe - #java -jar $SIGNTOOL_JAR $SRCDIR/emulator-manager.exe $SRCDIR/emulator-manager.exe emulator-manager.exe - #if [ ! -f "$SRCDIR/emulator-manager.exe" ]; then - # echo "Codesigning fail" - # exit 1 - #fi + java -jar $SIGNTOOL_JAR $SRCDIR/emulator-manager.exe $SRCDIR/emulator-manager.exe emulator-manager.exe + if [ ! -f "$SRCDIR/emulator-manager.exe" ]; then + echo "Codesigning fail" + exit 1 + fi - #cd $SRCDIR - #echo "signtool path: $SIGNTOOL" - #"$SIGNTOOL" verify "//pa" "emulator-manager.exe" - #CODESIGN_RET=$? - #echo $CODESIGN_RET - #if [ "$CODESIGN_RET" = "0" ]; then - # echo "The signature is vaild" - #else - # echo "The signature is invalid : return value = $CODESIGN_RET" - # exit 1 - #fi + cd $SRCDIR + echo "signtool path: $SIGNTOOL" + "$SIGNTOOL" verify "//pa" "emulator-manager.exe" + CODESIGN_RET=$? + echo $CODESIGN_RET + if [ "$CODESIGN_RET" = "0" ]; then + echo "The signature is vaild" + else + echo "The signature is invalid : return value = $CODESIGN_RET" + exit 1 + fi fi fi } -- 2.7.4