mirror of
https://github.com/jimeh/build-emacs-for-macos.git
synced 2026-02-19 13:06:38 +00:00
feat(builder/plan): add build variant flag (#137)
This commit is contained in:
@@ -35,6 +35,7 @@ type Options struct {
|
||||
EmacsRepo string
|
||||
Ref string
|
||||
SHAOverride string
|
||||
BuildVariant int
|
||||
OutputDir string
|
||||
TestBuild string
|
||||
TestBuildType TestBuildType
|
||||
@@ -95,6 +96,12 @@ func Create(ctx context.Context, opts *Options) (*Plan, error) { //nolint:funlen
|
||||
releaseName = "Emacs." + version
|
||||
}
|
||||
|
||||
if opts.BuildVariant != 0 {
|
||||
variant := strconv.Itoa(opts.BuildVariant)
|
||||
absoluteVersion += "-" + variant
|
||||
releaseName += "-" + variant
|
||||
}
|
||||
|
||||
// Attempt to get the macOS SDK version from the environment, if it's not
|
||||
// available, use the version from the system.
|
||||
targetMacOSVersion := osInfo.DistinctSDKVersion()
|
||||
|
||||
Reference in New Issue
Block a user