electron-forge

v2026.09.24

Package and distribute Electron apps with a full build pipeline. Use when scaffolding, configuring makers/publishers/plugins, or extending Forge.

GitHub
安装命令
npx skhub add hairyf/electron-forge
Markdown
SKILL.md

Electron Forge is an all-in-one tool for packaging and distributing Electron applications. It combines packaging, code signing, installers, and publishing into one pipeline and supports custom plugins, makers, and publishers.

Skills are based on Electron Forge (docs as of 2026-01-30), generated from electron-forge-docs.

Core References

TopicDescriptionReference
Why Electron ForgeMotivation, value proposition, Forge vs Buildercore-why-electron-forge
Build LifecyclePackage → Make → Publish; hooks; cross-platformcore-build-lifecycle
CLIInit, import, package, make, publish, start; flags; programmatic APIcore-cli

Configuration

TopicDescriptionReference
Configurationforge.config.js, packagerConfig, makers, publishers, plugins, hooks, buildIdentifierconfig-configuration
HooksgenerateAssets, preStart, postPackage, preMake, postMake, readPackageJson, etc.config-hooks
TypeScript configforge.config.ts, ForgeConfig, constructor syntaxconfig-typescript
Plugins overviewBundler (Webpack, Vite) and utility pluginsconfig-plugins-overview
Webpack pluginmain/renderer config, magic globals, HMR, native modulesconfig-plugins-webpack
Vite pluginbuild/renderer entries, HMR globals, native externalsconfig-plugins-vite
Makers overviewConfig, platforms; DMG, ZIP, Squirrel, deb, rpm, etc.config-makers-overview
Publishers overviewGitHub, S3, Nucleus; config; auto-updateconfig-publishers-overview

Features

TopicDescriptionReference
Import existing projectimport command and manual setupfeatures-import-existing-project
Built-in templateswebpack, vite, TypeScript variants; create-electron-appfeatures-templates

Guides

TopicDescriptionReference
Code signingmacOS and Windows; where to configureguides-code-signing

Advanced

TopicDescriptionReference
Auto updateupdate.electronjs.org, S3, custom servers (Nucleus, etc.)advanced-auto-update
DebuggingMain process: CLI, VS Code, JetBrainsadvanced-debugging
Writing pluginsPluginBase, getHooks, startLogicadvanced-extending-plugins
Writing makersMakerBase, isSupportedOnCurrentPlatform, makeadvanced-extending-makers
Writing publishersPublisherBase, publish; multi-call behavioradvanced-extending-publishers
Writing templatesForgeTemplate, requiredForgeVersion, initializeTemplateadvanced-extending-templates
发现
标签

此技能尚未发布标签。

版本
最新版本元数据

版本

v2026.09.24

发布时间

2026年9月24日

分类

未分类

许可证

MIT

源路径

skills/electron-forge

默认分支

main

最新提交

4f463c7

Tree SHA

73bcd03