News for hackers. Stuff that matters.
Re:Deno 1.6 supports compiling TypeScript to a single execut... by lemax on Thursday December 10, 2020 @01:54AM (#25370646)
We use vercel/pkg to distribute our product as a standalone executable that runs in on-prem windows environments. Our product is actually comprised of multiple NodeJS servers that are spawned as child processes in one master Node procees, and that module gets built using pkg. We also have a windows installer that configures a windows service to run the executable/keep it up. It’s proven to be a really simple way to distribute our app to the enterprise that’s been working for a few years. It doesn’t really protect source code, but provides a decent enough level of obsfuscation for our needs.
Re:Deno 1.6 supports compiling TypeScript to a single execut... by thisjeremiah on Thursday December 10, 2020 @03:21PM (#25378067)
We’ve been following a similar process for our internal tools and have found it to be a good solution. Manually including native libraries is probably the only lousy part. Out of curiosity, what are you using to achieve the windows service installation? We’ve been using nssm, which has worked okay, but I’m curious if there’s a better way of doing it.
Re:Deno 1.6 supports compiling TypeScript to a single execut... by lemax on Wednesday December 16, 2020 @02:55PM (#25447672)
Yep, we use NSSM as well, it does the job.