nexe/nexe

dear sir,please release every main version node pre-build for us, compile it for all platform by ourself it's too hard,all you versions are too low

introspection3 opened this issue · 4 comments

What would you like to be added:
dear sir,please relase every main version node pre-build for us, compile it for all platform by ourself it's too hard, all you versions are too low
Why is this needed:
compling it by your users self ,it's not good for your product's furture

dear sir,please....

hello,dear sir

I had the same situation and still used the --build. It takes some time only once (as in the future it has already downloaded all it needs) and after that builds it lightning fast every time so I strongly recommend trying the "uncomfortable" way next time as well.
Anyway, for Alpine, bmaupin was able to build Node 16 on alpine with nexe; here's a sample Dockerfile:

FROM node:16-alpine

RUN apk add g++ gcc linux-headers make python3 && \
    npm install -g nexe && \
    # Create a dummy hello world file
    echo "console.log('Hello world!');" > hello.js && \
    # Node 14+ needs Python 3
    nexe hello.js --build --make=-j4 --python=$(which python3) --verbose

@vuquanganhnguyen how much time it takes to download, compile and build. In my Apple M1 chip device it is stuck at "compiling node" state.