Skip to content

Commit

Permalink
move shim packages
Browse files Browse the repository at this point in the history
  • Loading branch information
WamWooWam committed Jun 4, 2021
1 parent 67fcc4b commit ec1e12d
Show file tree
Hide file tree
Showing 1,349 changed files with 8 additions and 12,108 deletions.
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"windows": {
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron.cmd"
},
"args" : [".", "winstore/Windows.Store"],
"args" : ["."],
"outputCapture": "std"
}
]
Expand Down
10 changes: 7 additions & 3 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,11 @@ function appxUriHandler(request: any, callback: any) {

// ensure the package actually exists
if (!fs.existsSync(packagePath)) {
console.warn(`notfound ms-appx://${packageName} -> package doesn't exist`)
return callback({ error: E_NOTFOUND });
packagePath = path.join(dirName, "shims", packageName);
if (!fs.existsSync(packagePath)) {
console.warn(`notfound ms-appx://${packageName} -> package doesn't exist`)
return callback({ error: E_NOTFOUND });
}
}

let filePath = path.normalize(path.join(packagePath, pathName));
Expand Down Expand Up @@ -138,6 +141,7 @@ function appxUriHandler(request: any, callback: any) {
}

app.allowRendererProcessReuse = true;
app.commandLine.appendSwitch('disable-site-isolation-trials')
app.commandLine.appendSwitch('enable-experimental-web-platform-features')

const filePath = path.join(app.getPath('appData'), "app-launch-flags.txt")
Expand Down Expand Up @@ -184,5 +188,5 @@ app.whenReady().then(() => {
}
});

win.loadURL("ms-appx://wankerr.desktop/index.html")
win.loadURL("ms-appx://wankerr.desktop1/index.html")
});
1,051 changes: 0 additions & 1,051 deletions packages/microsoft.bingnews.shim/yarn.lock

This file was deleted.

3,297 changes: 0 additions & 3,297 deletions packages/microsoft.microsoftprojectsiena.shim/yarn.lock

This file was deleted.

1,159 changes: 0 additions & 1,159 deletions packages/microsoft.windowscommunicationsapps.shim/yarn.lock

This file was deleted.

3 changes: 0 additions & 3 deletions packages/wankerr.desktop1/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,6 @@ <h1 class="start-title">Start</h1>
data-package-name="microsoft.windowsphotos"
data-id="Microsoft.WindowsLive.ModernPhotos">
</div>
<div class="tile-container" data-tile-size="wide310x150"
data-package-name="winstore" data-id="Windows.Store">
</div>
<div class="tile-container" data-tile-size="wide310x150"
data-package-name="Microsoft.Bing" data-id="Microsoft.Bing">
</div>
Expand Down
3,297 changes: 0 additions & 3,297 deletions packages/wikimediafoundation.wikipedia.shim/yarn.lock

This file was deleted.

3,297 changes: 0 additions & 3,297 deletions packages/zeptolabuklimited.cuttherope.shim/yarn.lock

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit ec1e12d

Please sign in to comment.