jellyfin-tizen/README.md

99 lines
3.0 KiB
Markdown
Raw Normal View History

2020-02-02 20:06:32 +00:00
<h1 align="center">Jellyfin for Tizen</h1>
2019-10-12 14:25:42 +00:00
<h3 align="center">Part of the <a href="https://jellyfin.media">Jellyfin Project</a></h3>
## Build Process
2020-03-26 13:22:12 +00:00
_Also look [Wiki](https://github.com/jellyfin/jellyfin-tizen/wiki)._
2020-02-02 20:06:32 +00:00
### Prerequisites
* Tizen Studio with IDE or Tizen Studio with CLI (<a href="https://developer.tizen.org/development/tizen-studio/download">https://developer.tizen.org/development/tizen-studio/download</a>)
* Git
2020-02-02 20:06:32 +00:00
* Node.js
* Yarn
* Samsung account
2019-10-12 14:25:42 +00:00
### Getting Started
2020-02-02 20:06:32 +00:00
1. Install prerequisites.
2. Install Certificate Manager and Samsung Certificate Extension with Tizen Studio Package Manager.
3. Register on Samsung.
4. Setup Samsung certificate <sup>_need Samsung account_</sup> in Certificate Manager.
> You can also setup Tizen certificate to simplify deployment to emulator.
5. Clone or download Jellyfin Web repository (<a href="https://github.com/jellyfin/jellyfin-web">https://github.com/jellyfin/jellyfin-web</a>).
2019-10-12 14:25:42 +00:00
```sh
2020-02-02 20:06:32 +00:00
git clone https://github.com/jellyfin/jellyfin-web.git
2019-10-12 14:25:42 +00:00
```
2020-02-02 20:06:32 +00:00
6. Clone or download Jellyfin Tizen (this) repository.
2019-10-12 14:25:42 +00:00
```sh
2020-03-26 13:22:12 +00:00
git clone https://github.com/jellyfin/jellyfin-tizen.git
2019-10-12 14:25:42 +00:00
```
2020-01-18 10:49:30 +00:00
### Build Jellyfin Web
2019-10-12 14:25:42 +00:00
2021-04-18 21:04:08 +00:00
```sh
cd jellyfin-web
npm ci --no-audit
```
<details>
2021-04-19 17:00:02 +00:00
<summary><i>For 10.7 and lower</i></summary>
2021-04-18 21:04:08 +00:00
2020-01-18 10:49:30 +00:00
```sh
cd jellyfin-web
2021-04-19 16:59:06 +00:00
yarn install --frozen-lockfile
2020-01-18 10:49:30 +00:00
```
2021-04-18 21:04:08 +00:00
</details>
2020-01-18 10:49:30 +00:00
2020-02-02 20:06:32 +00:00
> You should get `jellyfin-web/dist/` directory.
2020-01-18 10:49:30 +00:00
If any changes are made to `jellyfin-web/`, the `jellyfin-web/dist/` directory will need to be rebuilt using the command above.
### Prepare Interface
2019-10-12 14:25:42 +00:00
```sh
2020-01-18 10:49:30 +00:00
cd jellyfin-tizen
2020-02-02 20:06:32 +00:00
JELLYFIN_WEB_DIR=../jellyfin-web/dist yarn install
2019-10-12 14:25:42 +00:00
```
2020-02-02 20:06:32 +00:00
> You should get `jellyfin-tizen/www/` directory.
2019-10-12 14:25:42 +00:00
> The `JELLYFIN_WEB_DIR` environment variable can be used to override the location of `jellyfin-web`.
2020-02-02 20:06:32 +00:00
If any changes are made to `jellyfin-web/dist/`, the `jellyfin-tizen/www/` directory will need to be rebuilt using the command above.
2020-01-18 10:49:30 +00:00
2019-10-12 14:25:42 +00:00
### Build WGT
2020-02-02 20:06:32 +00:00
> Make sure you select the appropriate Certificate Profile in Tizen Certificate Manager. This determines which devices you can install the widget on.
2019-10-12 14:25:42 +00:00
```sh
2020-01-18 09:16:22 +00:00
tizen build-web -e ".*" -e gulpfile.js -e README.md -e "node_modules/*" -e "package*.json" -e "yarn.lock"
2019-10-12 14:25:42 +00:00
tizen package -t wgt -o . -- .buildResult
```
2020-02-02 20:06:32 +00:00
> You should get `Jellyfin.wgt`.
## Deployment
2019-10-12 14:25:42 +00:00
### Deploy to Emulator
1. Run emulator.
2. Install package.
```sh
2020-02-02 20:06:32 +00:00
tizen install -n Jellyfin.wgt -t T-samsung-5.5-x86
2019-10-12 14:25:42 +00:00
```
2020-02-02 20:06:32 +00:00
> Specify target with `-t` option. Use `sdb devices` to list them.
2019-10-12 14:25:42 +00:00
### Deploy to TV
1. Run TV.
2. Activate Developer Mode on TV (<a href="https://developer.samsung.com/tv/develop/getting-started/using-sdk/tv-device">https://developer.samsung.com/tv/develop/getting-started/using-sdk/tv-device</a>).
3. Connect to TV with Device Manager from Tizen Studio. Or with sdb.
```sh
sdb connect YOUR_TV_IP
```
2020-02-02 20:06:32 +00:00
4. `Permit to install applications` on your TV with Device Manager from Tizen Studio. Or with sdb.
> TODO: Find a command
5. Install package.
2019-10-12 14:25:42 +00:00
```sh
2020-02-02 20:06:32 +00:00
tizen install -n Jellyfin.wgt -t UE65NU7400
2019-10-12 14:25:42 +00:00
```
2020-02-02 20:06:32 +00:00
> Specify target with `-t` option. Use `sdb devices` to list them.