-
Notifications
You must be signed in to change notification settings - Fork 1
Ship esbuild binaries for all platforms in tarball #12
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
Conversation
485cd00
to
4e95592
Compare
Well, it turns out testing was absolutely necessary. Not only was my guessing completely wrong, but the part for creating tarball itself was already faulty, at least under macOS/with bsdtar, such that the resulting tarball would exclude all I'm now making use of caching for the @@ -647,7 +647,8 @@ node-modules: .node_modules.ready
npm install --no-save
@if [ ! -f node_modules/esbuild/bin/esbuild ]; then \
cd node_modules/esbuild; \
- npm run postinstall; \
+ npm run postinstall && \
+ rm -rf .*; \
cd ../..; \
fi
@[ $$? -eq 0 ] && touch .node_modules.ready Edit: it now includes the above change. |
7e80956
to
d656391
Compare
See go-gitea#14578 (comment). I'm in favor of just excluding |
Changed to tackle the problem with The packages that are manually added, besides |
How did you resolve the problem to build Gitea without network? |
CL-Jeremy@31c2c97#diff-76ed074a9305c04054cdebb9e9aad2d818052b07091de1f20cad0bbac34ffb52R641-R650 By doing this, I'm telling |
Tested working on macOS and Windows without Internet connection, both for building and for releasing.
Note that testing with npx shows that even without binary file installed into
node_modules/esbuild/bin
andnode_modules/.bin
, having a native subpackage installed would suffice in most cases.And
esbuild
does not provide a mips64 binary, so good that we've already deprecated that.I won't be able to do further testing as I happened to have a workplace partition with useful data wiped out on a SSD and thus have to deal with file recovery for that machine first. Sorry for that. Any improvement to the
Makefile
is highly appreciated.