취업/LG webOS

[webOS] LG Desktop 시뮬레이터(Simulator) 기본 세팅 Window CLI 방법

카슈밀 2022. 11. 30. 11:10
반응형

기본적 폴더 구조
/home/user/tool/
├── webOS_TV_SDK
│   ├── CLI
│   │   ├── bin
│   │   └── ...
│   ├── Simulator
│   │   ├── webOS_TV_22_Simulator_1.0.0
│   │   │   ├── webOS_TV_22_Simulator_1.0.0.appimage
│   │   │   └── ...

 

https://webostv.developer.lge.com/develop/tools/cli-installation

 

CLI Installation

Check the library, API, and other reference information provided by the webOS TV platform.

webostv.developer.lge.com

1. CLI 설치(https://webostv.developer.lge.com/develop/tools/cli-installation)
1-1. webOS_TV_SDK 폴더를 만든다.
1-2. 다운받은 CLI를 webOS_TV_SDK해당 폴더 아래로 다운로드한다.

cmd, powershell 둘다 상관없으나 관리자권한으로 진행.

------------------
필자의 경우 C:\webOS_TV_SDK로 구성했기에 
"C:\YOUR_PATH\webOS_TV_SDK"가 아닌 "C:\webOS_TV_SDK"로 구성하였다.
------------------
// Setting the LG_WEBOS_TV_SDK_HOME variable to the parent directory of CLI
> setx /m LG_WEBOS_TV_SDK_HOME "C:\YOUR_PATH\webOS_TV_SDK"
 
// Setting the WEBOS_CLI_TV variable to the bin directory of CLI
> setx /m WEBOS_CLI_TV "%LG_WEBOS_TV_SDK_HOME%\CLI\bin"
 
// Adding the bin directory of CLI to the PATH variable
> setx /m PATH "%PATH%;%WEBOS_CLI_TV%"

cmd, powershell 창을 껐다가 다시켠다.

ares -V
webOS TV CLI Version: 1.12.0-j41-k <== 다운로드 한 버전이름 표기.

2.simulator 설치(emulator 절대아님 webOS 6.X.X까지만 지원)
(https://webostv.developer.lge.com/develop/tools/simulator-installation)

2-1. webOS22를 다운로드 받은 파일을 압축해제한다.
2-2. C:\webOS_TV_SDK의 아래로 해당 폴더를 이동한다.
2-3. 해당 폴더의 이름을 "Simulator"로 변경한다.
2-4. C:\webOS_TV_SDK\Simulator로 구성되었는지 확인한다.

3. simulator 실행
3-1. C:\webOS_TV_SDK\Simulator\webOS_TV_22_Simulator_1.2.0.exe 파일 실행.
3-2. 앱실행
 3-2-1) 리모콘에서 app을 클릭
 3-2-2) cli로 명령
	ares-launch -s VERSION /APP/DIR/PATH
// example
ares-launch -s 22 /home/user/myApp

4. sample 파일 실행
(https://github.com/webOS-TV-app-samples/webOSTVJSLibrary/tree/de670db46eb694809e6098744e7589f19964eb5b)

4-1. 해당 파일 zip파일 다운로드
  3-2-1로 파일 열기
4-2. webOSTV_js 폴더 열기
4-3. webOSTVDev_js 폴더 열기

https://webostv.developer.lge.com/develop/tools/simulator-installation

 

Simulator Installation

Check the library, API, and other reference information provided by the webOS TV platform.

webostv.developer.lge.com

https://github.com/webOS-TV-app-samples/webOSTVJSLibrary/tree/de670db46eb694809e6098744e7589f19964eb5b

 

GitHub - webOS-TV-app-samples/webOSTVJSLibrary

Contribute to webOS-TV-app-samples/webOSTVJSLibrary development by creating an account on GitHub.

github.com

 

이상 끝.

728x90