You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2015/08/17 19:48:46 UTC

[jira] [Commented] (CB-9499) Windows 10: x64-build fails to run when running on an x86 version of Node.js

    [ https://issues.apache.org/jira/browse/CB-9499?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14699921#comment-14699921 ] 

ASF GitHub Bot commented on CB-9499:
------------------------------------

GitHub user robpaveza opened a pull request:

    https://github.com/apache/cordova-windows/pull/116

    CB-9499: There is a run failure when trying to deploy an x64 app when…

    … running on an x86 version of Node.  This change addresses the problem by modifying the run process by detecting an x64 app package as the primary, and setting the environment architecture to x64 before invoking PowerShell.
    
    Also, small build item to point to the correct location of WinJS.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/MSOpenTech/cordova-windows CB-9499

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cordova-windows/pull/116.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #116
    
----
commit af880a3629f6e69bae41c671b4fbd1b44b7714ee
Author: Rob Paveza <ro...@microsoft.com>
Date:   2015-08-17T17:47:11Z

    CB-9499: There is a run failure when trying to deploy an x64 app when running on an x86 version of Node.  This change addresses the problem by modifying the run process by detecting an x64 app package as the primary, and setting the environment architecture to x64 before invoking PowerShell.

----


> Windows 10: x64-build fails to run when running on an x86 version of Node.js
> ----------------------------------------------------------------------------
>
>                 Key: CB-9499
>                 URL: https://issues.apache.org/jira/browse/CB-9499
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: mobile-spec, Windows
>            Reporter: Rob Paveza
>            Assignee: Rob Paveza
>            Priority: Critical
>
> When running an x64 version of a Cordova app, if the Node.js process is 32-bit, it will spawn 32-bit shells (like cmd.exe or PowerShell).  In such a case, installing a 64-bit app with 64-bit dependencies will fail because of a bug in the VS-packaged installation script, which doesn't check for package architecture, but rather the system's processor architecture, which in a 32-bit shell is reported as x86.
> This is particularly important because Mobilespec uses .NET components.  On Windows 10, these components must be .NET Native compiled, which means that they must be platform-specific compiled.  As a result, when running with 
>     cordova run windows -- --archs=x64 --appx=uap
> Mobilespec will build but fail to be run, reporting missing dependencies in the graph.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org