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
}