Multiple targets not working via Programmatic API
See original GitHub issue- Version: 18.6.2
- Target: osx, windows, linux (tried variations of arch and target types, thats not the issue here)
The programmatic API docs shows an example with:
builder.build({
targets: Platform.MAC.createTarget(),
config: {
"//": "build options, see https://goo.gl/ZhRfla"
}
})
And it works perfectly fine for a single platform build, same for Linux and Windows. However, whenever I try passing multiple targets, e.g.:
targets: [Platform.WINDOWS.createTarget('squirrel', Arch.ia32), Platform.LINUX.createTarget('appimage', Arch.ia32), Platform.MAC.createTarget()]
It throws an error:
electron-builder 18.6.2
[14:40:00] Error: Unknown platform: windows,[object Map]
at Packager.createHelper (/Users/paulius/Code/timer-app/node_modules/electron-builder/src/packager.ts:319:15)
Am I doing something wrong here or are multiple targets just not supported?
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Add Targets to Blackbox Exporter programmatically via API ...
I couldn't find a programmatic way to manage targets so I'm add just editing the text and manually reloading the config via curl....
Read more >Detect and Track Multiple Targets Simultaneously - Vuforia
Vuforia allows you to track multiple targets simultaneously. This enables interactions between targets as two or more targets are detected while in the...
Read more >What is an Application Programming Interface (API)? - IBM
Application programming interfaces, or APIs, simplify software development by enabling applications to exchange data and functionality easily and more ...
Read more >Behavior changes: Apps targeting Android 13 or higher
Learn about changes in Android 13 that will affect apps when they target Android 13 or higher.
Read more >Common Configuration - electron-builder
ico (if several extensions specified, first is used) or to application icon. Not supported on Linux, file issue if need (default icon will...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I changed
mac: ["default"]
tomac: ["mas"]
and it’s building MAS versions nowYep, that seems to work now
Ran without errors, but what about the poor 32-bit users? 😄
My solution: