Co-authored-by: Thomas Trompette <thomas.trompette@sfr.fr> Co-authored-by: bosiraphael <raphael.bosi@gmail.com> Co-authored-by: Weiko <corentin@twenty.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions <github-actions@twenty.com> Co-authored-by: Charles Bochet <charles@twenty.com>
90 lines
2.3 KiB
JavaScript
90 lines
2.3 KiB
JavaScript
const { FusesPlugin } = require('@electron-forge/plugin-fuses');
|
|
const { FuseV1Options, FuseVersion } = require('@electron/fuses');
|
|
|
|
module.exports = {
|
|
packagerConfig: {
|
|
asar: {
|
|
unpackDir: "node_modules/@recallai"
|
|
},
|
|
osxSign: process.env.SKIP_SIGN ? false : {
|
|
continueOnError: false,
|
|
optionsForFile: (_) => {
|
|
return {
|
|
entitlements: './Entitlements.plist'
|
|
};
|
|
}
|
|
},
|
|
icon: './twenty',
|
|
extendInfo: {
|
|
NSUserNotificationAlertStyle: "alert",
|
|
}
|
|
},
|
|
rebuildConfig: {},
|
|
makers: [
|
|
{
|
|
name: '@electron-forge/maker-dmg'
|
|
},
|
|
// {
|
|
// name: '@electron-forge/maker-squirrel',
|
|
// config: {},
|
|
// },
|
|
// {
|
|
// name: '@electron-forge/maker-zip',
|
|
// platforms: ['darwin'],
|
|
// },
|
|
// {
|
|
// name: '@electron-forge/maker-deb',
|
|
// config: {},
|
|
// },
|
|
// {
|
|
// name: '@electron-forge/maker-rpm',
|
|
// config: {},
|
|
// },
|
|
],
|
|
plugins: [
|
|
{
|
|
name: '@electron-forge/plugin-auto-unpack-natives',
|
|
config: {},
|
|
},
|
|
{
|
|
name: '@electron-forge/plugin-webpack',
|
|
config: {
|
|
port: 3042,
|
|
devContentSecurityPolicy: "default-src * 'unsafe-inline' 'unsafe-eval' data: blob: filesystem: mediastream: file:;",
|
|
mainConfig: './webpack.main.config.js',
|
|
renderer: {
|
|
config: './webpack.renderer.config.js',
|
|
entryPoints: [
|
|
{
|
|
html: './src/index.html',
|
|
js: './src/renderer.js',
|
|
name: 'main_window',
|
|
preload: {
|
|
js: './src/preload.js',
|
|
},
|
|
},
|
|
],
|
|
},
|
|
},
|
|
},
|
|
{
|
|
name: "@timfish/forge-externals-plugin",
|
|
config: {
|
|
externals: ["@recallai/desktop-sdk"],
|
|
includeDeps: true
|
|
}
|
|
},
|
|
// Fuses are used to enable/disable various Electron functionality
|
|
// at package time, before code signing the application
|
|
new FusesPlugin({
|
|
version: FuseVersion.V1,
|
|
[FuseV1Options.RunAsNode]: false,
|
|
[FuseV1Options.EnableCookieEncryption]: true,
|
|
[FuseV1Options.EnableNodeOptionsEnvironmentVariable]: false,
|
|
[FuseV1Options.EnableNodeCliInspectArguments]: false,
|
|
[FuseV1Options.EnableEmbeddedAsarIntegrityValidation]: true,
|
|
[FuseV1Options.OnlyLoadAppFromAsar]: true,
|
|
}),
|
|
],
|
|
};
|