← Back to team overview

ubuntu-phone team mailing list archive

Re: [Development] Cordova sed error while trying to build for 15.04

 

On another note, be aware that Cordova CLI 4.3.x uses the old plugin
directory, ie:
cordova plugin add org.apache.cordova.camera

Recent Cordova releases have switched to the new NPM-based repository. So
you then have to use:
cordova plugin add cordova-plugin-camera

The lastest cordova-ubuntu support code (ie the platform code), is
compatible with both, and can be used whether you are building with the
old-style CLI (the one still considered stable and packaged in the PPA), or
the new CLI you can get from a fresh npm install.

The Platform API connecting the CLI and its supported platforms is still
somehow in flux. So this is why I recommend to stick to the PPA for a few
more weeks. Until I can get all of the newer platform (and plugins) code
running in all cases with the latest upstream updates.

Again, in the meantime, feel free to contact me for issues or file bugs on
launchpad/JIRA.

David

On Wed, Jan 6, 2016 at 8:56 PM, Mattias <mattias@xxxxxxxxxx> wrote:

> On 05-01-16 17:19, David Barth wrote:
>
>
> On Mon, Jan 4, 2016 at 7:37 PM, Ferdinand Holzner <
> <ferdinandholzner@xxxxxxxxx>ferdinandholzner@xxxxxxxxx> wrote:
>
>> Hi David,
>>
>> thank you very much.
>>
>> Not sure how to install cordova-lib 6.0, but I've added the
>> cordova-ubuntu from git to my project and now it's working. Finally i see
>> the nice little cordova logo on my phone. :D
>>
>
> Cool ! Keep us posted on your Twitter app.
>
>
>>
>> Just one thing i noticed: The icon setting in defaults.xml points to
>> "www/icon/logo.png", which is wrong. With this path the "www" is doubled as
>> an end result. It should actually be "icon/logo.png". Everything else is
>> working so far. Let's see if i get the twitter app working. :)
>>
>
> This is cleared once cordova-lib gets the update that makes everything
> relative to the project root, not the www directory anymore.
>
>
>
> Thanks David! I had the same issue early December, but now it works!
>
> Here is a summary of my experience with cordova installation:
>
>    - installing cordova-cli via the ppa (
>    https://launchpad.net/~cordova-ubuntu/+archive/ubuntu/ppa/+packages)
>    does not work on Ubuntu 15.10 (wily) since there is no updated package
>    available. I used 'sudo npm install -g cordova' to install cordova-cli
>    version 5.4.0
>    - To install cordova-lib@6.0.0-dev you have to use npm with
>    https://github.com/apache/cordova-cli I think, but I did not try that.
>    - This also works (is a mirror): cordova platform add
>    https://github.com/apache/cordova-ubuntu
>    - When adding the platform, there is the icon error. I remove www from
>    the icon tag at platforms/ubuntu/cordova/defaults.xml and then 'cordova -d
>    build ubuntu --device -- --framework ubuntu-sdk-15.04 --verbose'
>    - I did not manage to build with the 15.10 SDK
>
>
> --
> 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
>
>

References