← Back to team overview

ubuntu-phone team mailing list archive

Re: Developing Web App in Cordova for Windows and build .click package for Ubuntu Touch

 

Marco,

Ubuntu is a supported target platform for Cordova.

>From the CLI, just do:
cordova platform add ubuntu

Take a look at the Cordova Guide here as well, to make sure you have the
right click chroot installed prior to building for the phone.
https://developer.ubuntu.com/en/phone/apps/html-5/guides/cordova-guide/

And keep us posted on #ubuntu-webapps on irc.

David

On Sun, Apr 10, 2016 at 5:53 PM, Marco Graziotti <graziottimarco@xxxxxxxxx>
wrote:

> Hi Rodney,
>
> thank you for your answer.
>
> Yes, an Ubuntu Web App is a contained browser viewing, and I know that in
> Ubuntu SDK the "HTML5 apps" are the right kind of project (template) for a
> Web App.
> But I'm looking for a method to fill the contained browser viewing
> automatically because I developed a Web App in Cordova (for Windows), and
> now I want to create the same Web App for Ubuntu Touch. The only way that I
> discovered to port this app in Ubuntu SDK, consists in cutting and pasting
> the code inside the contained browser viewing of Ubuntu SDK HTML5 project
> (see the picture attached) . I have to paste the code in the right
> position, inside head or body tags, and this is not really user friendly
> method, and it's slow.
>
> Is there a method in Ubuntu SDK to import a Cordova Web App project
> (developed in Windows)?
> I have all the  project source code, can Ubuntu SDK import a project
> developed in Cordova for Windows?
>
> Thank you,
> Marco
>
>
> Il 08/04/2016 20:32, Rodney Dawes ha scritto:
>
>> In Ubuntu a "web app" is basically a contained browser viewing a
>> specific site.
>>
>> The HTML 5 apps in the Ubuntu SDK are what you are asking about, and
>> also are built using Cordova, as I understand. It should be possible to
>> start with your existing code.
>>
>>
>> On Fri, 2016-04-08 at 18:03 +0200, Marco Graziotti wrote:
>>
>>> Hi list,
>>>
>>> I just realized a Web App using Cordova for Windows. Cordova permit
>>> me
>>> to build an installation package for "Windows Phone" and "Android"
>>> devices.
>>>
>>> I know that to create a .click package the development platform
>>> should
>>> be an Ubuntu Desktop, so I need to rewrite all the Web App source
>>> code
>>> in Ubuntu SDK, or there's an easy way to export the project from
>>> Cordova
>>> for Windows to Ubuntu SDK kit?
>>>
>>> I asked a question in "Ask Ubuntu", if you want you can answer
>>> there:
>>> http://askubuntu.com/questions/754960/developing-web-app-in-cordova-f
>>> or-windows-and-build-click-package-for-ubuntu-to
>>>
>>> Thank you,
>>> Marco
>>>
>>>
>
> --
> Mailing list: https://launchpad.net/~ubuntu-phone
> Post to     : ubuntu-phone@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~ubuntu-phone
> More help   : https://help.launchpad.net/ListHelp
>
>

Follow ups

References