mirror of
https://github.com/taigrr/wails.git
synced 2026-04-13 18:38:11 -07:00
Compare commits
5 Commits
v0.17.12-p
...
linux-db
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c93d01f80f | ||
|
|
eca750e895 | ||
|
|
6b78cdd838 | ||
|
|
2a3cb35dc1 | ||
|
|
af6b631b7b |
@@ -46,7 +46,7 @@ Make sure you have the xcode command line tools installed. This can be done by r
|
|||||||
|
|
||||||
### Linux
|
### Linux
|
||||||
|
|
||||||
#### Debian 9, Ubuntu 18.04, Zorin 15, Parrot 4.7, Linuxmint 19
|
#### Debian 9, Ubuntu 18.04, Zorin 15, Parrot 4.7
|
||||||
|
|
||||||
`sudo apt install libgtk-3-dev libwebkit2gtk-4.0-dev`
|
`sudo apt install libgtk-3-dev libwebkit2gtk-4.0-dev`
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -18,7 +18,7 @@ func NewGitHubHelper() *GitHubHelper {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// GetVersionTags gets the list of tags on the Wails repo
|
// GetVersionTags gets the list of tags on the Wails repo
|
||||||
// It returns a list of sorted tags in descending order
|
// It retuns a list of sorted tags in descending order
|
||||||
func (g *GitHubHelper) GetVersionTags() ([]*SemanticVersion, error) {
|
func (g *GitHubHelper) GetVersionTags() ([]*SemanticVersion, error) {
|
||||||
|
|
||||||
result := []*SemanticVersion{}
|
result := []*SemanticVersion{}
|
||||||
|
|||||||
@@ -33,8 +33,6 @@ const (
|
|||||||
Zorin
|
Zorin
|
||||||
// Parrot distribution
|
// Parrot distribution
|
||||||
Parrot
|
Parrot
|
||||||
// Linuxmint distribution
|
|
||||||
Linuxmint
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// DistroInfo contains all the information relating to a linux distribution
|
// DistroInfo contains all the information relating to a linux distribution
|
||||||
@@ -109,8 +107,6 @@ func parseOsRelease(osRelease string) *DistroInfo {
|
|||||||
result.Distribution = Zorin
|
result.Distribution = Zorin
|
||||||
case "parrot":
|
case "parrot":
|
||||||
result.Distribution = Parrot
|
result.Distribution = Parrot
|
||||||
case "linuxmint":
|
|
||||||
result.Distribution = Linuxmint
|
|
||||||
default:
|
default:
|
||||||
result.Distribution = Unknown
|
result.Distribution = Unknown
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,33 +1,33 @@
|
|||||||
---
|
---
|
||||||
distributions:
|
distributions:
|
||||||
debian:
|
|
||||||
id: debian
|
|
||||||
releases:
|
|
||||||
default:
|
|
||||||
name: Debian
|
|
||||||
version: default
|
|
||||||
gccversioncommand: &gccdumpversion -dumpversion
|
|
||||||
programs: &debiandefaultprograms
|
|
||||||
- name: gcc
|
|
||||||
help: Please install with `sudo apt-get install build-essential` and try again
|
|
||||||
- name: pkg-config
|
|
||||||
help: Please install with `sudo apt-get install pkg-config` and try again
|
|
||||||
- name: npm
|
|
||||||
help: Please install with `curl -sL https://deb.nodesource.com/setup_12.x | sudo bash - && sudo apt-get install -y nodejs` and try again
|
|
||||||
libraries: &debiandefaultlibraries
|
|
||||||
- name: libgtk-3-dev
|
|
||||||
help: Please install with `sudo apt-get install libgtk-3-dev` and try again
|
|
||||||
- name: libwebkit2gtk-4.0-dev
|
|
||||||
help: Please install with `sudo apt-get install libwebkit2gtk-4.0-dev` and try again
|
|
||||||
ubuntu:
|
ubuntu:
|
||||||
id: ubuntu
|
id: ubuntu
|
||||||
releases:
|
releases:
|
||||||
default:
|
default:
|
||||||
version: default
|
|
||||||
name: Ubuntu
|
name: Ubuntu
|
||||||
|
version: default
|
||||||
gccversioncommand: &gccdumpfullversion -dumpfullversion
|
gccversioncommand: &gccdumpfullversion -dumpfullversion
|
||||||
programs: *debiandefaultprograms
|
programs: &ubuntudefaultprograms
|
||||||
libraries: *debiandefaultlibraries
|
- name: gcc
|
||||||
|
help: Please install with `sudo apt install build-essential` and try again
|
||||||
|
- name: pkg-config
|
||||||
|
help: Please install with `sudo apt install pkg-config` and try again
|
||||||
|
- name: npm
|
||||||
|
help: Please install with `curl -sL https://deb.nodesource.com/setup_12.x | sudo bash - && sudo apt-get install -y nodejs` and try again
|
||||||
|
libraries: &ubuntudefaultlibraries
|
||||||
|
- name: libgtk-3-dev
|
||||||
|
help: Please install with `sudo apt install libgtk-3-dev` and try again
|
||||||
|
- name: libwebkit2gtk-4.0-dev
|
||||||
|
help: Please install with `sudo apt install libwebkit2gtk-4.0-dev` and try again
|
||||||
|
debian:
|
||||||
|
id: debian
|
||||||
|
releases:
|
||||||
|
default:
|
||||||
|
version: default
|
||||||
|
name: Debian
|
||||||
|
gccversioncommand: &gccdumpversion -dumpversion
|
||||||
|
programs: *ubuntudefaultprograms
|
||||||
|
libraries: *ubuntudefaultlibraries
|
||||||
parrot:
|
parrot:
|
||||||
id: parrot
|
id: parrot
|
||||||
releases:
|
releases:
|
||||||
@@ -35,8 +35,8 @@ distributions:
|
|||||||
version: default
|
version: default
|
||||||
name: Parrot
|
name: Parrot
|
||||||
gccversioncommand: *gccdumpversion
|
gccversioncommand: *gccdumpversion
|
||||||
programs: *debiandefaultprograms
|
programs: *ubuntudefaultprograms
|
||||||
libraries: *debiandefaultlibraries
|
libraries: *ubuntudefaultlibraries
|
||||||
zorin:
|
zorin:
|
||||||
id: zorin
|
id: zorin
|
||||||
releases:
|
releases:
|
||||||
@@ -44,17 +44,14 @@ distributions:
|
|||||||
version: default
|
version: default
|
||||||
name: Zorin
|
name: Zorin
|
||||||
gccversioncommand: *gccdumpversion
|
gccversioncommand: *gccdumpversion
|
||||||
programs: *debiandefaultprograms
|
programs:
|
||||||
libraries: *debiandefaultlibraries
|
- name: gcc
|
||||||
linuxmint:
|
help: Please install with `sudo apt install build-essential` and try again
|
||||||
id: linuxmint
|
- name: pkg-config
|
||||||
releases:
|
help: Please install with `sudo apt install pkg-config` and try again
|
||||||
default:
|
- name: npm
|
||||||
version: default
|
help: Please install with `sudo snap install node --channel=12/stable --classic` and try again
|
||||||
name: Linuxmint
|
libraries: *ubuntudefaultlibraries
|
||||||
gccversioncommand: *gccdumpversion
|
|
||||||
programs: *debiandefaultprograms
|
|
||||||
libraries: *debiandefaultlibraries
|
|
||||||
centos:
|
centos:
|
||||||
id: centos
|
id: centos
|
||||||
releases:
|
releases:
|
||||||
@@ -68,12 +65,12 @@ distributions:
|
|||||||
- name: pkg-config
|
- name: pkg-config
|
||||||
help: Please install with `sudo yum install pkgconf-pkg-config` and try again
|
help: Please install with `sudo yum install pkgconf-pkg-config` and try again
|
||||||
- name: npm
|
- name: npm
|
||||||
help: Please install with `sudo yum install nodejs` and try again
|
help: Please install with `curl -sL https://rpm.nodesource.com/setup_12.x | sudo bash - && sudo yum install -y nodejs` and try again
|
||||||
libraries:
|
libraries: ¢osdefaultlibraries
|
||||||
- name: gtk3-devel
|
- name: gtk3-devel
|
||||||
help: Please install with `sudo yum install gtk3-devel` and try again
|
help: Please install with `sudo yum install gtk3-devel` and try again
|
||||||
- name: webkitgtk3-devel
|
- name: webkit2gtk3-devel
|
||||||
help: Please install with `sudo yum install webkitgtk3-devel` and try again
|
help: Please install with `sudo yum install webkit2gtk3-devel` and try again
|
||||||
fedora:
|
fedora:
|
||||||
id: fedora
|
id: fedora
|
||||||
releases:
|
releases:
|
||||||
@@ -87,12 +84,8 @@ distributions:
|
|||||||
- name: pkg-config
|
- name: pkg-config
|
||||||
help: Please install with `sudo yum install pkgconf-pkg-config` and try again
|
help: Please install with `sudo yum install pkgconf-pkg-config` and try again
|
||||||
- name: npm
|
- name: npm
|
||||||
help: Please install `sudo yum install nodejs` and try again
|
help: Please install `sudo yum install -y nodejs` and try again
|
||||||
libraries:
|
libraries: *centosdefaultlibraries
|
||||||
- name: gtk3-devel
|
|
||||||
help: Please install with `sudo yum install gtk3-devel` and try again
|
|
||||||
- name: webkit2gtk3-devel
|
|
||||||
help: Please install with `sudo yum install webkit2gtk3-devel` and try again
|
|
||||||
arch:
|
arch:
|
||||||
id: arch
|
id: arch
|
||||||
releases:
|
releases:
|
||||||
@@ -128,4 +121,4 @@ distributions:
|
|||||||
- name: pkg-config
|
- name: pkg-config
|
||||||
help: Please install using your system's package manager
|
help: Please install using your system's package manager
|
||||||
- name: npm
|
- name: npm
|
||||||
help: Please install using your system's package manager
|
help: Please install using your system's package manager
|
||||||
|
|||||||
@@ -272,7 +272,7 @@ func CheckDependencies(logger *Logger) (bool, error) {
|
|||||||
distroInfo := GetLinuxDistroInfo()
|
distroInfo := GetLinuxDistroInfo()
|
||||||
for _, library := range *requiredLibraries {
|
for _, library := range *requiredLibraries {
|
||||||
switch distroInfo.Distribution {
|
switch distroInfo.Distribution {
|
||||||
case Ubuntu, Debian, Zorin, Parrot, Linuxmint:
|
case Ubuntu, Debian, Zorin, Parrot:
|
||||||
installed, err := DpkgInstalled(library.Name)
|
installed, err := DpkgInstalled(library.Name)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return false, err
|
return false, err
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ func NewTemplateHelper() *TemplateHelper {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// IsValidTemplate returns true if the given template name resides on disk
|
// IsValidTemplate returns true if the given tempalte name resides on disk
|
||||||
func (t *TemplateHelper) IsValidTemplate(templateName string) bool {
|
func (t *TemplateHelper) IsValidTemplate(templateName string) bool {
|
||||||
pathToTemplate := filepath.Join(t.templateDir.fullPath, templateName)
|
pathToTemplate := filepath.Join(t.templateDir.fullPath, templateName)
|
||||||
return t.fs.DirExists(pathToTemplate)
|
return t.fs.DirExists(pathToTemplate)
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
package cmd
|
package cmd
|
||||||
|
|
||||||
// Version - Wails version
|
// Version - Wails version
|
||||||
const Version = "v0.17.12-pre"
|
const Version = "v0.17.11-pre"
|
||||||
|
|||||||
Reference in New Issue
Block a user