You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by Jesse <pu...@gmail.com> on 2013/09/28 02:18:07 UTC

Adding Cordova-CLI Windows8 support to 3.1.0

I have added windows8 support to the cli, and sent a pull request. [1]
I would like this to be included in the 3.1.0 release if possible.  Please
review the pull request and feel free to try it out.  There should be no
impact outside of windows8, and should not affect other platforms.

Note that there are currently some issues with the windows8 platforms
scripts that prevent the CLI from being able to run/emulate windows8
projects, these are known issues and have to do with the way that windows8
signs apps, and the fact that you are actually building on the platform
where you will run, ie no attached device needed.

The additions allow at least that you can add windows8 as a platform, and
add / remove plugins.

Cheers,
  Jesse

[1]
https://github.com/apache/cordova-cli/pull/44



@purplecabbage
risingj.com

Re: Adding Cordova-CLI Windows8 support to 3.1.0

Posted by Carlos Santana <cs...@gmail.com>.
Jesse,
when running cordova build
I had some errors running build on the second time.
On the first time  it compiles. builds the package and then tries to
install the app locally
On the second time it compiles,build the package and then it fails
installing the app locally

Maybe the build command should not try to install locally.
Maybe it should try to install locally with the "cordova run" command?

C:\Users\Carlos\Desktop\Win8-0928> node
Z:\Documents\cordova-3.1.x\cordova-cli\bin\cordova build -d
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:\Users\Carlos\Desktop\Win8-0928\platforms\windows8\CordovaApp.jsproj
Iterating over installed plugins: []
Writing out cordova_plugins.js...
Compiling platform "windows8" with command
""C:\Users\Carlos\Desktop\Win8-0928\platforms\windows8\cordova\build""
(output to follow)...

Building Cordova Windows 8 Project:
        Configuration : Debug
        Directory : C:\Users\Carlos\Desktop\Win8-0928\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(807,9):
warning APPX2101: File 'VisualStudioEdition' is not found or is not an
executable file. [C
:\Users\Carlos\Desktop\Win8-0928\platforms\windows8\CordovaApp.jsproj]
  CordovaApp ->
C:\Users\Carlos\Desktop\Win8-0928\platforms\windows8\AppPackages\CordovaApp_1.0.0.0_AnyCPU_Debug_Test\CordovaApp_1.0.0.0_AnyCPU_Debug.appx
  CordovaApp ->
C:\Users\Carlos\Desktop\Win8-0928\platforms\windows8\AppPackages\CordovaApp_1.0.0.0_AnyCPU_Debug.appxupload
  Your package has been successfully created.

Running Command :: PowerShell
C:\Users\Carlos\Desktop\Win8-0928\platforms\windows8\AppPackages\CordovaApp_1.0.0.0_AnyCPU_Debug_Test\Add-AppDevPackage.ps1
Error running PowerShell script : 1

Platform "windows8" compiled successfully.
C:\Users\Carlos\Desktop\Win8-0928>



On Fri, Sep 27, 2013 at 9:16 PM, Carlos Santana <cs...@gmail.com>wrote:

> Jesse I think for 3.1.0 most important is to be able to add/rm platforms
> and plugins.
>
> For run/emulate we can try do something for 3.2.0 and even if its not
> possible by then, I think is a very low priority
>
> --Carlos
>
>
> On Fri, Sep 27, 2013 at 8:18 PM, Jesse <pu...@gmail.com> wrote:
>
>> I have added windows8 support to the cli, and sent a pull request. [1]
>> I would like this to be included in the 3.1.0 release if possible.  Please
>> review the pull request and feel free to try it out.  There should be no
>> impact outside of windows8, and should not affect other platforms.
>>
>> Note that there are currently some issues with the windows8 platforms
>> scripts that prevent the CLI from being able to run/emulate windows8
>> projects, these are known issues and have to do with the way that windows8
>> signs apps, and the fact that you are actually building on the platform
>> where you will run, ie no attached device needed.
>>
>> The additions allow at least that you can add windows8 as a platform, and
>> add / remove plugins.
>>
>> Cheers,
>>   Jesse
>>
>> [1]
>> https://github.com/apache/cordova-cli/pull/44
>>
>>
>>
>> @purplecabbage
>> risingj.com
>>
>
>
>
> --
> Carlos Santana
> <cs...@gmail.com>
>



-- 
Carlos Santana
<cs...@gmail.com>

