Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
KrxkGit committed Nov 2, 2023
1 parent 541777f commit 83757d6
Showing 1 changed file with 41 additions and 11 deletions.
52 changes: 41 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,49 @@
# README

## About
## ❔关于

This is the official Wails Vue-TS template.
本项目是Scut校园网路由器管理客户端,基于 Vue3 + go + wails v3。

You can configure the project by editing `wails.json`. More information about the project settings can be found
here: https://wails.io/docs/reference/project-config
## ▶编译前端

## Live Development
frontend目录是一个vue3项目,请先运行

To run in live development mode, run `wails dev` in the project directory. This will run a Vite development
server that will provide very fast hot reload of your frontend changes. If you want to develop in a browser
and have access to your Go methods, there is also a dev server that runs on http://localhost:34115. Connect
to this in your browser, and you can call your Go code from devtools.
```
npm install
```

## Building
安装前端相关依赖。

To build a redistributable, production mode package, use `wails build`.
然后运行

```
npm build
```

构建前端。

## ▶编译应用程序

Wails 将利用*Vite*构建前端,故需要利用npm安装**Vite**,接着在MINGW64(安装git时会自动安装)运行

```shell
wails dev
```

完成首次环境配置。

此后,可通过

```sh
wails build
```

完成应用程序构建。

## ❗注意

若出现首页Avatar无法读取的情况,可先删除

> frontend/dist/MyAvatar.jpg
然后重新构建。

0 comments on commit 83757d6

Please sign in to comment.