Converting the scripts to node is exactly what we'd need to do to have them
work on Win, I think. We can just remove the call to check_reqs made from
create().

A use-case I can see for this is PhoneGap Build / AppHarness development.

If you'd like to work on this issue, then I think that's great!


On Sun, Feb 2, 2014 at 9:20 AM, Bas Bosman <m...@nazgul.nu> wrote:

> I do think it's beneficial to have that option available on Windows.
>
> As far as i know Cordova strives for feature parity across all deployment
> platforms (where possible) and I don't think it's strange to extend that
> feature parity to the development platform (where possible). I agree that
> you need XCode to build, test and deploy an iOS app, but you don't need it
> for large parts of developing the app. For that same reason I think that
> the ability to do a cordova add wp8 (not build) on a Mac for example would
> be a good thing to have as well.
>
> The 'platform add' code currently doesn't actually use any of the things
> checked for in check_req as far as I can tell, so there is no technical
> reason not to do it. And we do allow a 'plugin add' to add iOS specific
> stuff on a Windows machine.
>
> If a group of people start developing a multi platform app using Cordova a
> valid use case in my opinion would be that there is one developer who does
> the initial setup. So adding the base platforms and plugins for the team
> to use. Currently he has to use multiple development platforms, which he
> may not have, to do so while there is a good chance he'll only be working
> on the on Mac or Windows only development parts of the app after that
> initial setup. Giving him the opportunity to do that all from the
> environment he's familiar with seems like a nice thing to have.
>
> Another reason I started looking into this is mobile-spec. There is a JIRA
> issue (CB-5963, submitted by a core contributor) about createmobilespec.sh
> only working on a Mac. That script wouldn't be to hard to port over to
> JavaScript to have it run on other platforms as well, but it also has a
> dependency on the platform add ios stuff. I think that having something
> there that works on all platforms and produces the same end result would
> be a good thing as well.
>
> And I agree with Axel, although I hadn't thought of it before, that having
> similar create scripts across the platforms would be easier to maintain
> and extend Cordova wide in the future.
>
> But those are just my opinions. I didn't assign the JIRA issue to myself
> yet because I wanted to have your input first. And thank you for the input
> so far.
>
> I see a lot of benefit for myself (and others) in this, but I won't start
> the coding and testing effort if it isn't something that's wanted by a
> majority of the group. :)
>
> Bas
>
> > Without wanting to say that it makes _much_ sense or is worth the effort
> I
> > tried this two weeks ago because I needed the iOS app on a manager's
> > iPhone
> > but the project's iOS devs were not available. I wanted to add the iOS
> > platform, zip the platforms/ios folder and send it to another iOS
> > developer
> > (no Cordova there) to build it there.
> >
> > Maybe a deeper - low priority - goal here would be to have the same node
> > scripts on most platforms.
> >  Am 02.02.2014 00:06 schrieb "Jesse" <purplecabb...@gmail.com>:
> >
> >> Bas, keep in mind that anyone can enter an issue in JIRA, it doesn't
> >> necessarily mean that it is valid, or thought through, it is just a
> >> request.
> >> Andrew's comment on the issue itself points some of this out.
> >> It may make more sense to start with issues that have be created by a
> >> core
> >> contributor.
> >> You probably chose this issue because it was unassigned, choosing an
> >> assigned bug ( but not in-progress ) may be better as well, just be sure
> >> to
> >> reassign it to yourself, and mark it in-progress.
> >>
> >> @purplecabbage
> >> risingj.com
> >>
> >>
> >> On Sat, Feb 1, 2014 at 2:46 PM, Steven Gill <stevengil...@gmail.com>
> >> wrote:
> >>
> >> > Why do we want to allow IOS create on windows? Xcode(a mac) is a
> >> > requirement for development for iOS. I don't understand why this
> >> > functionality is needed. WP stuff needs a windows machine to
> >> > run/build/emulate. Hence why those commands are only available on a
> >> windows
> >> > machine.
> >> >
> >> >
> >> > On Sat, Feb 1, 2014 at 1:05 PM, Bas Bosman <cord...@nazgul.nu> wrote:
> >> >
> >> > > I've been looking into this. (JIRA CB-5706)
> >> > >
> >> > > The current create and update scripts for iOS are shell and Python
> >> > script.
> >> > > Both of which aren't available on Windows without jumping through a
> >> lot
> >> > of
> >> > > hoops.
> >> > >
> >> > > Converting the scripts to JavaScript, modeled after the Android
> >> scripts,
> >> > > will fix the issues of not being able to run them on Windows as we
> >> > already
> >> > > have a Node dependency.
> >> > >
> >> > > But the bigger problem is check_reqs. That will never succeed on
> >> Windows
> >> > > as there's no XCode there.
> >> > >
> >> > > Maybe add an optional --force parameter that will allow people to
> >> ignore
> >> > > the check_reqs result?
> >> > >
> >> > > Before creating a JIRA issue for that I wanted to solicit some
> >> opinions
> >> > > here. Is this a valid course of action? Are there better
> >> alternatives?
> >> > >
> >> > > Bas
> >> > >
> >> > >
> >> >
> >>
> >
>
>
>

Reply via email to