+
Skip to content

packaging / making with electron forge increase package size  #655

@bennymeg

Description

@bennymeg
  • I have read the contribution documentation for this project.
  • I agree to follow the code of conduct that this project follows, as appropriate.
  • I have searched the issue tracker for an issue that matches the one I want to file, without success.

I have migrated to electron-forge this week after using electron-packager & electron-winstaller for quite a long time. I have use electron-forge import and set all the packaging / installer settings as they was before the change. after that I have packages and created an installer of my application, the package size increased from 394MB to 588MB and the executable size increased from 120MB to 175MB.

Is it possible that the node_modules size increased that much? or is it an internal bug?

  • I have made sure that the output directory is out/ ant that is not included in the new package.

windows 10
node v8.11.1
electron-forge v5.2.3

What command line arguments am I passing?

electron-forge package
electron-forge make

What are the dependencies changes in package.json look like?

"dependencies": {
+    "electron-compile": "^6.4.4"
},
"devDependencies": {
+    "babel-plugin-transform-async-to-generator": "^6.24.1",
+    "babel-preset-env": "^1.7.0",
+    "babel-preset-react": "^6.24.1",
+    "electron-forge": "^5.2.3",
+    "electron-prebuilt-compile": "3.0.13",
-     "electron": "^3.0.13",
-     "electron-packager": "^12.2.0",
-     "electron-winstaller": "^2.7.0",
}

What does my config.forge data in package.json look like?

"config": {
    "forge": {
      "make_targets": {
        "win32": [
          "squirrel"
        ],
        "darwin": [
          "zip"
        ],
        "linux": [
          "deb",
          "rpm"
        ]
      },
      "electronPackagerConfig": {
        "packageManager": "npm",
        "asar": true,
        "prune": true,
        "icon": "src/assets/icons/win/config.ico",
        "win32metadata": {
          "CompanyName": "name",
          "FileDescription": "decs",
          "ProductName": "name"
        }
      },
      "electronWinstallerConfig": {
        "name": "name",
        "authors": "me",
        "owners": "me",
        "noMsi": true,
        "setupIcon": "src/assets/icons/win/installer.ico",
        "iconUrl": "file:///C:/Users/me/Documents/name/src/assets/icons/win/config.ico"
      },
      "electronInstallerDebian": {},
      "electronInstallerRedhat": {},
      "github_repository": {
        "owner": "",
        "name": ""
      },
      "windowsStoreConfig": {
        "packageName": "",
        "name": "name"
      }
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载