vitalets / docker-tizen-webos-sdk

Docker image with Samsung Tizen CLI and LG webOS CLI
92 stars 27 forks source link

Can't pack app #10

Open mrudzevicius opened 7 months ago

mrudzevicius commented 7 months ago

Hi guys! Thanks for amazing tooling here. I have tried this docker image and tested with locally connected Samsung TV. All features/commands worked perfectly until I tried to pack app (web app, javascript, ES6) with the command provided. When running the command tizen package -t wgt -o /home/developer -- /app inside a Docker container, I receive the error: Not found tizen web project in /. This error occurs even though the /app directory exists and contains the necessary files for a Tizen web project (js, html, css files).

I've tried using both absolute and relative paths, but the error persists. Using newest MacOs with M1 hip. What am I missing here? Thanks in advance.

Update: Should directory already consist the config.xml file inside when the app is being packed?

vitalets commented 7 months ago

Hi @mrudzevicius ! I've checked in tizen docs, -- /app is the output dir for the packaging command. Could you try cd /app and run the command again with -- /out suffix?

mrudzevicius commented 7 months ago

Solved the issue.Thanks for the update. The config.xml file was missing. But now after the build, when I try to install app I get:

The active profile is used for signing. If you want to sign with other profile, please use '--sign' option.
Author certficate: /home/developer/author.p12
Distributor1 certificate : /home/developer/tizen-studio/tools/certificate-generator/certificates/distributor/tizen-distributor-signer.p12
Excludes File Pattern: {.manifest.tmp, .delta.lst}
Ignore File: /app/.manifest.tmp
Package File Location: /home/developer/TVTEst.wgt

and then:

install h54vCT1XDq.TVTEst
package_path /home/owner/share/tmp/sdk_tools/tmp/TVTEst.wgt
app_id[h54vCT1XDq.TVTEst] install start
app_id[h54vCT1XDq.TVTEst] installing[2]
app_id[h54vCT1XDq.TVTEst] installing[4]
app_id[h54vCT1XDq.TVTEst] installing[7]
app_id[h54vCT1XDq.TVTEst] installing[9]
app_id[h54vCT1XDq.TVTEst] installing[12]
app_id[h54vCT1XDq.TVTEst] installing[14]
app_id[h54vCT1XDq.TVTEst] installing[17]
app_id[h54vCT1XDq.TVTEst] installing[19]
app_id[h54vCT1XDq.TVTEst] installing[21]
app_id[h54vCT1XDq.TVTEst] installing[24]
app_id[h54vCT1XDq.TVTEst] installing[26]
app_id[h54vCT1XDq.TVTEst] install failed[118, -12], reason: Check certificate error : :Invalid certificate chain with certificate in signature.:<-3>
spend time for wascmd is [809]ms
Failed to install Tizen application.
vitalets commented 7 months ago

Do you have opportunity to try with different TVs? Maybe for some TV models they don't trust bundled developer certificated. Could you try to create own certificate and pack with it?