mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-17 22:37:04 +08:00
fix(electron): disable runAsNode fuse (#13406)
fix AF-2781 #### PR Dependency Tree * **PR #13406** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Updated Electron app configuration to include an additional plugin for enhanced packaging options. * Added a new development dependency to support the updated configuration. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -3,7 +3,9 @@ import { rm, symlink } from 'node:fs/promises';
|
||||
import path from 'node:path';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
|
||||
import { FuseV1Options, FuseVersion } from '@electron/fuses';
|
||||
import { utils } from '@electron-forge/core';
|
||||
import { FusesPlugin } from '@electron-forge/plugin-fuses';
|
||||
|
||||
import {
|
||||
appIdMap,
|
||||
@@ -202,7 +204,13 @@ export default {
|
||||
},
|
||||
},
|
||||
makers,
|
||||
plugins: [{ name: '@electron-forge/plugin-auto-unpack-natives', config: {} }],
|
||||
plugins: [
|
||||
{ name: '@electron-forge/plugin-auto-unpack-natives', config: {} },
|
||||
new FusesPlugin({
|
||||
version: FuseVersion.V1,
|
||||
[FuseV1Options.RunAsNode]: false,
|
||||
}),
|
||||
],
|
||||
hooks: {
|
||||
readPackageJson: async (_, packageJson) => {
|
||||
// we want different package name for canary build
|
||||
|
||||
Reference in New Issue
Block a user