This repository has been archived by the owner on Oct 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fallback to environment if values not specified for AppleId
If any values are not specified in the config file for `AppleId` we can fallback to pulling them from `AC_USERNAME`, `AC_PASSWORD`, and `AC_PROVIDER`. `AC_PASSWORD` will still be passed into `altool` using the `@env:` prefix as supported by `altool` to avoid printing sensitive information but all others will be read from the environment and passed by value to `altool`.
- Loading branch information
Showing
8 changed files
with
93 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
(*config.Config)({ | ||
Source: ([]string) (len=1 cap=1) { | ||
(string) (len=11) "./terraform" | ||
}, | ||
BundleId: (string) (len=28) "com.mitchellh.test.terraform", | ||
Notarize: ([]config.Notarize) <nil>, | ||
Sign: (*config.Sign)({ | ||
ApplicationIdentity: (string) (len=3) "foo", | ||
EntitlementsFile: (string) (len=29) "/path/to/example.entitlements" | ||
}), | ||
AppleId: (*config.AppleId)({ | ||
Username: (string) (len=21) "mitchellh@example.com", | ||
Password: (string) (len=5) "hello", | ||
Provider: (string) "" | ||
}), | ||
Zip: (*config.Zip)(<nil>), | ||
Dmg: (*config.Dmg)(<nil>) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
source = ["./terraform"] | ||
bundle_id = "com.mitchellh.test.terraform" | ||
|
||
sign { | ||
application_identity = "foo" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
(*config.Config)({ | ||
Source: ([]string) (len=1 cap=1) { | ||
(string) (len=11) "./terraform" | ||
}, | ||
BundleId: (string) (len=28) "com.mitchellh.test.terraform", | ||
Notarize: ([]config.Notarize) <nil>, | ||
Sign: (*config.Sign)({ | ||
ApplicationIdentity: (string) (len=3) "foo", | ||
EntitlementsFile: (string) "" | ||
}), | ||
AppleId: (*config.AppleId)(<nil>), | ||
Zip: (*config.Zip)(<nil>), | ||
Dmg: (*config.Dmg)(<nil>) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters