- Add Electron Forge configuration in forge.config.js for packaging and building the app - Create main Electron entry point in main.cjs for application initialization - Update package.json scripts for Electron development and building - Add necessary Electron dependencies to package.json - Modify .gitignore to exclude build artifacts and temporary files - Refactor Footer and Navbar components to remove unused imports - Enhance NostrFeed component by removing unnecessary connection logic - Update i18n setup for better type safety and locale management - Refactor Home component to clean up unused code - Extend Nostr store to manage account state with TypeScript interfaces
44 lines
1.1 KiB
JavaScript
44 lines
1.1 KiB
JavaScript
const { FusesPlugin } = require('@electron-forge/plugin-fuses');
|
|
const { FuseV1Options, FuseVersion } = require('@electron/fuses');
|
|
|
|
module.exports = {
|
|
packagerConfig: {
|
|
asar: true,
|
|
},
|
|
rebuildConfig: {},
|
|
makers: [
|
|
{
|
|
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: {},
|
|
},
|
|
// 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,
|
|
}),
|
|
],
|
|
};
|