Add mac sandbox build support

This commit is contained in:
yash-signal
2026-02-27 12:57:31 -06:00
committed by Yash
parent 54e5b64ab0
commit e3560adbcf
9 changed files with 102 additions and 10 deletions
+5 -3
View File
@@ -13,7 +13,7 @@ export async function afterPack({
const { productFilename } = packager.appInfo;
let target;
if (electronPlatformName === 'darwin') {
if (electronPlatformName === 'darwin' || electronPlatformName === 'mas') {
target = `${productFilename}.app`;
} else if (electronPlatformName === 'win32') {
target = `${productFilename}.exe`;
@@ -43,9 +43,11 @@ 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/Windows
// Enables validation of the app.asar archive on macOS/Windows.
[FuseV1Options.EnableEmbeddedAsarIntegrityValidation]:
electronPlatformName === 'darwin' || electronPlatformName === 'win32',
electronPlatformName === 'darwin' ||
electronPlatformName === 'mas' ||
electronPlatformName === 'win32',
// Enforces that Electron will only load your app from "app.asar" instead of
// its normal search paths
[FuseV1Options.OnlyLoadAppFromAsar]: true,