cmd/gogio: [android] allow custom signature-key

That change makes possible to provide custom PKCS#12 (JKS/PFX) using `-signkey` and the password with `-signpass`.

By default the gogio will use the `debug.keystore`, if no key is provided.

Signed-off-by: Inkeliz <inkeliz@inkeliz.com>
This commit is contained in:
Inkeliz
2021-02-22 16:50:58 +00:00
committed by Elias Naur
parent 60d48014d4
commit 212f7809cb
4 changed files with 50 additions and 26 deletions
+4
View File
@@ -23,6 +23,8 @@ type buildInfo struct {
tags string
target string
version int
key string
password string
}
func newBuildInfo(pkgPath string) (*buildInfo, error) {
@@ -47,6 +49,8 @@ func newBuildInfo(pkgPath string) (*buildInfo, error) {
tags: *extraTags,
target: *target,
version: *version,
key: *signKey,
password: *signPass,
}
return bi, nil
}