Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

Commit

Permalink
tizen: Fix tizen run script and navigation example configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
celiolatorraca committed Jan 15, 2018
1 parent baaf7c3 commit 64c4cbf
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion examples/navigation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"build-prod": "cross-env NODE_ENV=production yarn build",
"react-tv-cli": "react-tv-cli",
"start": "yarn build-prod && react-tv-cli run-webos",
"start-tizen": "yarn build && react-tv run-tizen",
"start-tizen": "yarn build && react-tv-cli run-tizen",
"start-dev": "webpack-dev-server --progress --colors"
},
"dependencies": {
Expand Down
2 changes: 2 additions & 0 deletions packages/react-tv-cli/scripts/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
const WebOS = require('./webos');
const Tizen = require('./tizen');

module.exports = {
WebOS,
Tizen,
};
10 changes: 5 additions & 5 deletions packages/react-tv-cli/scripts/tizen/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ const execSync = require('child_process').execSync;

function defaultCLIEnv() {
//return '/opt/tizen/tools/ide/bin';
return 'E:/Ferramentas/tizen/tools/ide/bin';
// return 'E:/Ferramentas/tizen/tools/ide/bin';
return '/Users/celio.latorraca/tizen-studio/tools/ide/bin';
}

function getPackageId(root) {
Expand Down Expand Up @@ -64,7 +65,8 @@ function run(root) {
.toString()
.trim()
.split('\n');
if (!securityProfiles) {
if (!securityProfiles ||
securityProfiles[securityProfiles.length - 1].indexOf('[Profile Name]') > 0) {
return console.log(
chalk.dim('[react-tv]'),
'No tizen security profiles found'
Expand Down Expand Up @@ -113,9 +115,7 @@ function run(root) {
).toString();

if (vms.indexOf('react-tv-tizen') < 0) {
execSync(
`${tizen_CLI_ENV}/../../emulator/bin/em-cli create -n react-tv-tizen -p tv-samsung-3.0-x86`
);
execSync(`${tizen_CLI_ENV}/../../emulator/bin/em-cli create -n react-tv-tizen -p tv-samsung-4.0-x86`);
}

const runningVms = execSync(`${tizen_CLI_ENV}/../../sdb devices`).toString();
Expand Down

0 comments on commit 64c4cbf

Please sign in to comment.