mirror of
https://github.com/wavetermdev/wails.git
synced 2026-08-05 13:53:43 -07:00
[linux] Fix packagemap
This commit is contained in:
@@ -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},
|
||||
},
|
||||
|
||||
@@ -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},
|
||||
},
|
||||
|
||||
@@ -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},
|
||||
},
|
||||
|
||||
@@ -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},
|
||||
},
|
||||
|
||||
@@ -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},
|
||||
},
|
||||
|
||||
@@ -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},
|
||||
},
|
||||
|
||||
@@ -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},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user