Skip to content

build --target dir doesn't work #531

@dfabulich

Description

@dfabulich

https://github.com/electron-userland/electron-builder/blob/master/README.md

The README says to install a pack script like this:

"scripts": {
  "postinstall": "install-app-deps",
  "pack": "build --target dir",
  "dist": "build"
}

And then you can run npm run dist (to package in a distributable format (e.g. dmg, windows installer, deb package)) or npm run pack.

But the build command doesn't accept a target parameter, so if you actually try to npm run pack, you just get an error message, Unknown argument: target

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