[linux] Fix packagemap

This commit is contained in:
Lea Anthony
2023-09-30 21:17:30 +10:00
parent fc593d90cf
commit aea0db5919
7 changed files with 14 additions and 14 deletions
+2 -2
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},
},
+2 -2
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},
},
+2 -2
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},
},
+2 -2
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},
},
+2 -2
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},
},
+2 -2
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},
},
+2 -2
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},
},