cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-5038) Powershell error while installing Windows8 build using cordova-cli for 3.1.x
Date Tue, 08 Apr 2014 20:16:19 GMT

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

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

Github user asfgit closed the pull request at:

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


> Powershell error while installing Windows8 build using cordova-cli for  3.1.x
> -----------------------------------------------------------------------------
>
>                 Key: CB-5038
>                 URL: https://issues.apache.org/jira/browse/CB-5038
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CLI, Windows 8
>    Affects Versions: 3.1.0
>         Environment: Windows8, Cordova CLI 3.1.0
>            Reporter: Sergey Grebnov
>            Assignee: Jesse MacFadyen
>            Priority: Minor
>
> 1. add windows8 platform
> 2. Trigger build by running the following command
>  cordova build windows8 --verbose
> 3. Observe: application was build successfully, but powershell install script has failed
(see trace message below).
> This is due to the following problem: by default No powershell scripts can be run w/o
changing system settings (PowerShell Security restriction).
> See http://technet.microsoft.com/en-us/library/ee176847.aspx
> Get-ExecutionPolicy returns Restricted by default
> To get this working you should change this settings, for example by running
> powershell Set-ExecutionPolicy Unrestricted
> I propose to fix this functionality (at least add user friendly message explaining issue
cause, possible workaround and updating docs on cordova-cli home) or to remove this step as
unnecessary for build as per 
> https://issues.apache.org/jira/browse/CB-4944
> ----------------------
> cordova build windows8 --verbose
> cordova library for "windows8" already exists. No need to download. Continuing.
> Calling plugman.prepare for platform "windows8"
> Preparing windows8 project...
> Processing configuration changes for plugins.
> creating jsproj from project at : C:\projects\MyApp2\platforms\windows8\CordovaApp.jsproj
> Iterating over installed plugins: []
> Writing out cordova_plugins.js...
> Compiling platform "windows8" with command ""C:\projects\MyApp2\platforms\windows8\cordova\build""
(output to follow)...
> Building Cordova Windows 8 Project:
> 	Configuration : Debug
> 	Directory : C:\projects\MyApp2\platforms\windows8
> Building the projects in this solution one at a time. To enable parallel build, please
add the "/m" switch.
> C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\AppxPackage\Microsoft.AppXPackage.Targets(808,9):
warning APPX2101: File 'VisualStudioEdition' is not found or is not an executable file. [C:\projects\MyApp2\platforms\windows8\CordovaApp.jsproj]
>   CordovaApp -> C:\projects\MyApp2\platforms\windows8\AppPackages\CordovaApp_1.0.0.0_AnyCPU_Debug_Test\CordovaApp_1.0.0.0_AnyCPU_Debug.appx
>   CordovaApp -> C:\projects\MyApp2\platforms\windows8\AppPackages\CordovaApp_1.0.0.0_AnyCPU_Debug.appxupload
>   Your package has been successfully created.
> Running Command :: PowerShell C:\projects\MyApp2\platforms\windows8\AppPackages\CordovaApp_1.0.0.0_AnyCPU_Debug_Test\Add-AppDevPackage.ps1
> Error running PowerShell script : 1
> Platform "windows8" compiled successfully.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message