webosose / ares-cli Goto Github PK
View Code? Open in Web Editor NEWares-cli is a command-line interface(CLI) for webOS
License: Apache License 2.0
ares-cli is a command-line interface(CLI) for webOS
License: Apache License 2.0
Developer Mode app version is: 2.1.0
@webosose/ares-cli version is: 2.4.0 (latest)
When I'm trying to install app using ares-install its giving me below error
cc: @ssuminahn
Hey,
Recently webos informed me I need to update my developer application to continue using it - and I did that. After TV restart I recognized my custom apps are not there anymore. When I try to install them once again I'm receiving:
PS C:\Users\konra> ares-install valid-path-to-file -d tv
[Info] Set target device : tv
ares-install ERR! [ssh exec failure]: Command '/bin/rm -rf /media/developer/temp && /bin/mkdir -p /media/developer/temp' exited with code=1
ares-install ERR! [ssh exec failure]: (Original Message: rm: can't remove '/media/developer/temp': Permission denied)
Before the update I was using this command all the time.
ares-device info device#tvSystemInfo#_getSystemInfo()
ares-device verb luna#send() calling: -n 1 luna://com.webos.service.tv.systemproperty//getSystemInfo '{"keys":["modelName","sdkVersion","firmwareVersion","boardType","otaId"],"subscribe":false}'
ares-device info novacom#Session()#run() cmd:/usr/bin/luna-send-pub -n 1 luna://com.webos.service.tv.systemproperty//getSystemInfo '{"keys":["modelName","sdkVersion","firmwareVersion","boardType","otaId"],"subscribe":false}', opt:{}
ares-device verb novacom#Session()#run() resuming input
ares-device verb novacom#Session()#run() on data (stdout)
ares-device verb luna#send() response: {
ares-device verb luna#send() returnValue: false,
ares-device verb luna#send() modelName: '32LJ6100-UA',
ares-device verb luna#send() sdkVersion: '3.9.0',
ares-device verb luna#send() firmwareVersion: '00.00.00',
ares-device verb luna#send() boardType: 'M2R_ATSC_KR',
ares-device verb luna#send() errorCode: 'ERROR_06',
ares-device verb luna#send() errorText: 'Invalid argument'
ares-device verb luna#send() }
ares-device info finish()
ares-device ERR! [com.webos.service.tv.systemproperty failure]: luna-send command failed <Invalid argument>
ares-device -i command filas on webOS TV 3.5 model.
ares-package works almost flawlessly in Windows, but because Windows does not have executable bits in NTFS, they cannot be set before packaging.
I solved it for me by forcing every packaged file to use permissions mode 0777 by changing ares-cli/lib/package.js:1146:
} else if (entry.props.type === "File") {
// Add other user's readable permission to all files
entry.props.mode = 511; // 0777
}
Running the following command on 2.3.1 while attempting to generate a screenshot:
ares-device -c screen.png -d device_name
Results in following error:
[Info] Set target device : device_name
ares-device ERR! [com.webos.surfacemanager failure]: luna-send command failed <Unknown method "captureCompositorOutput" for category "/">
Appreciate any help you can provide.
I'm trying to create an ipk
file.
my appinfo.json
looks like this:
{
"id": "test",
"version": "1.0.0",
"vendor": "My Company",
"type": "web",
"main": "index.html",
"title": "Test",
"icon": "icon.png",
"largeIcon": "largeIcon.png"
}
In the same folder, I have an index.html
which looks like this:
<!DOCTYPE html>
<html>
<head>
<title>Test app</title>
</head>
<body>
<video autoplay muted>
<source
src="./video.mp4"
type="video/mp4"
width="100vw"
height="100vh"
/>
</video>
</body>
</html>
as you can see I have a video.mp4 file sitting next to the index.html.
I realised that creating a package using ares-package ./test
creates the .ipk
file but it doesn't bundle the video file within the package.
I was wondering if there is a way to bundle assets along with the index.html in an LG package?
Package ssh2
had OS Command Injection bug in versions previous to v0.8.5: GHSA-652h-xwhf-q4h6
You can't connect to a TV without ares-novacom
...
cf. https://webostv.developer.lge.com/develop/app-test/using-devmode-app/
I am trying to change the output of ares-package
filename but it seems it doesn't work.
Looking as the help section, this should generate the file called foopkg_1.0.1.ipk
:
ares-package APP_DIR -f -pn foopkg -pv 1.0.1
But i am keep getting the error: The specified path does not exist <foopkg>
.
Am i doing something wrong?
My command is ares-package ./build -f -pn foopkg -pv 1.0.1
.
Package async had Prototype Pollution bug in v0.2.10: GHSA-fwr7-v2mv-hh25
Package shelljs
had Improper Privilege Management bug in versions previous to v0.8.5: GHSA-4rq4-32rv-6wp6
Hi, can we have updated Tar https://www.npmjs.com/package/tar package in this library currently used version 2.2.2 is outdated and deprecated. Also have vulnerabilities https://snyk.io/test/npm/tar/2.2.2.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.