Patch app-builder-lib to save win asar integrity

This commit is contained in:
Fedor Indutny
2024-06-03 16:34:14 -07:00
committed by GitHub
parent 507a73ddcb
commit 2e98c0a866
4 changed files with 82 additions and 2 deletions

View File

@@ -43,9 +43,9 @@ export async function afterPack({
[FuseV1Options.EnableNodeOptionsEnvironmentVariable]: false,
// Disables the --inspect and --inspect-brk family of CLI options
[FuseV1Options.EnableNodeCliInspectArguments]: enableInspectArguments,
// Enables validation of the app.asar archive on macOS
// Enables validation of the app.asar archive on macOS/Windows
[FuseV1Options.EnableEmbeddedAsarIntegrityValidation]:
electronPlatformName === 'darwin',
electronPlatformName === 'darwin' || electronPlatformName === 'win32',
// Enforces that Electron will only load your app from "app.asar" instead of
// its normal search paths
[FuseV1Options.OnlyLoadAppFromAsar]: true,