Skip to content
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

macOS app bundle example should use relative paths #67

Open
parro-it opened this issue Mar 19, 2018 · 1 comment
Open

macOS app bundle example should use relative paths #67

parro-it opened this issue Mar 19, 2018 · 1 comment
Milestone

Comments

@parro-it
Copy link
Owner

moved from discussion #66

@mischnic
Copy link
Collaborator

mischnic commented Mar 19, 2018

/Users/parroit/.nvm/versions/node/v9.5.0/bin/node /Users/parroit/repos/libui-node/examples/control-gallery.js&

can be replaced by

/Users/parroit/.nvm/versions/node/v9.5.0/bin/node "$(dirname $0)/../../../control-gallery.js"

But the main problem is that node is usually not in the default PATH (/usr/bin:/bin:/usr/sbin:/sbin)


PATH="/usr/local/bin:$PATH" node "$(dirname $0)/../../../control-gallery.js"

would solve it for me (I installed node with homebrew), but not when using nvm.
It there something like ~/.nvm/current/bin/node or nvm path current?


A reminder for myself while we're at it:
This shows "Control Gallery" instead of "node" in the menubar.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>CFBundleName</key>
	<string>Control Gallery</string>
</dict>
</plist>

@mischnic mischnic changed the title macOs .app example should use relative paths macOS app bundle example should use relative paths Mar 20, 2018
@parro-it parro-it added this to the 0_3_0 milestone Apr 14, 2018
@parro-it parro-it mentioned this issue May 3, 2018
10 tasks
@parro-it parro-it modified the milestones: 0_3_0, 0.4.0 May 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants