1
0
Fork 0
mirror of https://gitlab.com/futo-org/fcast.git synced 2025-07-06 22:19:50 +00:00
fcast/receivers/electron/forge.config.js

55 lines
1.5 KiB
JavaScript
Raw Normal View History

2024-09-17 09:28:05 -05:00
const { FusesPlugin } = require('@electron-forge/plugin-fuses');
const { FuseV1Options, FuseVersion } = require('@electron/fuses');
module.exports = {
packagerConfig: {
asar: true,
2024-10-02 10:53:02 -05:00
osxSign: {
2024-10-02 12:11:35 -05:00
// "identity": process.env.FCAST_APPLE_SIGN_ID
2024-10-02 10:53:02 -05:00
},
2024-09-17 09:28:05 -05:00
osxNotarize: {
2024-10-02 12:11:35 -05:00
// keychainProfile: "codesign"
appleApiKey: process.env.FCAST_APPLE_API_KEY,
appleApiKeyId: process.env.FCAST_APPLE_API_KEY_ID,
appleApiIssuer: process.env.FCAST_APPLE_API_ISSUER
2024-09-17 09:28:05 -05:00
}
},
rebuildConfig: {},
makers: [
2024-10-01 14:49:11 -05:00
// {
// name: '@electron-forge/maker-squirrel',
// config: {},
// },
2024-09-17 09:28:05 -05:00
{
name: '@electron-forge/maker-zip',
platforms: ['win32', 'darwin', 'linux'],
},
2024-10-01 14:49:11 -05:00
// {
2024-10-01 21:43:23 -05:00
2024-10-01 14:49:11 -05:00
// name: '@electron-forge/maker-deb',
// config: {},
// },
// {
// name: '@electron-forge/maker-rpm',
// config: {},
// },
2024-09-17 09:28:05 -05: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,
}),
],
};