You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ja...@apache.org on 2019/07/03 10:57:34 UTC
[cordova-windows] 01/01: feat: enable running windows projects in
admin prompt
This is an automated email from the ASF dual-hosted git repository.
janpio pushed a commit to branch janpio-admin
in repository https://gitbox.apache.org/repos/asf/cordova-windows.git
commit 2603189bb860cc8752ded09481a7851fa5d4fa17
Author: Jan Piotrowski <pi...@gmail.com>
AuthorDate: Wed Jul 3 12:56:56 2019 +0200
feat: enable running windows projects in admin prompt
---
template/cordova/lib/run.js | 3 +++
1 file changed, 3 insertions(+)
diff --git a/template/cordova/lib/run.js b/template/cordova/lib/run.js
index a0ac238..0b0a2ea 100644
--- a/template/cordova/lib/run.js
+++ b/template/cordova/lib/run.js
@@ -34,8 +34,11 @@ module.exports.run = function (options) {
// Check if ran from admin prompt and fail quickly if CLI has administrative permissions
// http://stackoverflow.com/a/11995662/64949
if (ranWithElevatedPermissions()) {
+ /*
return Q.reject(new CordovaError('Can not run this platform with administrative ' +
'permissions. Must be run from a non-admin prompt.'));
+ */
+ console.log('!!! Running in admin prompt, trying anyway !!!');
}
// parse arg
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org