Menu
Sites
Language
Signing Tizen web apps

Hi I'm trying to generate a signed .wgt package using /sdk/tools/ide/bin/tizen.bat. In order to do so, I do the following:

  1. Generate .p12 files using IDE
  2. Add profile named "test" (also using IDE)
  3. Copy profiles.xml to my project directory
  4. Run tizen.bat build-web  (in the directory of my project)
  5. Once the .buildResult is created, I change directory to it and run tizen.bat package -t wgt -s test:profiles.xml

When I do that, I get the following error: "There is no default profiles value in config file."

Also, is there a way to generate profiles.xml file using command line tools?

I'm not quite sure what I'm missing here. Is there an additional param in the config.xml I'm missing? Thank you for your help.

Responses

2 Replies
Kunal Naithani

A simpler method would be to let the IDE build a signed wgt for you. Before Building the package, however, you'll have to generate the author key using the Tizen IDE:

To generate valid author key :

1. Navigate to Window > Preferences > Tizen SDK > Security Profiles

2. Create a new Profile using "Add" button

3. Generate an Author certificate by selecting the "Generate" button and entering the required values. (Distributor Certificate will automatically be set)

4. Click "OK"

The above steps are enough for building a signed WGT file.

 

In case you want to set partner level privilege :

1. Navigate to tizen-sdk\tools\certificate-generator\patches

2. Run the command "patch.bat partner"

Michal Drewniak

Thanks, I wanted to automate the task of building and signing a package, hence I wanted to use command line tools :)

After some digging in jar files, I found that the config param I need to set is default.profiles.path.

So in order to build and sign (assuming p12 file and profiles.xml are already generated):

tizen cli-config -g "default.profiles.path=D:\workspace\.metadata\.plugins\org.tizen.common.sign\profiles.xml"
tizen build-web -- d:\workspace\<app_name>
tizen package -t wgt -s <profile_name> -- d:\workspace\<app_name>\.buildResult
sdb -e install d:\workspace\<app_name>\.buildResult\<app_name>.wgt