Skip to content

Add deploy task for supported platforms - #28

Open
Luca-Lauro wants to merge 3 commits into
Samsung:masterfrom
Luca-Lauro:deploy-task
Open

Add deploy task for supported platforms#28
Luca-Lauro wants to merge 3 commits into
Samsung:masterfrom
Luca-Lauro:deploy-task

Conversation

@Luca-Lauro

@Luca-Lauro Luca-Lauro commented Nov 22, 2025

Copy link
Copy Markdown
  • update packagers:
    • add deploy functions
    • replace js2xmlparser with xml2js for bi-directional conversion in Orsay packager
    • refactor getManualOrsayConfData to use xml2js
  • deploy task for sectv-orsay tested with Orsay (Legacy) Smart TV

- update packagers:
  - add deploy functions
  - replace js2xmlparser with xml2js for bi-directional conversion
  - refactor getManualOrsayConfData to use xml2js
- deploy task for sectv-orsay tested with Orsay (Legacy) Smart TV
Now if you re-deploy an existing widget without deleting it from widgetlist.xml, it will be overwritten instead of being added another time.
Comment thread tasks/packager/sectv-tizen.js Outdated
if(fs.existsSync(userConfPath)){
var userData = JSON.parse(fs.readFileSync(userConfPath));

if(userData.hasOwnProperty('orsay')){

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there is a typo, it should be 'tizen' I think.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, you're right.
Thanks for pointing that out.

Comment thread tasks/packager/tv-webos.js Outdated
if(fs.existsSync(userConfPath)){
var userData = JSON.parse(fs.readFileSync(userConfPath));

if(userData.hasOwnProperty('orsay')){

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here as well.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here.

Correction of typo oversights in:
- tasks/packager/sectv-tizen.js
- tasks/packager/tv-webos.js
@Luca-Lauro
Luca-Lauro requested a review from prozanne December 2, 2025 13:16
console.log('\nStart deploying Tizen Samsung Smart TV Platform apps......');

var { spawn } = require('child_process');
var wgtPath = data.wgtPath || './platform/tizen/build/app.wgt';

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the default dest path should be ./platform/sectv-tizen/build/app.wgt

It's sorry for saying that,
There are some parts of this PR that are questionable as to whether it works properly, so It's hard to be accepted for now.
Please test all platforms and make sure that they all work well.
Please consider to attach the working well screenshots for each platforms,
Then I will accept this PR.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right.
As reported, the only tested platform that works so far is Orsay.
I'd say to wait for someone to test the other platforms first.
Thanks for your attention.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants