Update build command

This commit is contained in:
Dmitry Lyzo 2023-09-18 00:29:49 +03:00
parent 888353fd0b
commit 66dc227699

View File

@ -40,13 +40,15 @@ _Also look [Wiki](https://github.com/jellyfin/jellyfin-tizen/wiki)._
```sh
cd jellyfin-web
SKIP_PREPARE=1 npm ci --no-audit
npm run build:production
USE_SYSTEM_FONTS=1 npm run build:production
```
> You should get `jellyfin-web/dist/` directory.
> `SKIP_PREPARE=1` can be omitted for 10.9+.
> `USE_SYSTEM_FONTS=1` is required to discard unused fonts and to reduce the size of the app. (Since Jellyfin Web 10.9)
> Use `npm run build:development` if you want to debug the app.
If any changes are made to `jellyfin-web/`, the `jellyfin-web/dist/` directory will need to be rebuilt using the command above.
@ -62,6 +64,9 @@ JELLYFIN_WEB_DIR=../jellyfin-web/dist npm ci --no-audit
> The `JELLYFIN_WEB_DIR` environment variable can be used to override the location of `jellyfin-web`.
> Add `DISCARD_UNUSED_FONTS=1` environment variable to discard unused fonts and to reduce the size of the app. (Until Jellyfin Web 10.9)
> Don't use it with Jellyfin Web 10.9+. Instead, use `USE_SYSTEM_FONTS=1` environment variable when building Jellyfin Web.
If any changes are made to `jellyfin-web/dist/`, the `jellyfin-tizen/www/` directory will need to be rebuilt using the command above.
### Build WGT