build: Enabled signing routine.
authorminkee.lee <minkee.lee@samsung.com>
Wed, 1 Jul 2015 10:22:27 +0000 (19:22 +0900)
committerminkee Lee <minkee.lee@samsung.com>
Wed, 1 Jul 2015 12:17:20 +0000 (21:17 +0900)
- Enabling signing routine that had been blocked temporarily.

Change-Id: I111e9ad84e54a3dc74aa931d0c378075b5fa4d6e
Signed-off-by: minkee.lee <minkee.lee@samsung.com>
package/build.windows

index a3347e8..97e7999 100755 (executable)
@@ -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
 }