-
-
Notifications
You must be signed in to change notification settings - Fork 76
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
cross platform compling #168
Comments
problem resolved ! I found |
@michalzaq12 Would love to know this as well. Trying to build for Windows and Mac while using a Mac. I tried the above, but wasn't able to get it working. Ideally I'd be able to use the CLI commands from Being able to use the multi-platform and publishing ( |
@michalzaq12 Any update on this one? Unclear how to achieve this with the programmatic API for electron-builder. Would be really helpful to have in the documentation. |
Found this https://www.electron.build/#programmatic-usage, but still a few issues:
Could you advise how you would suggest to tackle this? Is it out of scope for your package? Example to build just for Windows on Mac ( const Platform = require('electron-builder').Platform
const builder = new ElectronBuilder({
cliOptions: {
config: path.join(__dirname, '../builder.config.js'),
targets: Platform.WINDOWS.createTarget()
}
}) Example to use Publish ( require('dotenv').config() // Load GH_TOKEN from .env file
const builder = new ElectronBuilder({
cliOptions: {
config: path.join(__dirname, '../builder.config.js'),
publish: 'always',
}
}) |
Hey @nwittwer, it is a little out of scope from this template.
|
@michalzaq12 Ok! And thanks for links. Yes, it appears that having this in the mac: {
publish: ['github']
},
win: {},
linux: {} To follow up (and in case it might help others), I started going down the TravisCI route, and I put together some of the configuration needed to get this project working on it: https://gist.github.com/nwittwer/60aef18c9b4e9506534bdcc0e4a7c3f5. Let me know if you think it would make sense to add any of it to maybe the "Guides > Building notes" section of your documentation. |
@zkcrescent @nwittwer I added support for the CLI commands from 🚀 |
@michalzaq12 Looks very detailed and relevant, thanks! I'll let you know once I have a chance to use it |
how can I build windows version at macos with electron-nuxt? I'm a new electron user, thanks for your help.
The text was updated successfully, but these errors were encountered: