fix(desktop): disable MSIX virtualization

This commit is contained in:
ethernet
2026-09-11 10:58:02 -04:00
parent b3bfc3afe5
commit 3c2e1bd452
2 changed files with 9 additions and 0 deletions

View File

@@ -31,6 +31,11 @@
<Description>${description}</Description>
<Logo>${logo}</Logo>
${packageIntegrity}
<!-- Hermes owns durable state in %LOCALAPPDATA% and shares it with the
unpackaged CLI/gateway. Do not give MSIX a package-private AppData
view or the Store and sideloaded builds will split the user's state. -->
<desktop6:FileSystemWriteVirtualization>disabled</desktop6:FileSystemWriteVirtualization>
<desktop6:RegistryWriteVirtualization>disabled</desktop6:RegistryWriteVirtualization>
</Properties>
<Resources>
${resourceLanguages}

View File

@@ -221,6 +221,10 @@ module.exports = {
// time, so typecheck/test imports don't touch the filesystem.
customExtensionsPath: 'build/msix-extensions.xml',
customManifestPath: store ? 'build/store-msix-manifest.xml' : 'assets/msix-manifest.xml',
// Hermes state is deliberately shared with unpackaged CLI/gateway
// processes. Pair the manifest's disabled virtualization properties with
// the restricted capability that permits unvirtualized AppData/HKCU writes.
capabilities: ['unvirtualizedResources'],
showNameOnTiles: true
},
linux: {