bash
jarsigner -verbose \
-keystore ${WORKSPACE}/app/key.jks \
-storepass "storepass" \
-keypass "keypass" \
-signedjar ${WORKSPACE}/app/jiagu/upload_legu_signed.apk \
${WORKSPACE}/app/build/outputs/apk/upload_legu.apk \
keyAlias
注:
jarsigner -verbose \
-keystore ${WORKSPACE}/app/key.jks \//签名文件地址配置
-storepass "storepass" \//签名文件storepass
-keypass "keypass" \//签名文件keypass
-signedjar \//签名jar命令
${WORKSPACE}/app/jiagu/upload_legu_signed.apk \//签名后apk输出地址
${WORKSPACE}/app/build/outputs/apk/upload_legu.apk \//待签名的未签名apk地址
keyAlias//签名文件的keyAlias