Skip to content
This repository has been archived by the owner on May 1, 2023. It is now read-only.

Commit

Permalink
Finish up architecture query
Browse files Browse the repository at this point in the history
  • Loading branch information
harryzcy committed Mar 27, 2021
1 parent eefc05a commit 4221aa1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/macapp/macapp.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ func (a *Application) GetArchitectures() ([]string, error) {
architectures = append(architectures, resolveArch(f.Cpu))
}

a.Architectures = architectures
return architectures, nil
}

Expand Down Expand Up @@ -114,6 +115,7 @@ func resolveApplication(dir string, f fs.FileInfo) (Application, error) {
Name: strings.TrimSuffix(f.Name(), ".app"),
Path: filepath.Join(dir, f.Name()),
}
app.GetArchitectures()

return app, nil
}

0 comments on commit 4221aa1

Please sign in to comment.