|
@@ -44,3 +44,12 @@ if (process.type === 'browser') {
|
|
|
global.setTimeout = wrapWithActivateUvLoop(timers.setTimeout)
|
|
|
global.setInterval = wrapWithActivateUvLoop(timers.setInterval)
|
|
|
}
|
|
|
+
|
|
|
+// If we're running as a Windows Store app, __dirname will be set
|
|
|
+// to C:/Program Files/WindowsApps.
|
|
|
+//
|
|
|
+// Nobody else get's to install there, changing the path is forbidden
|
|
|
+// We can therefore say that we're running as appx
|
|
|
+if (process.platform === 'win32' && __dirname.indexOf('\\Program Files\\WindowsApps\\') === 2) {
|
|
|
+ process.windowsstore = true
|
|
|
+}
|