faressoft / terminalizer

🦄 Record your terminal and generate animated gif images or share a web player
https://terminalizer.com
MIT License
15.39k stars 500 forks source link

Trying to build binaries using pkg #238

Open jordantrizz opened 11 months ago

jordantrizz commented 11 months ago

I got pretty far, building binaries for terminalizer with pkg. You might be asking why I would do this? Mostly because there are situations where installing node/npm aren't possible.

I updated package.json with the following.

 "pkg": {
    "assets": [
     "/commands/**",
     "/config.yml"
     ]
  }

I was able run init, config, recorder, but unable to run render due to the following.

❯ ./terminalizer render test.yml
Error:
  Error: Cannot mkdir in a snapshot. Try mountpoints instead.

Hint:
  Use the --help option to get help about the usage

I'm a node newb, and did find the following helpful.

https://github.com/vercel/pkg/issues/1293 https://github.com/vercel/pkg?tab=readme-ov-file#snapshot-filesystem

However, I need to somehow debug and find the breakpoint where this error is occurring, thoughts?