Cordova Build with SIGNING

Cordova build時,預設會使用debug模式,不過也會加入簽署資訊,使用預設的keystore,當完成程式後要發行或push到Google play時就需要自己製做signing的keystore了。
不加簽直接Release指令:

cordova build --release android

加簽方法:

  1. keytool generator keystore,使用keytool 建立keystore檔案

語法:

keytool -genkey -v -keystore <keystoreName>.keystore -alias <Keystore AliasName> -keyalg <Key algorithm> -keysize <Key size> -validity <Key Validity in Days>

Read More