Skip to content

Commit

Permalink
Update README.md instructions to use prebuilt image
Browse files Browse the repository at this point in the history
  • Loading branch information
pkmnnerd committed Oct 9, 2023
1 parent a75a30e commit a4fbf56
Showing 1 changed file with 34 additions and 2 deletions.
36 changes: 34 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,51 @@ An easy method for building Moonlight for Samsung TV
- This Dockerfile and support files have been adapted from [jellyfin-docker-tizen](https://github.com/babagreensheep/jellyfin-tizen-docker)
- Dockerfile readapted for my repository tizen from [pablojrl123](https://github.com/pablojrl123/moonlight-tizen-docker)

## Building
## Using the prebuilt Docker image
1. Enable developer mode on the TV (more information on [official Samsung guide](https://developer.samsung.com/smarttv/develop/getting-started/using-sdk/tv-device.html)):
- Go to Apps.
- Press `12345` on the remote; a dialog should pop up.
- Set `Developer mode` to `On`; fill in the IP of the Docker host.
- Power off and power on the TV as instructed; go once again to Apps.
- Depending on your model, a "DEVELOP MODE" or similar message might appear.

2. Deploy the application to the TV:
- Run and enter a container; the container will be removed automatically on exit:
```
docker run -it --rm ghcr.io/kyrofrcode/moonlight-chrome-tizen:samsung_wasm
```
- Connect to your TV over Smart Development Bridge:
```sh
sdb connect YOUR_TV_IP
```
- Confirm that you are connected, take note of the device ID:
```
sdb devices
```
The device ID will be the last column, something like `UE65NU7400`.
- Install the package:
```sh
tizen install -n MoonlightWasm.wgt -t DEVICE_ID
```
Moonlight should now appear in your Recent Apps - or similar page - on your TV.
- Exit the container:
```sh
exit
```
- (Optional) Remove the Docker image:
```sh
docker image rm ghcr.io/kyrofrcode/moonlight-chrome-tizen:samsung_wasm
```

## Building the Docker image from source
1. Enable developer mode on the TV using the steps from the previous section

2. Build the application within a Docker image:
```
docker build -t moonlight-tizen .
```
This will take a while.

3. Deploy the application to the TV:
- Run and enter a container; the container will be removed automatically on exit:
```
Expand All @@ -46,4 +78,4 @@ An easy method for building Moonlight for Samsung TV
- (Optional) Remove the Docker image:
```sh
docker image rm moonlight-tizen
```
```

0 comments on commit a4fbf56

Please sign in to comment.