Re: Adding Cordova-CLI Windows8 support to 3.1.0

Posted by Carlos Santana <cs...@gmail.com>.
Jesse I think for 3.1.0 most important is to be able to add/rm platforms
and plugins.

For run/emulate we can try do something for 3.2.0 and even if its not
possible by then, I think is a very low priority

--Carlos


On Fri, Sep 27, 2013 at 8:18 PM, Jesse <pu...@gmail.com> wrote:

> I have added windows8 support to the cli, and sent a pull request. [1]
> I would like this to be included in the 3.1.0 release if possible.  Please
> review the pull request and feel free to try it out.  There should be no
> impact outside of windows8, and should not affect other platforms.
>
> Note that there are currently some issues with the windows8 platforms
> scripts that prevent the CLI from being able to run/emulate windows8
> projects, these are known issues and have to do with the way that windows8
> signs apps, and the fact that you are actually building on the platform
> where you will run, ie no attached device needed.
>
> The additions allow at least that you can add windows8 as a platform, and
> add / remove plugins.
>
> Cheers,
>   Jesse
>
> [1]
> https://github.com/apache/cordova-cli/pull/44
>
>
>
> @purplecabbage
> risingj.com
>



-- 
Carlos Santana
<cs...@gmail.com>

Re: Adding Cordova-CLI Windows8 support to 3.1.0

Posted by Carlos Santana <cs...@gmail.com>.
I created JIRA items to keep track and have others in the mailing not hate
me for filling their inbox with too much crap

https://issues.apache.org/jira/browse/CB-4943
https://issues.apache.org/jira/browse/CB-4944


On Sat, Sep 28, 2013 at 9:04 AM, Carlos Santana <cs...@gmail.com>wrote:

> Jesse,
> I did some testing on windows8
>
> cordova platform add windows8
> cordova platform rm windows8
> cordova platform add windows8
> cordova plugin add Z:\Documents\cordova-3.1.x\cordova-plugin-file -d
> cordova plugin add Z:\Documents\cordova-3.1.x\cordova-plugin-camera -d
>
> But it failed on "cordova plugin rm org.apache.cordova.camera -d"
>
> Error: malformed document. First element should be <plist>  wtf?
>
>
> C:\Users\Carlos\Desktop\Win8-0928> node
> Z:\Documents\cordova-3.1.x\cordova-cli\bin\cordova plugin rm
> org.apache.cordova.camera -d
> Calling plugman.uninstall on plugin "org.apache.cordova.camera" for
> platform "windows8"
> Uninstalling org.apache.cordova.camera...
> Beginning processing of action stack for windows8 project...
> Parsing windows8 project files...
> Parsing Windows8 project files...
> creating jsproj from project at :
> C:\Users\Carlos\Desktop\Win8-0928\platforms\windows8\CordovaApp.jsproj
> Action stack processing complete.
> Writing out windows8 project files...
> Preparing windows8 project...
> Processing configuration changes for plugins.
> Error: malformed document. First element should be <plist>
>     at Object.exports.parseStringSync
> (Z:\Documents\cordova-3.1.x\cordova-cli\node_modules\plist\lib\plist.js:80:10)
>     at Object.exports.parseFileSync
> (Z:\Documents\cordova-3.1.x\cordova-cli\node_modules\plist\lib\plist.js:19:19)
>     at
> Z:\Documents\cordova-3.1.x\cordova-cli\node_modules\plugman\src\util\config-changes.js:254:67
>     at Array.forEach (native)
>     at
> Z:\Documents\cordova-3.1.x\cordova-cli\node_modules\plugman\src\util\config-changes.js:221:67
>     at Array.forEach (native)
>     at
> Z:\Documents\cordova-3.1.x\cordova-cli\node_modules\plugman\src\util\config-changes.js:219:49
>     at Array.forEach (native)
>     at Object.module.exports.remove_plugin_changes
> (Z:\Documents\cordova-3.1.x\cordova-cli\node_modules\plugman\src\util\config-changes.js:201:35)
>     at
> Z:\Documents\cordova-3.1.x\cordova-cli\node_modules\plugman\src\util\config-changes.js:414:28
> C:\Users\Carlos\Desktop\Win8-0928>
>
>
>
>
> On Fri, Sep 27, 2013 at 8:18 PM, Jesse <pu...@gmail.com> wrote:
>
>> I have added windows8 support to the cli, and sent a pull request. [1]
>> I would like this to be included in the 3.1.0 release if possible.  Please
>> review the pull request and feel free to try it out.  There should be no
>> impact outside of windows8, and should not affect other platforms.
>>
>> Note that there are currently some issues with the windows8 platforms
>> scripts that prevent the CLI from being able to run/emulate windows8
>> projects, these are known issues and have to do with the way that windows8
>> signs apps, and the fact that you are actually building on the platform
>> where you will run, ie no attached device needed.
>>
>> The additions allow at least that you can add windows8 as a platform, and
>> add / remove plugins.
>>
>> Cheers,
>>   Jesse
>>
>> [1]
>> https://github.com/apache/cordova-cli/pull/44
>>
>>
>>
>> @purplecabbage
>> risingj.com
>>
>
>
>
> --
> Carlos Santana
> <cs...@gmail.com>
>



