mirror of
https://github.com/wailsapp/wails.git
synced 2025-06-09 11:12:27 +00:00
docs: Add Linux PATH Update Commands to Installation Guide (#4340)
This pull request enhances the Wails installation guide by adding instructions to update the PATH environment variable for Linux users after installing the Wails CLI via Go. The change ensures that Linux users can properly access the wails command by adding the Go binary path to their environment and refreshing their shell configuration.
This commit is contained in:
parent
be7608e079
commit
832db6d10b
@ -60,6 +60,12 @@ import TabItem from "@theme/TabItem";
|
||||
Linux requires the standard <code>gcc</code> build tools plus <code>libgtk3</code> and <code>libwebkit</code>. Rather than list a ton of commands for different distros, Wails can try to determine what the installation commands are for your specific distribution. Run <code>wails doctor</code> after installation to be shown how to install the dependencies. If your distro/package manager is not supported, please consult the <a href={"/docs/guides/linux-distro-support"}>Add Linux Distro</a> guide.
|
||||
<br/><strong>Note:</strong><br/>
|
||||
If you are using latest Linux version (example: Ubuntu 24.04) and it is not supporting <code>libwebkit2gtk-4.0-dev</code>, then you might encounter an issue in <code>wails doctor</code>: <code>libwebkit</code> not found. To resolve this issue you can install <code>libwebkit2gtk-4.1-dev</code> and during your build use the tag <code>-tags webkit2_41</code>.
|
||||
<br/><br/>
|
||||
After installing Wails via Go, ensure you run the following commands to update your PATH:
|
||||
<br/>
|
||||
<code>export PATH=$PATH:$(go env GOPATH)/bin</code>
|
||||
<br/>
|
||||
<code>source ~/.bashrc</code> or <code>source ~/.zshrc</code>
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
```
|
||||
@ -78,7 +84,9 @@ Note: If you get an error similar to this:
|
||||
```shell
|
||||
....\Go\pkg\mod\github.com\wailsapp\wails\v2@v2.1.0\pkg\templates\templates.go:28:12: pattern all:ides/*: no matching files found
|
||||
```
|
||||
|
||||
please check you have Go 1.18+ installed:
|
||||
|
||||
```shell
|
||||
go version
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user