Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

Commit

Permalink
🐛 Issue #1785: plugin fails to install on windows using plugman
Browse files Browse the repository at this point in the history
  • Loading branch information
goya committed Jun 13, 2017
1 parent fa9625e commit 156adfc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion hooks/windows/setToastCapable.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
module.exports = function(context) {
console.log('Updating appxmanifests with ToastCapable=true...');
console.log('Updating appxmanifests with ToastCapable=true ...');
var path = require('path');
var fs = require('fs');

var platformProjPath = path.join(context.opts.projectRoot, 'platforms/windows');
if (!fs.existsSync(platformProjPath)) {
platformProjPath = context.opts.projectRoot;
}

var AppxManifest = require(path.join(platformProjPath, 'cordova/lib/AppxManifest'));

['package.phone.appxmanifest', 'package.windows.appxmanifest'].forEach(function(manifestPath) {
Expand Down

0 comments on commit 156adfc

Please sign in to comment.