Commit b8da2b94 by Sebastián Katzer

Fix windows manifest VisualElements tag

parent 901a844e
...@@ -55,14 +55,9 @@ function replace (filename, to_replace, replace_with) { ...@@ -55,14 +55,9 @@ function replace (filename, to_replace, replace_with) {
fs.writeFileSync(filename, result, 'utf8'); fs.writeFileSync(filename, result, 'utf8');
} }
// Paths to all manifest files where the permission needs to be set // Set ToastCapable for Windows Phone
var manifests = [ replace('platforms/windows/package.phone.appxmanifest', '<m3:VisualElements', '<m3:VisualElements ToastCapable="true"');
'platforms/windows/package.phone.appxmanifest', // Set ToastCapable for Windows 8.1
'platforms/windows/package.windows.appxmanifest', replace('platforms/windows/package.windows.appxmanifest', '<m2:VisualElements', '<m2:VisualElements ToastCapable="true"');
'platforms/windows/package.windows80.appxmanifest' // Set ToastCapable for Windows 8.0
]; replace('platforms/windows/package.windows80.appxmanifest', '<VisualElements', '<VisualElements ToastCapable="true"');
// Includes the permission
for (var i = 0; i < manifests.length; i++) {
replace(manifests[i], '<m3:VisualElements ', '<m3: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