Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
heonie committed Dec 2, 2015
1 parent 4d0e34b commit 1c743ab
Showing 1 changed file with 17 additions and 10 deletions.
27 changes: 17 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Cordova based applications are, at the core, applications written with web techn
| |-plugin/ ......... cordova plugin implementations
| |-exec.js ......... cordova/exec module
| `-platform.js ..... cordova/platform module having platform definition and bootstrap
|-www/ ............... Project template for Orsay platform
|-www/ ............... Project template for Tizen platform
|-package.json ....... npm package configuration
'-README.md .......... this file
```
Expand All @@ -22,13 +22,19 @@ This section describes the build process which creates `cordova.js` file for the
Please see [Cordova-js](http://github.com/apache/cordova-js) for more detail of `compile` task.

1. Clone the [Cordova-js](http://github.com/apache/cordova-js) project as sibling of this project.
```sh
$ git clone https://github.com/Samsung/cordova-sectv-tizen.git
$ git clone https://github.com/apache/cordova-js.git
```

Repositories will be created like below directory structure.
```
./
|-cordova-js
`-cordova-sectv-tizen
```

2. Add "sectv-tizen" as a target for `Gruntfile.js` in the cordova-js project.
2. Add "sectv-tizen" as a target of "compile" task on `Gruntfile.js` in the cordova-js project.
```js
...
grunt.initConfig({
Expand All @@ -42,20 +48,20 @@ Please see [Cordova-js](http://github.com/apache/cordova-js) for more detail of
});
```

3. Add "sectv-tizen" property to "cordova-platforms" to the cordova-js project's `package.json` with path to this project as its value.
3. Add "sectv-tizen" property to "cordova-platforms" object in the cordova-js project's `package.json` with path to this project's repository as its value.
```JSON
"cordova-platforms": {
...,
"cordova-sectv-tizen": "../cordova-sectv-tizen"
...,
"cordova-sectv-tizen": "../cordova-sectv-tizen"
}
```

4. in the `cordova-js` directory's root:
4. In the `cordova-js` directory's root, run below command to create `cordova-js/pkg/cordova.sectv-tizen.js` file.
```sh
$ grunt compile:sectv-tizen
```
5. Above command will creates `cordova-js/pkg/cordova.sectv-tizen.js`. Let's copy the file to `www` directory which is including Tizen TV Application project template for further use. In the `cordova-js` directory:
5. We recommend to copy the created file to the `www` directory which is including Tizen Application project templates for further use. In the `cordova-js` directory:
```sh
$ cp ./pkg/cordova.sectv-tizen.js ../cordova-sectv-tizen/www/cordova.js
```
Expand All @@ -64,9 +70,10 @@ Please see [Cordova-js](http://github.com/apache/cordova-js) for more detail of
For creating application package for 2015's Tizen TV:

1. Create a Tizen project with Tizen IDE and copy the `www` directory's content to the Tizen project.
2. Copy the built `cordova-js/pkg/cordova.sectv-tizen.js` or `www/cordova.js` to your tizen project directory's root with name `cordova.js`.
3. Build and emulate the tizen project.
* We recommand to use the [grunt-cordova-sectv](http://github.com/Samsung/grunt-cordova-sectv) task for these process.
2. Copy the built `cordova-js/pkg/cordova.sectv-tizen.js` to your tizen project directory's root with name `cordova.js`.
3. Build the tizen project.

* We recommand to use the [grunt-cordova-sectv](http://github.com/Samsung/grunt-cordova-sectv) Grunt task to automate these process.

# Known Issues
Not yet
Expand Down

0 comments on commit 1c743ab

Please sign in to comment.