Skip to content

Commit

Permalink
Merge pull request jellyfin#229 from dmitrylyzo/wiki/fix-missing-font
Browse files Browse the repository at this point in the history
Fix missing fonts
  • Loading branch information
dmitrylyzo authored Nov 3, 2023
2 parents 3a78898 + 9b62e86 commit 545d36f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Build-on-Linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,15 @@ _This is a guide for Ubuntu. But I believe that Tizen Studio can be installed on
```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.
Expand All @@ -52,6 +54,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
Expand Down
7 changes: 7 additions & 0 deletions Build-on-Windows.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ _Commands in this guide are for Windows Command Prompt or Batch files. Most of t
```bat
cd jellyfin-web
set SKIP_PREPARE=1
set USE_SYSTEM_FONTS=1
npm ci --no-audit
npm run build:production
```
Expand All @@ -41,6 +42,7 @@ npm run build:production
```powershell
cd jellyfin-web
$env:SKIP_PREPARE=1
$env:USE_SYSTEM_FONTS=1
npm ci --no-audit
npm run build:production
```
Expand All @@ -50,6 +52,8 @@ npm run build:production
> `set 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.
Expand All @@ -75,6 +79,9 @@ 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
Expand Down

0 comments on commit 545d36f

Please sign in to comment.