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.

Could caxa be generalized to package other binary projects + their project sources?

See original GitHub issue

Caxa works very well for Node.js projects. I’ve packaged my ClojureScript interpreter (as a Node.js library) with it and it runs fine:

https://github.com/babashka/nbb/tree/main/doc/caxa

I have another Clojure interpreter project where the interpreter itself is already a binary:

https://github.com/babashka/babashka

The binary is called bb and you would call it with:

bb foo.clj

for example.

Perhaps caxa could support a more general approach than only packaging Node.js applications since the problem is very similar to if I would want to package babashka + some foo.clj script.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

6reactions
borkdudecommented, Feb 21, 2022

Wow, it already works with bb!

$ echo '(println "Hello world!")' > foo.clj
$ bash <(curl https://raw.githubusercontent.com/babashka/babashka/master/install) --version 0.7.6-SNAPSHOT --dir .
$ ./bb foo.clj
Hello world!
$ npx caxa --input . --output hello -- "{{caxa}}/bb" "{{caxa}}/foo.clj"
npx: installed 96 in 4.544s
$ ./hello
Hello world!
1reaction
leafaccommented, Mar 15, 2022

Does caxa optimize extraction by looking if there was already a previously extracted version of the binary in the cache/temporary directory?

👍 Yes, it does. It’s even smart enough to detect extractions that failed in the middle, or to deal with multiple invocations leading to race conditions on the extraction.

Read more comments on GitHub >

github_iconTop Results From Across the Web

caxa/README.md at main - GitHub
Package Node.js applications into executable binaries - caxa/README.md at main · leafac/caxa. ... Doesn't hide your JavaScript source code in any way.
Read more >
caxa: Package Node.js Applications Into Executable Binaries
When you first run a binary produced by caxa, it extracts the source the whole project (and the bundled node executable) into a...
Read more >
Single binary executable packages - Hacker News
You can put multiple single-file apps in a directory on your PATH, no futzing with symlinks ... Caxa - Package Node.js applications into...
Read more >
Managing the Complexity of Large Free and Open Source ...
and can be adapted to different contexts more easily, be- ... A package is a binary bundle that contains a component1,.
Read more >
Untitled
Selling hot dogs on the street, Missing a layer of skin, Jota quest dias melhores porto ... Django project source code example, 93a...
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 Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found