|
|
@@ -252,10 +252,17 @@ Download the release from [release](https://github.com/lejianwen/rustdesk-api/re
|
|
252
|
252
|
4. Run:
|
|
253
|
253
|
```bash
|
|
254
|
254
|
# Run directly
|
|
255
|
|
- go run cmd/apimain.go
|
|
256
|
|
- # Or generate and run the API using generate_api.go
|
|
257
|
|
- go generate generate_api.go
|
|
258
|
|
- ```
|
|
|
255
|
+ go run cmd/apimain.go
|
|
|
256
|
+ # Or generate and run the API using generate_api.go
|
|
|
257
|
+ go generate generate_api.go
|
|
|
258
|
+ ```
|
|
|
259
|
+ > **Note:** When using `go run` or the compiled binary, the `conf` and `resources`
|
|
|
260
|
+ > directories must exist relative to the current working directory. If you run
|
|
|
261
|
+ > the program from another location, specify absolute paths with `-c` and the
|
|
|
262
|
+ > `RUSTDESK_API_GIN_RESOURCES_PATH` environment variable. Example:
|
|
|
263
|
+ > ```bash
|
|
|
264
|
+ > RUSTDESK_API_GIN_RESOURCES_PATH=/opt/rustdesk-api/resources ./apimain -c /opt/rustdesk-api/conf/config.yaml
|
|
|
265
|
+ > ```
|
|
259
|
266
|
|
|
260
|
267
|
5. To compile, change to the project root directory. For Windows, run `build.bat`, and for Linux, run `build.sh`. After
|
|
261
|
268
|
compiling, the corresponding executables will be generated in the `release` directory. Run the compiled executables
|