공부하는 스누피

[webOS] Web app 원격 인스톨 본문

정리 모음

[webOS] Web app 원격 인스톨

커피맛스누피 2020. 8. 2. 02:01

환경

- Oracle VM (에뮬레이터)

- Windows10

- CMD

 

1. ares cli 설치

아래 링크로 들어가서 ares command line interface를 다운로드 받는다.

https://www.webosose.org/docs/tools/sdk/sdk-download/

 

SDK Download

This page provides the package download links for webOS Open Source Edition (OSE) SDK. Note Emulator is created as a virtual machine image when you build webOS OSE platform source code with qemux86 option configured. For more information, see Building webO

www.webosose.org

2. 환경변수 설정

- Windows

윈도우 돋보기-> 시스템 환경변수 편집 -> 환경 변수-> 사용자 변수 -> 새로 만들기

-> C:\설치경로\ares-cli\bin 입력 후 추가

 

** 추가 후 cmd 끄고 다시 실행해야 함!!!!!

 

- Linux

a) ~/.profile에 CLI path 추가

vi ~/.profile

 

# 입력 내용
if [ -d "$HOME/ares-cli/bin" ]; then
   export PATH="$PATH:$HOME/ares-cli/bin"
fi

 

b) 환경 실행

source ~/.profile

 

3. app 만들기

ares-generate app이름

- app id, title, version을 입력하라고 한다.

- app id는 app을 원격 실행시킬 때 필요하다.

 

4. app 배포 준비하기

ares-package app이름

 

5. app 원격 다운로드

ares-install --device (target) (app id)_(version)_all.ipk

- target에 기기 종류를 넣으면 된다. (emulator / raspberrypi4 ...)

- ex ) ares-install --device emulator com.example.sampleapp_1.0.0_all.ipk

 

** target device가 컴퓨터와 연결되어 있고, 실행중이어야 한다! 

6. app 원격 실행

ares-launch --device (target) (app id)

- 5번과 마찬가지로 target에는 기기 종류를 넣어준다.

- 커맨드 실행 후 자동으로 web app이 켜지는 것을 볼 수 있다.

 

7. 원격 종료

ares-launch --device (target) --close (app_id)

'정리 모음' 카테고리의 다른 글

슈도코드(의사코드, pseudocode) 가이드라인  (0) 2020.10.19
[기술면접]자료구조 정리  (0) 2020.10.19
정규표현식 정리  (0) 2020.10.17
[webOS] webOS 이미지 빌드 방법  (0) 2020.07.30
[Apache] RewriteRule 정리  (0) 2020.07.14
Comments