55 lines
1.4 KiB
JavaScript
55 lines
1.4 KiB
JavaScript
// Backup config tanpa icon - gunakan jika ada masalah dengan icon
|
|
const { FusesPlugin } = require('@electron-forge/plugin-fuses');
|
|
const { FuseV1Options, FuseVersion } = require('@electron/fuses');
|
|
|
|
module.exports = {
|
|
packagerConfig: {
|
|
asar: true,
|
|
name: 'CareIt',
|
|
executableName: 'CareIt',
|
|
// Icon dihapus untuk menghindari error
|
|
},
|
|
rebuildConfig: {},
|
|
makers: [
|
|
{
|
|
name: '@electron-forge/maker-squirrel',
|
|
config: {
|
|
name: 'CareIt',
|
|
authors: 'CareIt Development Team',
|
|
description: 'CareIt - Aplikasi Billing dan Manajemen Rumah Sakit',
|
|
// setupIcon dihapus untuk menghindari error
|
|
},
|
|
},
|
|
{
|
|
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: {},
|
|
},
|
|
new FusesPlugin({
|
|
version: FuseVersion.V1,
|
|
[FuseV1Options.RunAsNode]: false,
|
|
[FuseV1Options.EnableCookieEncryption]: true,
|
|
[FuseV1Options.EnableNodeOptionsEnvironmentVariable]: false,
|
|
[FuseV1Options.EnableNodeCliInspectArguments]: false,
|
|
[FuseV1Options.EnableEmbeddedAsarIntegrityValidation]: true,
|
|
[FuseV1Options.OnlyLoadAppFromAsar]: true,
|
|
}),
|
|
],
|
|
};
|
|
|
|
|
|
|