5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-02 09:50:30 +08:00
wails/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/contributing/setting-up-a-dev-environment.mdx
Misite Bao ecdda0154f
docs: translate and correct documents (#1525)
* feat(website): write english translations

* docs(website): delete unnecessary files

* feat(website): update term translations

* docs(website): add Chinese documents

* chore(crowdin): update crowdin config

* docs(filename): keep the new document filename consistent with the old filename style

* chore: add documentation issue template
2022-07-21 20:51:48 +10:00

35 lines
877 B
Plaintext

---
sidebar_position: 10
---
# 设置开发环境
You can set up a development environment by doing the following:
- Install the latest versions of Go and Git
- `git clone https://github.com/wailsapp/wails`
- `cd wails/v2/cmd/wails`
- `go install`
NOTE: The directory that you cloned the project into will now be called "clonedir".
The Wails CLI will now be at the very latest version.
To update projects to use the latest version, update the project's `go.mod` and
ensure the following line is at the bottom of the file:
`replace github.com/wailsapp/wails/v2 => <clonedir>`
Example:
On Windows:
`replace github.com/wailsapp/wails/v2 => C:\Users\leaan\Documents\wails-v2-beta\wails\v2`
On 'nix:
`replace github.com/wailsapp/wails/v2 => /home/me/projects/wails/v2`
To revert back to a stable version, run:
`go install github.com/wailsapp/wails/v2/cmd/wails@latest`