Skip to content

Commit ebfa47f

Browse files
JasonWarrenUKclaude
andcommitted
feat(build): enhance DMG maker configuration with custom layout
Add improved DMG installer configuration including custom name, window sizing, and drag-to-Applications layout. Remove deprecated manual codesign script from package.json as it's no longer needed. - Configure DMG with branded name "ILR File Creator" - Set custom window dimensions (660x400) for installer - Add file and Applications folder positioning for better UX - Include commented asset paths for future background/icon customization - Remove manual codesign script (handled by forge) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
1 parent 8ab1098 commit ebfa47f

File tree

2 files changed

+16
-17
lines changed

2 files changed

+16
-17
lines changed

forge.config.js

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,31 @@ const { FusesPlugin } = require("@electron-forge/plugin-fuses");
22
const { FuseV1Options, FuseVersion } = require("@electron/fuses");
33

44
module.exports = {
5-
packagerConfig: {
6-
asar: true,
7-
platform: ["darwin", "win32"],
8-
},
5+
packagerConfig: { asar: true, platform: ["darwin", "win32"] },
96
rebuildConfig: {},
107
makers: [
118
{
129
name: "@electron-forge/maker-dmg",
1310
platforms: ["darwin"],
1411
config: {
1512
format: "ULFO",
16-
},
17-
},
18-
{
19-
name: "@electron-forge/maker-zip",
20-
platforms: ["win32"],
13+
name: "ILR File Creator",
14+
// background: "./assets/dmg-background.png",
15+
// icon: "./assets/icon.icns",
16+
overwrite: true,
17+
additionalDMGOptions: {
18+
window: { size: { width: 660, height: 400 } },
19+
contents: [
20+
{ x: 180, y: 170, type: "file", path: "/path/to/app" },
21+
{ x: 480, y: 170, type: "link", path: "/Applications" }
22+
]
23+
}
24+
}
2125
},
26+
{ name: "@electron-forge/maker-zip", platforms: ["win32"] },
2227
],
2328
plugins: [
24-
{
25-
name: "@electron-forge/plugin-auto-unpack-natives",
26-
config: {},
27-
},
28-
// Fuses are used to enable/disable various Electron functionality
29-
// at package time, before code signing the application
29+
{ name: "@electron-forge/plugin-auto-unpack-natives", config: {} },
3030
new FusesPlugin({
3131
version: FuseVersion.V1,
3232
[FuseV1Options.RunAsNode]: false,

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
"scripts": {
77
"start": "electron-forge start",
88
"package": "electron-forge package",
9-
"make": "electron-forge make",
10-
"codesign": "codesign --force --deep --sign - 'out/ilr_file_creator-darwin-arm64/ilr_file_creator.app'"
9+
"make": "electron-forge make"
1110
},
1211
"keywords": [],
1312
"contributors": [

0 commit comments

Comments
 (0)