Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id A4E5A200828 for ; Fri, 13 May 2016 21:18:01 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A385316099F; Fri, 13 May 2016 19:18:01 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 1EB3A1602BE for ; Fri, 13 May 2016 21:18:00 +0200 (CEST) Received: (qmail 67623 invoked by uid 500); 13 May 2016 19:18:00 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Received: (qmail 67612 invoked by uid 99); 13 May 2016 19:18:00 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 May 2016 19:17:59 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id DB006DFC4F; Fri, 13 May 2016 19:17:59 +0000 (UTC) From: omefire To: dev@cordova.apache.org Reply-To: dev@cordova.apache.org References: In-Reply-To: Subject: [GitHub] cordova-windows pull request: CB-11204: Catch when SDK not present... Content-Type: text/plain Message-Id: <20160513191759.DB006DFC4F@git1-us-west.apache.org> Date: Fri, 13 May 2016 19:17:59 +0000 (UTC) archived-at: Fri, 13 May 2016 19:18:01 -0000 Github user omefire commented on a diff in the pull request: https://github.com/apache/cordova-windows/pull/177#discussion_r63237158 --- Diff: bin/lib/check_reqs.js --- @@ -362,6 +362,36 @@ module.exports.run = function () { }); }; +/** Checks if Windows SDK required to build the target_platform is present + * @param {String} target_platorm Target platform ('8.1' or '10.0') + * @return {Boolean} Whether the min SDK required to build the platform is present + * + */ +module.exports.isWinSDKPresent = function (target_platform) { + return getInstalledWindowsSdks() + .then(function (installedSdks) { + var reqVersion = Version.tryParse(REQUIRED_VERSIONS[target_platform].windowssdk); + var hasSdkInstalled = installedSdks.some(function (installedSdk) { --- End diff -- same goes for ```isPhoneSDKPresent()``` --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org For additional commands, e-mail: dev-help@cordova.apache.org