saltyshiomix / nextron

⚡ Next.js + Electron ⚡
https://npm.im/nextron
MIT License
3.69k stars 215 forks source link

How to build Windows Versions on a Mac #426

Closed fastDev01 closed 7 months ago

fastDev01 commented 7 months ago

Hey there. First of all I really love Nextron. The only issue I am facing right now is idk how to build .exe on a mac.

Here is my electron-builder.yml:

`appId: com.example.nextron productName: Product Name copyright: Copyright © 2023 directories: output: dist buildResources: resources files:

mac: target: ["dmg"]

win: target: ["nsis"] `

I know that its most likely really simple but I just dont get it.

I run npm run build for building the app

Thanks!

bm777 commented 7 months ago

@ fastDev01, add the wind option, i can build a windows from my mac.

"scripts": {
    "dev": "nextron",
    "build": "nextron build",
    "build:linux": "nextron build --linux --x64",
    "build:win32": "nextron build --win --ia32",
    "build:win64": "nextron build --win --x64",
    "postinstall": "electron-builder install-app-deps"
  },
bm777 commented 7 months ago

Will close the issue. Feel free to re-open it or create a new one.