Skip to content

Commit

Permalink
Merge pull request #68 from Samsung/hotfix
Browse files Browse the repository at this point in the history
generate => certificate
  • Loading branch information
pwsses authored Sep 10, 2020
2 parents 106876e + 5e27b76 commit 99276ed
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 10 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ Please note that, It should be run when you use first time on your tizen applica
.witsconfig.json and .witsignore files are generated on your tizen app project.
After then, you can modify your information to them.

#### 3. `wits -g` / `wits --generate`
#### 3. `wits -c` / `wits --certificate`

For creating a certification(Supported Tizen certification only).
As following steps, you can create a certification on `~/{path-to}/wits/resource/profiles.xml`.
Expand All @@ -124,7 +124,6 @@ on `Windows` and `MacOS` both, **WITs** recognises path segment only one separat
- **connectionInfo** (mandatory)
- deviceIp [string] : Device(TV) Ip address (In case of Emulator, Please input 0.0.0.0)
- hostIp [string] : Host(PC) Ip address
- socketPort [integer] : TV port. It is generated randomly in WITs.
- width [string] : Resolution
- isDebugMode [boolean] : Setting true, chrome inspector is launched automatically. / Setting false, nothing happened.
- **profileInfo** (mandatory)
Expand Down Expand Up @@ -152,9 +151,9 @@ stglib

![witsi](https://user-images.githubusercontent.com/1733182/77503919-3ddef280-6ea2-11ea-9bb4-06f3cb9ebbc6.gif)

### wits -g
### wits -c

![witsg](https://user-images.githubusercontent.com/1733182/92564253-d4b63480-f2b3-11ea-8ba0-933b9fbdd2ad.gif)
![witsc](https://user-images.githubusercontent.com/1733182/92706471-7fe7ec00-f38f-11ea-8d47-47b13f956906.gif)

### wits -s

Expand Down
8 changes: 8 additions & 0 deletions command/generate.js → command/certificate.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,14 @@ module.exports = {
);

profileManager.setActivateProfile(profileName);

console.log(
chalk.cyanBright(
`[Certification] Completed to genarate a certification. ${path.resolve(
path.join(resourceDir, 'profiles.xml')
)}. Please "wits -i" to config your profile path.`
)
);
} catch (e) {
console.error(chalk.red(`[Certification] Failed to run: ${e}`));
}
Expand Down
11 changes: 5 additions & 6 deletions lib/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,10 @@ process.on('SIGINT', () => {
util.displayBanner();

program.version(`wits v${package.version}`);
program.option('-V, --version', 'WITs version');
program.option('-i, --init', 'Create a config file for running WITs');
program.option(
'-g, --generate',
'Generate a certification for packaging Tizen web app'
'-c, --certificate',
'Generate a certification for signing Tizen web app'
);
program.option('-s, --start', 'Start and Use WITs service');
program.option('-w, --watch', 'Watch project for live reloading');
Expand All @@ -30,9 +29,9 @@ program.parse(process.argv);
if (program.init) {
const initCommand = require('../command/init.js');
initCommand.run(program.init);
} else if (program.generate) {
const generateCommand = require('../command/generate.js');
generateCommand.run();
} else if (program.certificate) {
const certificateCommand = require('../command/certificate.js');
certificateCommand.run();
} else if (program.start) {
const startCommand = require('../command/start.js');
startCommand.run();
Expand Down

0 comments on commit 99276ed

Please sign in to comment.