-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
feat!: add experimental sea
support and drop nodejs 16 support
#110
Conversation
sea
supportsea
support and drop nodejs 16 support
Hi, Only glitch: I got the following warning at the end of build Thanks for your work! |
Hi @pmosconi and thanks for your feedback 🙏🏻 I have been able to reproduce the windows issue about directory cleanup, I sincerely have no clue why that happens, I don't have a windows pc, could you check the that? Everything is located in lib/sea.ts, it's the last function called at the end of sea function |
Hi @robertsLando , I tried to reproduce the error creating a small node function but, needless to say, I've been unable.
My 2 cents:
The AppData/Local/Temp folder is full of crap and I believe that most programs (MS included) don't really bother to clean it up. This is my test code (that cleans up after itself):
Best regards |
Grazie Paolo for looking at this :) Will try to add the |
Hi, --sea flag not hides source code, may it be enabled? |
Not sure about that, I don't see mentions of this in docs: https://nodejs.org/api/single-executable-applications.html |
Yes, seems no such option. For me pkg nice and simple way to make executable and hide source code, which is important for me. By the way, thank you very much for maintaining pkg, you do great work, appreciate it. ESM and new node version is nice 😊 |
I understand that, the problem is that keeping pkg maintained is hard because of we need to patch nodejs every time in order to make it work and this takes lot of time, sea is my bet for the future but I dunno when and if it will ever be a drop in replacement to pkg |
Adds cross-arch and cross-os node sea support with flag
--sea
. Limitation: accepts a single executable file as input, may require a pre-build step using esbuild for multi-file applicationsBREAKING CHANGE: Drop support for NodeJS 16