Skip to content

How can I build a windows package running on macOS? #322

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
2 of 4 tasks
CezaryBD opened this issue Feb 28, 2025 · 3 comments
Open
2 of 4 tasks

How can I build a windows package running on macOS? #322

CezaryBD opened this issue Feb 28, 2025 · 3 comments
Labels
documentation Improvements or additions to documentation

Comments

@CezaryBD
Copy link

CezaryBD commented Feb 28, 2025

Issue Type

  • Reporting a typo
  • Reporting a documentation bug
  • Documentation improvement
  • Documentation feedback

Request Description

Hello,

I cannot find a single example on how to build a windows msi/exe while developing on macos.
How can I achieve that?

Is the https://www.electron.build/multi-platform-build even supported?

Can you put a documentation for that?

Thank you

@CezaryBD CezaryBD added the documentation Improvements or additions to documentation label Feb 28, 2025
@CezaryBD
Copy link
Author

It might be also a bug, because I have only a windows target in the maker options, but it builds a *.dmg.
Effective config:

directories:
  output: /Users/user/GitHub/app/dist/executables
  buildResources: build
productName: App
copyright: Copyright
electronCompile: false
npmRebuild: true
asar: true
win:
  artifactName: App
  target: nsis
electronVersion: 34.1.1

@CezaryBD
Copy link
Author

CezaryBD commented Mar 3, 2025

@bennymeg
Hello. Is there anything I can do in such a case?

@bennymeg
Copy link
Owner

bennymeg commented Mar 3, 2025

I do not have a mac pc to test this at the moment.
Multi-platform build is supported, but this might be a bug at this process.
Maybe some members of the community which use a mac could share their experience on the matter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants