docs: update develop instructions

See-also: #5920
pull/5934/head
Andelf 2022-07-06 10:24:40 +08:00
parent a4e9136b9f
commit c8e9eec944
1 changed files with 19 additions and 2 deletions

View File

@ -24,12 +24,14 @@ yarn watch
Then open the browser <http://localhost:3001>.
### Production
### Production Build
```bash
yarn release
```
The released files will be at `resources/` directory.
## Desktop app development
### Development
@ -39,6 +41,7 @@ yarn release
``` bash
yarn install
```
2. Compile to JavaScript and open the dev app
```bash
@ -52,9 +55,23 @@ yarn dev-electron-app
Alternatively, run `bb dev:electron-start` to do this step with one command. To
download bb, see https://github.com/babashka/babashka#installation.
### Production
3. (Optional) Update dependencies if your are updating from an old branch
```bash
# pull new changes
git pull
cd static && yarn install && cd ..
```
Here `static/` is generated by `yarn watch` command.
### Production Build
Build a release:
```bash
yarn release-electron
```
The final released binaries or installers will be at `static/out/`.