feat(package): produce and include configure output log (#118)

Useful for debugging build issues, and for people who simply want more
details about the build environment and process for Emacs.
This commit is contained in:
2024-11-25 02:40:02 +00:00
committed by GitHub
parent 6e2b9aa44a
commit 5c513ce2e7
2 changed files with 51 additions and 6 deletions

View File

@@ -110,6 +110,18 @@ func Create(ctx context.Context, opts *Options) (string, error) {
})
}
configureOutputFile := filepath.Join(sourceDir, "configure_output.txt")
fi, err = os.Stat(configureOutputFile)
if err != nil && !os.IsNotExist(err) {
return "", err
} else if err == nil && fi.Mode().IsRegular() {
settings.Files = append(settings.Files, &dmgbuild.File{
Path: configureOutputFile,
PosX: 340,
PosY: 756,
})
}
if opts.Output != nil {
settings.Stdout = opts.Output
settings.Stderr = opts.Output