mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 14:45:49 +01:00
feat: add npm prerequisite for linux and osx
This commit is contained in:
parent
5493e1d4ac
commit
76a4c3c171
1 changed files with 4 additions and 0 deletions
|
|
@ -41,6 +41,7 @@ func GetRequiredPrograms() (*Prerequisites, error) {
|
|||
func getRequiredProgramsOSX() *Prerequisites {
|
||||
result := &Prerequisites{}
|
||||
result.Add(newPrerequisite("clang", "Please install with `xcode-select --install` and try again"))
|
||||
result.Add(newPrerequisite("npm", "Please install from https://nodejs.org/en/download/ and try again"))
|
||||
return result
|
||||
}
|
||||
|
||||
|
|
@ -51,9 +52,12 @@ func getRequiredProgramsLinux() *Prerequisites {
|
|||
case Ubuntu:
|
||||
result.Add(newPrerequisite("gcc", "Please install with `sudo apt install build-essentials` and try again"))
|
||||
result.Add(newPrerequisite("pkg-config", "Please install with `sudo apt install pkg-config` and try again"))
|
||||
result.Add(newPrerequisite("npm", "Please install from https://nodejs.org/en/download/ and try again"))
|
||||
|
||||
default:
|
||||
result.Add(newPrerequisite("gcc", "Please install with your system package manager and try again"))
|
||||
result.Add(newPrerequisite("pkg-config", "Please install with your system package manager and try again"))
|
||||
result.Add(newPrerequisite("npm", "Please install from https://nodejs.org/en/download/ and try again"))
|
||||
|
||||
}
|
||||
return result
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue