mirror of
https://git.sr.ht/~eliasnaur/gio-cmd
synced 2026-07-01 07:35:37 +00:00
gogio: read -signpass from environment variable if it isn't provided as an argument
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
committed by
Elias Naur
parent
1b42337ac0
commit
c108ce0a29
+5
-1
@@ -56,6 +56,10 @@ func newBuildInfo(pkgPath string) (*buildInfo, error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
sp := *signPass
|
||||||
|
if sp == "" {
|
||||||
|
sp = os.Getenv("GOGIO_SIGNPASS")
|
||||||
|
}
|
||||||
bi := &buildInfo{
|
bi := &buildInfo{
|
||||||
appID: appID,
|
appID: appID,
|
||||||
archs: getArchs(),
|
archs: getArchs(),
|
||||||
@@ -70,7 +74,7 @@ func newBuildInfo(pkgPath string) (*buildInfo, error) {
|
|||||||
target: *target,
|
target: *target,
|
||||||
version: ver,
|
version: ver,
|
||||||
key: *signKey,
|
key: *signKey,
|
||||||
password: *signPass,
|
password: sp,
|
||||||
notaryAppleID: *notaryID,
|
notaryAppleID: *notaryID,
|
||||||
notaryPassword: *notaryPass,
|
notaryPassword: *notaryPass,
|
||||||
notaryTeamID: *notaryTeamID,
|
notaryTeamID: *notaryTeamID,
|
||||||
|
|||||||
@@ -72,6 +72,7 @@ The -signkey flag specifies the path of the keystore, used for signing Android a
|
|||||||
or specifies the name of key on Keychain to sign MacOS app.
|
or specifies the name of key on Keychain to sign MacOS app.
|
||||||
|
|
||||||
The -signpass flag specifies the password of the keystore, ignored if -signkey is not provided.
|
The -signpass flag specifies the password of the keystore, ignored if -signkey is not provided.
|
||||||
|
If -signpass is not sepecified it will be read from the environment variable GOGIO_SIGNPASS.
|
||||||
|
|
||||||
The -notaryid flag specifies the Apple ID to use for notarization of MacOS app.
|
The -notaryid flag specifies the Apple ID to use for notarization of MacOS app.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user