cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Grieve <agri...@chromium.org>
Subject Re: icons, splash and hooks
Date Fri, 16 Aug 2013 15:45:42 GMT
Hey Ivan,

All good ideas! Thanks for the feedback.


On Thu, Aug 8, 2013 at 2:32 AM, ivan baktsheev <dot.and.thing@gmail.com>wrote:

> hello
>
> i have some projects which use cordova 2.x and i want to migrate to
> cordova 3.0. i'm very happy with the project format change and cordova cli,
> but some issues are very frustrating.
>
> 1) icons and splash screens won't copy from res folder
>
> i created an after_prepare hook script (
> https://gist.github.com/apla/6179863) and assets go to the proper
> folders. probably, this can be added to the cordova cli. are there any
> reasons not to include this functionality into cordova?
>
> but this added other two issues:
>
> We have an outstanding issue to add this feature:
https://issues.apache.org/jira/browse/CB-3301 I've added a reference to
your gist to it.


> 2) hook scripts know nothing about current command platform. for example,
> when i run "cordova prepare ios" i don't need assets from android copied. i
> propose to make a hook script reading an environment or the second command
> line parameter to get a current platform, would that work?
>

https://issues.apache.org/jira/browse/CB-4382


>
> 3) hook is not running on windows, and i have to rename my hook to
> "something.js", windows will run this script via cscript.exe. i think,
> cordova could read the first line of a script file (#!/bin/env node) and
> launch a proper command, or interpret every hook on windows as a nodejs
> script; in this case we would be able to get cross-platform hooks.
>
This one is new! Created an issue for it.
https://issues.apache.org/jira/browse/CB-4604


>
> thank you!
>
Thank you!

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message