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

Any interest in packaging as an executable? #6

Open
nsbruce opened this issue Jul 7, 2023 · 5 comments
Open

Any interest in packaging as an executable? #6

nsbruce opened this issue Jul 7, 2023 · 5 comments

Comments

@nsbruce
Copy link

nsbruce commented Jul 7, 2023

I love the project! I don't by default have node or npm installed at work so getting it setup felt like a lot of overhead.

I was thinking that packaging it with something like pkg would be helpful although does open the project to supporting different architectures.

If you're interested I can look at opening a PR.

@chfritz
Copy link
Owner

chfritz commented Jul 7, 2023

Great idea! I was looking into ways to support at least older node versions, incl. those that are available on Ubuntu 20+ via apt. But packaging using pkg might be even better.

@chfritz
Copy link
Owner

chfritz commented Jul 9, 2023

I couldn't get it to work with pkg. I also tried nexe but that failed, too.

Looks like node.js now has experimental support for single-executable application built-in. Thinking of trying that next but it will require to first transpiling from ESM to commonJS.

@nsbruce
Copy link
Author

nsbruce commented Aug 22, 2023

I also have not had luck with pkg or transpiling for node's built in. Still fiddling with it when I find time.

@jhogendorn
Copy link

I'd love this as a packaged binary so it can be distributed in homebrew. what issues are you running into with pkg etc at the moment?

@chfritz
Copy link
Owner

chfritz commented Nov 24, 2023

I don't remember what the issue with pkg was, but at this point I'm more interested in learning about the new node.js native support for creating executables. The next step for that is transpiling to commonJS.

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

3 participants