IYUUPlus-Windows/forge.config.js

59 lines
1.4 KiB
JavaScript
Raw Permalink Normal View History

2024-06-27 17:29:25 +08:00
const { FusesPlugin } = require('@electron-forge/plugin-fuses');
const { FuseV1Options, FuseVersion } = require('@electron/fuses');
module.exports = {
packagerConfig: {
asar: true,
2024-06-29 00:41:06 +08:00
icon: 'iyuu',
2024-06-28 12:21:47 +08:00
extraResource: [
'run/',
2024-06-28 18:37:00 +08:00
'iyuu/',
2024-06-28 12:21:47 +08:00
]
2024-06-27 17:29:25 +08:00
},
rebuildConfig: {},
makers: [
{
name: '@electron-forge/maker-squirrel',
2024-06-29 00:41:06 +08:00
config: {
setupIcon: 'iyuu.ico',
},
2024-06-27 17:29:25 +08:00
},
{
name: '@electron-forge/maker-zip',
platforms: ['darwin'],
2024-06-29 00:41:06 +08:00
config: {
icon: 'iyuu.icns',
}
2024-06-27 17:29:25 +08:00
},
{
name: '@electron-forge/maker-deb',
2024-06-29 00:41:06 +08:00
config: {
icon: 'iyuu.png',
},
2024-06-27 17:29:25 +08:00
},
{
name: '@electron-forge/maker-rpm',
2024-06-29 00:41:06 +08:00
config: {
icon: 'iyuu.png',
},
2024-06-27 17:29:25 +08:00
},
],
plugins: [
{
name: '@electron-forge/plugin-auto-unpack-natives',
config: {},
},
// 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,
}),
],
};