Commit b8da2b94 by Sebastián Katzer

Fix windows manifest VisualElements tag

parent 901a844e
......@@ -55,14 +55,9 @@ function replace (filename, to_replace, replace_with) {
fs.writeFileSync(filename, result, 'utf8');
}
// Paths to all manifest files where the permission needs to be set
var manifests = [
'platforms/windows/package.phone.appxmanifest',
'platforms/windows/package.windows.appxmanifest',
'platforms/windows/package.windows80.appxmanifest'
];
// Includes the permission
for (var i = 0; i < manifests.length; i++) {
replace(manifests[i], '<m3:VisualElements ', '<m3:VisualElements ToastCapable="true" ');
}
// Set ToastCapable for Windows Phone
replace('platforms/windows/package.phone.appxmanifest', '<m3:VisualElements', '<m3:VisualElements ToastCapable="true"');
// Set ToastCapable for Windows 8.1
replace('platforms/windows/package.windows.appxmanifest', '<m2:VisualElements', '<m2:VisualElements ToastCapable="true"');
// Set ToastCapable for Windows 8.0
replace('platforms/windows/package.windows80.appxmanifest', '<VisualElements', '<VisualElements ToastCapable="true"');
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment