Files
eh-downloader/README.md
2023-08-30 12:32:12 +08:00

48 lines
1.0 KiB
Markdown

# EH Downloader
## How to start server
### One Time Setup
```powershell
git clone "https://github.com/lifegpc/eh-downloader.git"
cd eh-downloader
# Fetch static files from node_modules. These files are used in frontend.
deno task fetch
# Optional. This will enable release mode for fresh.
$env:DENO_DEPLOYMENT_ID="$(git rev-parse HEAD)"
# Optional. Prebuild islands.
deno task server-build
```
### Start Server
```powershell
cd eh-downloader
# Optional. This will enable release mode for fresh.
$env:DENO_DEPLOYMENT_ID="$(git rev-parse HEAD)"
# Start server
deno task server
```
Now dashboard is available at `http://localhost:8000/`.
## other frontend
- [Flutter frontend](https://github.com/lifegpc/eh_downloader_flutter)
## FFI Extensions
All dynamic libraries should place in `./lib` directory.
### Thumbnail
- Required tools: `cmake`, C/C++ compiler.
- Required library: `libavformat`, `libavcodec`, `libavutil`, `libswscale`.
#### Location
- `./lib/thumbnail.dll` on Windows.
- `./lib/libthumbnail.so` on Linux.
- `./lib/libthumbnail.dylib` on macOS.