Skip to content

In the postPackage hook,I copied some files to the program root directory, but after npm run make, only the DLL file is left #3223

Open
@dsaw111

Description

@dsaw111

Pre-flight checklist

  • I have read the contribution documentation for this project.
  • I agree to follow the code of conduct that this project uses.
  • I have searched the issue tracker for a bug that matches the one I want to file, without success.

Electron Forge version

6.1.1

Electron version

24.1.1

Operating system

Windows 10 (1803)

Last known working Electron Forge version

6.1.1

Expected behavior

Hope all files in the root directory are copied

Actual behavior

In the postPackage hook,I copied some files to the program root directory, like this:

postPackage: async (forgeConfig, options) => {
await fs.copy(path.resolve(__dirname, "./packages/xxx/build/Release"), resolve(options.outputPaths[0]));
}

but after npm run make, only the DLL file is left

Steps to reproduce

ditto

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    blocked/needs-reproIssues unable to be reproduced by maintainersbugpackageIssues related to the `package` command

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions