Jesse Chan
925111ba5e
build: workaround nodejs/node#39313 for macOS
...
All supported macOS versions have zlib as a system library.
2021-08-20 12:11:44 +08:00
Jesse Chan
1f58c6cfb8
expected: add hashes of Node v12.22.2, v14.17.2 and v16.4.1
2021-07-02 12:55:05 +08:00
Jesse Chan
aff1abe9d0
expected: update hashes for v3.2.1
...
- macOS binaries replaced due to #199
2021-06-09 20:42:42 +08:00
Jesse Chan
5bbafb7e09
expected: add hashes of Node v16.3.0 binaries ( #197 )
2021-06-04 19:53:17 -05:00
Jesse Chan
3d13d2aeff
expected: update hashes for v3.2
...
- node8 carried over from v3.1
- node(10/12/14/16)-(alpine/linuxstatic/win) carried over from v3.1
- node(10/12/14/16)-linux-x64 carried over from v3.1
- macOS binaries replaced due to 93de534a9
- linux-arm64 binaries replaced due to 6de6de36a
- linuxstatic-armv7 binaries added (#194 , @Hypfer)
2021-05-31 02:50:41 +01:00
Sören Beye
27e00d1d72
Add support for linuxstatic armv7 binaries
2021-05-29 15:24:58 +01:00
Jesse Chan
93de534a9d
build: enable LTO on macOS
2021-05-27 23:49:53 +01:00
Jesse Chan
45687270be
expected: add hashes of Node v16.2.0 binaries
2021-05-21 20:09:20 +08:00
Jesse Chan
137f295461
expected: add hashes of Node v14.17.0 binaries
2021-05-14 13:08:31 +01:00
Jesse Chan
11e94a53bc
expected: update hashes for v3.1
...
- replaced macOS binaries due to 5d2bc3b
- node(8/10/12/14)-(alpine/linux/linuxstatic/win) carried over from v3.0
- added Node v16.1 binaries
- added macos-arm64 binaries (Node 14/16 only)
2021-05-13 07:22:54 +01:00
Jesse Chan
6e5bccd731
utils: switch to "node-fetch" and add proxy support
...
Bug: #177 , vercel/pkg#1163
2021-05-11 15:01:57 +01:00
Jesse Chan
5d2bc3bb24
build: don't strip global symbols of macOS binaries
...
Bug: vercel/pkg#1155
2021-05-10 16:59:53 +01:00
Jesse Chan
a062bb42f5
build: strip signature from compiled macOS base binary
...
Newer versions of Apple Clang automatically ad-hoc sign the compiled
executable, due to the new mandatory code signing requirement [1].
However, for final executable to be signable, base binary MUST NOT
have an existing signature.
This change strips the ad-hoc signature from compiled macOS base binary.
[1]: https://developer.apple.com/documentation/macos-release-notes/macos-big-sur-11_0_1-universal-apps-release-notes
Refs: vercel/pkg#1164
Bug: vercel/pkg#1023
2021-05-10 16:58:56 +01:00
Jesse Chan
815ca0b354
expected: add hashes of Node.js 16.0.0 binaries
2021-04-24 18:20:29 +08:00
Jesse Chan
f28cbd6cf7
log: expand progress bar width to 35 ( #170 )
...
Otherwise we can't use "linuxstatic" due to progress bar out of range...
2021-04-22 10:28:23 -05:00
Jesse Chan
629cc71d26
Validate hash of fetched binary
2021-04-22 22:54:06 +08:00
Jesse Chan
7467b7f9d8
Move small utility functions to "utils"
2021-04-22 22:54:06 +08:00
Jesse Chan
b11eb6679a
build: stop when a procedure failed
2021-04-22 22:54:06 +08:00
Jesse Chan
2a68741776
Revert "--without-snapshot for alpine builds as a temporary workaround"
...
This reverts commit d4b89a9511 .
No longer needed.
2021-04-15 23:47:45 +08:00
Jesse Chan
b5d926af84
Add a fully static "linuxstatic" variant
...
Bug: #72
2021-04-15 23:47:45 +08:00
Jesse Chan
21ab8a26c8
build: statically link against libgcc and libstdc++ on Alpine
...
Bug: vercel/pkg#555
2021-04-15 23:47:45 +08:00
Jesse Chan
e59b746f26
build: fix improper use of ".concat"
2021-04-13 10:45:03 +08:00
Jesse Chan
748f67a0fe
build: workaround win-arm64 cross compilation issue with small-icu
2021-04-11 23:59:25 +08:00
Jesse Chan
97c892758f
build: defaults to small ICU
...
Bug: #164
2021-04-11 23:59:25 +08:00
Jesse Chan
0cc2634d4f
build: tweak Node configure flags ( #160 )
...
* build: consolidate common configure args
* build: re-enable LTCG for Windows
* build: enable LTO for Linux
* build: disable DTrace and bundled npm
* build: strip debug symbols from executable
2021-04-08 22:39:28 +08:00
Jesse Chan
52a1754e42
build: hash and create ".sha256sum" for binary built ( #157 )
2021-04-07 22:09:21 +08:00
Jesse Chan
549db84226
CI: output to dist/ with "node-*" prefix ( #156 )
...
* Add "--output" CLI argument
* CI: output to dist/ with "node-*" prefix
* requests: remove tempFile when download failed
2021-04-07 17:59:50 +08:00
Jesse Chan
b47c260d38
Cleanup, remove unused dependencies ( #154 )
...
* places: simplify and remove dependency on "expand-template"
* Remove dependency on "unique-temp-dir"
* Remove unused dependencies
2021-04-06 16:34:39 +08:00
Jesse Chan
532fb10d91
Allow to override build path with PKG_BUILD_PATH ( #152 )
...
To workaround a path problem with older Node versions and some
Windows environments.
2021-04-02 20:01:47 +08:00
Jesse Chan
d7f74907ad
Allow cross compiling ( #150 )
2021-04-02 19:05:18 +08:00
Jesse Chan
cc13355f33
Allow to run basic binary verification with "--test" ( #147 )
2021-03-31 11:09:10 -05:00
Jesse Chan
521517902b
Migrate from requests to axios ( #146 )
2021-03-31 10:57:21 -05:00
Jesse Chan
ba011e4474
Improved CLI interface. ( #145 )
...
$ pkg-fetch -h
Options:
-n, --node-range [string] [default: "latest"]
-p, --platform [string] [default: "linux"]
-a, --arch [string] [default: "x64"]
-f, --force-fetch [boolean]
-b, --force-build [boolean]
-v, --version Show version number [boolean]
-h, --help Show help [boolean]
2021-03-31 09:27:28 -05:00
Jesse Chan
e314198e53
[BREAKING] Remove upload and release functions to prepare for CI step. ( #144 )
2021-03-31 09:03:14 -05:00
Jesse Chan
cf794f6881
Drop fancy progress bar and use inherent stdio for child processes ( #143 )
...
Progress bar is fancy but not really useful. In most cases, we
want outputs of commands for easier development and debugging.
This change is not visible to users of `pkg` unless they choose to
compile binaries.
2021-03-31 20:23:14 +08:00
Andrew Lisowski
6dd43cfafd
pkg-fetch: migrate to TypeScript ( #139 )
2021-03-29 12:46:10 +08:00
Andrew Lisowski
f7a75173f9
Run prettier, convert to standard eslint, add CI ( #138 )
...
* Run prettier and convert to standard eslint
* Add CI, fix broken test
* Update package.json
Co-authored-by: Lee Robinson <me@leerob.io>
* switch to single quote
* remove tests for now
Co-authored-by: Lee Robinson <me@leerob.io>
2021-03-26 16:51:31 -07:00
Daniel Lando
93431471c6
feat: Set MAKE_JOB_COUNT to available CPU length by default. ( #133 )
2021-03-26 09:51:28 -05:00
Lee Robinson
af05f0f2cc
Fix lint issues before release. ( #120 )
2021-03-18 17:15:58 -05:00
Daniel Lando
b1880a0c95
Add PKG_IGNORE_TAG env var ( #67 )
2021-03-02 09:38:37 -06:00
Laurin Quast
170c3adff9
Allow configuring number of processes used for compiling. ( #103 )
2021-03-01 09:37:57 -06:00
Paulo Castro
eef90fed0f
Improve ARM architecture detection ( #106 )
2021-03-01 09:33:43 -06:00
IgorKlopov
08a6f3bb48
add abi for node14
2020-05-10 22:54:25 +03:00
Klaus Landsdorf
79dd09e9da
missing abi entries ( #88 )
...
* fix: cloned too much from node repo
* chore: add missed bare
* fix: issue #46 nodeVersion on clone with less branches
* fix: typo R removed
* fix: remove and edited files as expected for the pull request
* test: set test to new git pull command results
* feat(build): knowing node 10 to 13
2020-05-10 22:49:08 +03:00
Timothy Pearson
cdac19c4eb
Add ppc64 support ( #91 )
2020-05-10 20:44:12 +03:00
IgorKlopov
b14dd0ecf3
add v14.0.0. fixes #89
2020-04-26 19:14:38 +03:00
IgorKlopov
b7e7f1c183
fixes to gitClone and verify.js
2020-04-05 18:18:59 +03:00
Klaus Landsdorf
edabcb937a
version of nodejs on clone git repo ( #84 )
...
* fix: cloned too much from node repo
* chore: add missed bare
* fix: issue #46 nodeVersion on clone with less branches
* fix: typo R removed
* fix: remove and edited files as expected for the pull request
* test: set test to new git pull command results
2020-04-05 18:15:38 +03:00
Igor Klopov
1b9cd7884a
preserve compilation of x86 binaries for windows
2019-05-09 21:47:55 +03:00
Igor Klopov
ff942655fa
drop compilation of x86 binaries
2019-05-09 05:13:52 +03:00