5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-19 02:19:31 +08:00

[v3 linux] Packagemap -> packagemap

This commit is contained in:
Travis McLane 2023-09-07 12:14:56 -05:00
parent be3b7d754e
commit d98e1d3693
7 changed files with 14 additions and 14 deletions

View File

@ -23,8 +23,8 @@ func NewApt(osid string) *Apt {
// Packages returns the libraries that we need for Wails to compile
// They will potentially differ on different distributions or versions
func (a *Apt) Packages() Packagemap {
return Packagemap{
func (a *Apt) Packages() packagemap {
return packagemap{
"libgtk-3": []*Package{
{Name: "libgtk-3-dev", SystemPackage: true, Library: true},
},

View File

@ -23,8 +23,8 @@ func NewDnf(osid string) *Dnf {
// Packages returns the libraries that we need for Wails to compile
// They will potentially differ on different distributions or versions
func (y *Dnf) Packages() Packagemap {
return Packagemap{
func (y *Dnf) Packages() packagemap {
return packagemap{
"libgtk-3": []*Package{
{Name: "gtk3-devel", SystemPackage: true, Library: true},
},

View File

@ -24,8 +24,8 @@ func NewEmerge(osid string) *Emerge {
// Packages returns the libraries that we need for Wails to compile
// They will potentially differ on different distributions or versions
func (e *Emerge) Packages() Packagemap {
return Packagemap{
func (e *Emerge) Packages() packagemap {
return packagemap{
"libgtk-3": []*Package{
{Name: "x11-libs/gtk+", SystemPackage: true, Library: true},
},

View File

@ -25,8 +25,8 @@ func NewEopkg(osid string) *Eopkg {
// Packages returns the packages that we need for Wails to compile
// They will potentially differ on different distributions or versions
func (e *Eopkg) Packages() Packagemap {
return Packagemap{
func (e *Eopkg) Packages() packagemap {
return packagemap{
"libgtk-3": []*Package{
{Name: "libgtk-3-devel", SystemPackage: true, Library: true},
},

View File

@ -32,14 +32,14 @@ func NewNixpkgs(osid string) *Nixpkgs {
// Packages returns the libraries that we need for Wails to compile
// They will potentially differ on different distributions or versions
func (n *Nixpkgs) Packages() Packagemap {
func (n *Nixpkgs) Packages() packagemap {
// Currently, only support checking the default channel.
channel := "nixpkgs"
if n.osid == "nixos" {
channel = "nixos"
}
return Packagemap{
return packagemap{
"libgtk-3": []*Package{
{Name: channel + ".gtk3", SystemPackage: true, Library: true},
},

View File

@ -24,8 +24,8 @@ func NewPacman(osid string) *Pacman {
// Packages returns the libraries that we need for Wails to compile
// They will potentially differ on different distributions or versions
func (p *Pacman) Packages() Packagemap {
return Packagemap{
func (p *Pacman) Packages() packagemap {
return packagemap{
"libgtk-3": []*Package{
{Name: "gtk3", SystemPackage: true, Library: true},
},

View File

@ -25,8 +25,8 @@ func NewZypper(osid string) *Zypper {
// Packages returns the libraries that we need for Wails to compile
// They will potentially differ on different distributions or versions
func (z *Zypper) Packages() Packagemap {
return Packagemap{
func (z *Zypper) Packages() packagemap {
return packagemap{
"libgtk-3": []*Package{
{Name: "gtk3-devel", SystemPackage: true, Library: true},
},