diff --git a/installed_pacakges.go b/installed_pacakges.go index 1f89eae..9f73aea 100644 --- a/installed_pacakges.go +++ b/installed_pacakges.go @@ -72,6 +72,16 @@ func saveInstalledPackages(installDir string, pkgs []AppIndexEntry) error { section.Key("V").SetValue(pkg.Version) section.Key("R").SetValue(pkg.Release) section.Key("o").SetValue(pkg.Type) + + // Save arch if different from current runtime architecture + if pkg.Arch != runtime.GOARCH { + section.Key("A").SetValue(pkg.Arch) + } + + // Save OS if different from current runtime OS + if pkg.OS != runtime.GOOS { + section.Key("p").SetValue(pkg.OS) + } } return cfg.SaveTo(installedFile)