Mac installer doesn't install a CLI
See original GitHub issueI’m opening this issue to discuss solutions to install Orca as a CLI in Mac.
At the moment, electron-builder
creates a DMG installer for Orca in Mac. This DMG installer is actually a disk image. And, in our case, it contains the app bundle Plotly Orca.app
.
My understanding is that when a user double-clicks a .dmg
file, Mac mounts this disk image and prompts the user to drag the disk image onto the Applications
folder.
This means Orca is installed on /Applications/Plotly Orca.app
.
To invoke Orca from the command line, we could use open:
open -a "/Applications/Plotly Orca.app" [--args arg1 ...]
This is rather cumbersome. We could simplify things by moving open -a "/Applications/Plotly Orca.app" [--args arg1 ...]
into a script (e.g. /usr/local/bin/plotly-orca
). I’ve found two ways to do this:
-
create
/usr/local/bin/plotly-orca
on first install (see here) -
using a PKG installer and a postinstall script (not recommended)
Could any of the mac users confirm that open -a "/Applications/Plotly Orca.app" [--args arg1 ...]
works, please?
@JamesCropcho @etpinard @jackparmer what do you think about these options?
Issue Analytics
- State:
- Created 5 years ago
- Comments:12 (12 by maintainers)
Top GitHub Comments
yeah
// eslint-disable-next-line
doesn’t work for me either.Would putting the rest of
orca_electron.js
in anelse
be equivalent?This sounds 👌 to me.
FYI, post https://github.com/plotly/orca/pull/88/commits/a44fc2f8670f17ed31c6e810da624debddf07605, the
.app
file should be namedorca.app
instead ofPlotly Orca.app
.