-- 
Carlos Santana
<cs...@gmail.com>

Re: Adding Cordova-CLI Windows8 support to 3.1.0

Posted by Carlos Santana <cs...@gmail.com>.
Jesse,
I did some testing on windows8

cordova platform add windows8
cordova platform rm windows8
cordova platform add windows8
cordova plugin add Z:\Documents\cordova-3.1.x\cordova-plugin-file -d
cordova plugin add Z:\Documents\cordova-3.1.x\cordova-plugin-camera -d

But it failed on "cordova plugin rm org.apache.cordova.camera -d"

Error: malformed document. First element should be <plist>  wtf?


C:\Users\Carlos\Desktop\Win8-0928> node
Z:\Documents\cordova-3.1.x\cordova-cli\bin\cordova plugin rm
org.apache.cordova.camera -d
Calling plugman.uninstall on plugin "org.apache.cordova.camera" for
platform "windows8"
Uninstalling org.apache.cordova.camera...
Beginning processing of action stack for windows8 project...
Parsing windows8 project files...
Parsing Windows8 project files...
creating jsproj from project at :
C:\Users\Carlos\Desktop\Win8-0928\platforms\windows8\CordovaApp.jsproj
Action stack processing complete.
Writing out windows8 project files...
Preparing windows8 project...
Processing configuration changes for plugins.
Error: malformed document. First element should be <plist>
    at Object.exports.parseStringSync
(Z:\Documents\cordova-3.1.x\cordova-cli\node_modules\plist\lib\plist.js:80:10)
    at Object.exports.parseFileSync
(Z:\Documents\cordova-3.1.x\cordova-cli\node_modules\plist\lib\plist.js:19:19)
    at
Z:\Documents\cordova-3.1.x\cordova-cli\node_modules\plugman\src\util\config-changes.js:254:67
    at Array.forEach (native)
    at
Z:\Documents\cordova-3.1.x\cordova-cli\node_modules\plugman\src\util\config-changes.js:221:67
    at Array.forEach (native)
    at
Z:\Documents\cordova-3.1.x\cordova-cli\node_modules\plugman\src\util\config-changes.js:219:49
    at Array.forEach (native)
    at Object.module.exports.remove_plugin_changes
(Z:\Documents\cordova-3.1.x\cordova-cli\node_modules\plugman\src\util\config-changes.js:201:35)
    at
Z:\Documents\cordova-3.1.x\cordova-cli\node_modules\plugman\src\util\config-changes.js:414:28
C:\Users\Carlos\Desktop\Win8-0928>




On Fri, Sep 27, 2013 at 8:18 PM, Jesse <pu...@gmail.com> wrote:

> I have added windows8 support to the cli, and sent a pull request. [1]
> I would like this to be included in the 3.1.0 release if possible.  Please
> review the pull request and feel free to try it out.  There should be no
> impact outside of windows8, and should not affect other platforms.
>
> Note that there are currently some issues with the windows8 platforms
> scripts that prevent the CLI from being able to run/emulate windows8
> projects, these are known issues and have to do with the way that windows8
> signs apps, and the fact that you are actually building on the platform
> where you will run, ie no attached device needed.
>
> The additions allow at least that you can add windows8 as a platform, and
> add / remove plugins.
>
> Cheers,
>   Jesse
>
> [1]
> https://github.com/apache/cordova-cli/pull/44
>
>
>
> @purplecabbage
> risingj.com
>



-- 
Carlos Santana
<cs...@gmail.com>