[
https://issues.apache.org/jira/browse/CB-6322?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13951378#comment-13951378
]
ASF GitHub Bot commented on CB-6322:
------------------------------------
Github user jsoref commented on a diff in the pull request:
https://github.com/apache/cordova-cli/pull/146#discussion_r11085455
--- Diff: platforms.js ---
@@ -39,12 +41,14 @@ module.exports = {
version: '3.4.0'
},
'wp7' : {
+ hostos : ['win32'],
--- End diff --
http://stackoverflow.com/questions/8683895/variable-to-detect-operating-system-in-node-scripts?answertab=votes#tab-top
windows returns 'win32', even on 64 bit operation systems. i.e.
process.platform === 'win32' is sufficient – Raynos Dec 30 '11 at 21:44
> Simplify platforms/platform code for platform specifics
> -------------------------------------------------------
>
> Key: CB-6322
> URL: https://issues.apache.org/jira/browse/CB-6322
> Project: Apache Cordova
> Issue Type: Bug
> Components: CLI
> Affects Versions: 3.4.0
> Reporter: Josh Soref
> Assignee: Josh Soref
>
> Currently people who want to add a platform have to hack both platforms.js
> and platform.js
> Ideally they shouldn't have to hack platform.js at all.
> Before this change:
> {quote}
> $ cordova platform
> Installed platforms:
> Available platforms: android, blackberry10, firefoxos, ios
> {quote}
> After this change:
> {quote}
> $ cordova platform
> Installed platforms:
> Available platforms: amazon-fireos, android, blackberry10, firefoxos, ios
> {quote}
--
This message was sent by Atlassian JIRA
(v6.2#6252)