Languages

Menu
Sites
Language
Hybrid App CLI build

Hello everyone!

I have a hybrid application referring to two native apps. I need to buld hybrid wgt from command line containing all three apps - web and two native ones. 

I'm  doing the following: 

1. (from web app project root path)

web-build -rp "<path to native app1>, <path to native app2>" ./

   result: .buildResult dir with all the stuff needed

2.  web-signing --profile develop .buildResult

   after that I have author-signature and signature1 xml files in .buildResult

3. web-packaging out.wgt .buildResult

    web-packaging says I 've got no .project file in .buildReslt, but creates wgt which cannot be installed due to signature error.

I tried:

 1. run packaging from project root path: no native apps in package, only web one

2. copy .project file to .buildResult before signing: still cannot install

 

The profile which I sign the package with is valid because when I build app the same way but without references to native ones (as an ordinary web app) then everything works ok and package is installed.

 

Could somebody explain me what I should do to build valid wgt package of hybrid app from command line interface, please?

Edited by: Stp on 24 Jul, 2014

Responses

4 Replies
Alex Dem

Hi,
Maybe you could post(move) your question on General forum also.
Alexey.

Alex Dem

Is your Native apps were built via native CLI too?
I was able to build Hybrid app (Web app + Native service)
But My Native service was not signed. I have signed only whole package. I have built Native Service using 'native-make' and have got targeted *.exe in ../HybrService/CommandLineBuild folder
After this I have build Hybrid app :
web-build . -o -eufm -rp /home/test/workspace/HybrService

Maybe you should place your profiles.xml (with valid profile) from <Your workspace directory>/.metadata/.plugins/org.tizen.common.sign/profiles.xml.
to Web app folder.

I have performed for Web app after:
web-signing -profile myprofile:profiles.xml
web-packaging MyApp.wgt
withou any problems
Alexey.

Stp

I also managed to build wgt with everything within it (both native and service app), but it doesn't install because of signing error...

Alex Dem

I have got the same for hybrid and separate apps :-( . I'll check it.

Alexey.