question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Use Node.js platform identifiers

See original GitHub issue

electron-builder should use Node.js platform identifiers just like electron-packager does.

So the platform options win and osx should become win32 and darwin.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:14 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
develarcommented, Apr 12, 2016

@justinmchase Both will be supported. So, electron-builder will be still drop-in replacement of electron-packager and logical for nodejs developers accustomed to these identifiers. But for me and other confused users it will allow to use osx/win.

2reactions
develarcommented, Apr 12, 2016

@stefanjudis I am going to allow use osx instead of darwin and win instead of win32 in the platform arg. See #301 “win and osx are a lot more user-friendly.”

to avoid inconsistency, we can introduce new option os and use it instead of platform (deprecate it).

Yeah, os is much clear, but I don’t want to disturb our users and rename/deprecate. For now, we can just allow to use osx/win.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Process | Node.js v19.3.0 Documentation
'SIGINT' from the terminal is supported on all platforms, and can usually be generated with Ctrl + C (though this may be configurable)....
Read more >
Node.js Express Tutorial: Create a User Management System
We create a list named users and then enter the data for four users inside that list—in the form of id, name, and...
Read more >
Node.js - Platform.sh Documentation
Node.js is a popular asynchronous JavaScript runtime. Deploy scalable Node.js apps of all sizes on Platform.sh. You can also develop a microservice ...
Read more >
node-machine-id - npm
Start using node-machine-id in your project by running `npm i node-machine-id`. ... Cross-platform unique machine (desktop) id discovery ...
Read more >
Request Id Tracing in Node.js Applications - ITNEXT
As you already know, if you want to have request ids in your Node.js app, you may use cls-hooked and integrate it with...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Hashnode Post

No results found