Skip to content
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

v6.13.0 proposal #18342

Merged
merged 113 commits into from
Feb 13, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
113 commits
Select commit Hold shift + click to select a range
4f6dd96
test,doc: do not indicate that non-functions "return" values
Trott Nov 22, 2017
b8a5d6d
tools: remove useless function declaration
tniessen Nov 18, 2017
1d70602
tools: make doc tool a bit more readable
tniessen Nov 18, 2017
ef0213c
doc: move Code of Conduct to admin repo
MylesBorins Oct 23, 2017
b6ce918
stream: fix disparity between buffer and the count
jlvivero Sep 28, 2017
521dc25
tls: properly track writeQueueSize during writes
apapirovski Oct 5, 2017
a301c1a
net: fix timeouts during long writes
apapirovski Oct 12, 2017
a09e2fd
net: fix timeout with null handle
apapirovski Oct 25, 2017
00b2790
tls: accept `lookup` option for `tls.connect()`
indutny May 4, 2017
7af1ad0
util: add %i and %f formatting specifiers
silverwind Dec 16, 2016
6f62f83
crypto: add randomFill and randomFillSync
evanlucas Dec 9, 2016
43a2bc0
doc: improve randomfill and fix broken link
thefourtheye Apr 20, 2017
063c4fa
lib: return this from net.Socket.end()
sam-github Jun 5, 2017
6a27774
net: return this from getConnections()
sam-github Jun 7, 2017
3b9fea0
repl: improve require() autocompletion
aqrln Jul 21, 2017
ce13639
console: add console.count() and console.clear()
jasnell Apr 26, 2017
8f2e52a
dgram: added setMulticastInterface()
lostnet Jul 23, 2016
7b801b5
test: don't skip when common.mustCall() is pending
cjihrig Sep 14, 2017
d29a620
test: crypto createClass instanceof Class
bengl Aug 19, 2016
f3b3437
crypto: expose ECDH class
bengl Aug 19, 2016
365dba2
test: fix flaky test-crypto-classes.js
bengl Sep 28, 2017
18803bc
tools, build: refactor macOS installer
jpwesselink Sep 4, 2017
a1d7469
deps: upgrade libuv to 1.16.1
cjihrig Nov 10, 2017
2d4fca2
src: add process.ppid
cjihrig Oct 30, 2017
758dc81
src: add --use-bundled-ca --use-openssl-ca check
danbev Mar 28, 2017
2b29cea
src: guard bundled_ca/openssl_ca with HAVE_OPENSSL
danbev Apr 10, 2017
9f3b4ad
src: fix incorrect macro comment
danbev Apr 27, 2017
ddd9d85
crypto: remove BIO_set_shutdown
danbev Dec 7, 2017
a6d2384
src: clean up MaybeStackBuffer
TimothyGu Nov 28, 2017
699c663
test: add common.hasIntl
jasnell Oct 23, 2016
60b10f0
url: update IDNA handling
TimothyGu Jun 1, 2017
24def19
url: adding WHATWG URL support
jasnell Nov 28, 2017
c64a73b
promises: more robust stringification
TimothyGu Jun 19, 2017
5f79448
test: fix truncation of argv
danbev Mar 29, 2017
1390c28
http: overridable keep-alive behavior of `Agent`
indutny Jan 15, 2018
2268d00
src: add openssl-system-ca-path configure option
danbev Nov 6, 2017
cdf4a9c
module: add builtinModules
maclover7 Nov 24, 2017
b3b2456
test: add test description to fs.readFile tests
davisjam Dec 7, 2017
83fe79c
doc: correct pbkdf2 salt length recommendation
willclarktech Dec 7, 2017
fb0bd8a
test: fix flaky test-child-process-pass-fd
Trott Dec 11, 2017
7821a4c
tools: add lowercase-name-for-primitive eslint rule
starkwang Dec 9, 2017
af3e074
test: add `makeDuplexPair()` helper
addaleax Oct 22, 2017
56e1586
tls: unconsume stream on destroy
addaleax Dec 6, 2017
1eac405
doc: include Daniel Bevenius as a TSC member
Trott Dec 13, 2017
928b7c8
tools: simplify lowercase-name-for-primitive rule
cjihrig Dec 13, 2017
2d77241
test: change callback function to arrow function
skanamaru Dec 15, 2017
81e6569
test: change callback function to arrow function
you12724 Dec 15, 2017
cc03470
test: change callback function to arrow function
routerman Dec 15, 2017
d0b89a1
doc: add countdown module to writing tests guide
Bamieh Dec 12, 2017
31c5db6
test: update test-http-content-length to use countdown
Bamieh Dec 12, 2017
bdb535c
test: Use countdown in test file
sreepurnajasti Dec 13, 2017
6abd459
doc: improve documentation.md
Fishrock123 Dec 15, 2017
9c8d036
doc: fix fs.existsSync description
Fishrock123 Dec 15, 2017
14ffddd
doc: add isTTY property documentation
sonaysevik Nov 6, 2017
c683efb
doc: adjust TTY wording & add inter-doc links
Fishrock123 Dec 15, 2017
423ef3d
doc: not all example code can be run without 1:1
Fishrock123 Dec 15, 2017
4cba432
doc: improve release guide
evanlucas Dec 14, 2017
df48a5d
doc: fix typo in child_process.md
Trott Dec 18, 2017
a6f7ba4
doc: fix typo in README.md
starkwang Dec 18, 2017
5cc6dd6
doc: remove duplicate the from onboarding.md
sreepurnajasti Dec 18, 2017
979af51
src: remove nonexistent method from header file
addaleax Dec 19, 2017
cb78543
test: change callback function to arrow function
rt33 Dec 18, 2017
c377d22
crypto: remove unused header in clienthello.h
danbev Dec 19, 2017
ffc1444
net: remove ADDRCONFIG DNS hint on Windows
bzoz Dec 13, 2017
d85840d
doc: require CI status indicator in PRs
seishun Nov 20, 2017
2260795
doc: use american spelling as per style guide
sreepurnajasti Dec 22, 2017
1553c73
doc: removed extra explanation in api/buffer.md
WaleedAshraf Dec 20, 2017
a08925d
tls: comment about old-style errors
Xavier-J-Ortiz Dec 19, 2017
f291bc1
test: refactor test-repl-definecommand
Trott Dec 20, 2017
722640f
doc: instructions on how to make membership public
mhdawson Dec 14, 2017
6816414
doc: improve fs api descriptions
evanlucas Dec 14, 2017
5314754
test: use common module API in test-child-process-exec-stdout-stderr-…
sreepurnajasti Dec 19, 2017
653c026
doc: add starkwang to collaborators
starkwang Dec 24, 2017
038e526
test: remove undefined function
Trott Dec 23, 2017
6187aec
tools: autofixer for lowercase-name-for-primitive
shobhitchittora Dec 17, 2017
f6b4aa6
doc: update AUTHORS list
BridgeAR Dec 21, 2017
0ce48f9
doc: use dashes instead of asterisks
BridgeAR Dec 17, 2017
32f528a
tools: fix AttributeError: __exit__ on Python 2.6
dkasyanov Dec 13, 2017
b3e625d
test: refactor test-tls-securepair-fiftharg
addaleax Dec 23, 2017
4b4e4db
crypto: add ocsp_request ClientHelloParser::Reset
danbev Dec 11, 2017
8c1f41f
test: make test-tls-invoke-queued use public API
addaleax Dec 25, 2017
5b00ee3
doc: use my legal name in README
TimothyGu Dec 28, 2017
3c3a631
doc: fix typo
tniessen Dec 28, 2017
2c554a9
test: improve to use template string
sreepurnajasti Dec 28, 2017
e16d01f
gitignore: ignore *.VC.db files
tniessen Dec 28, 2017
21c5d82
doc: add references to PR communication articles
Dec 28, 2017
bb022db
doc: fix spelling of contributors
Trott Dec 31, 2017
7628640
doc: improve alt text
Trott Dec 31, 2017
b79189b
doc: copy-edit COLLABORATOR_GUIDE.md
Trott Dec 31, 2017
12db4d9
doc: improve security section of README.md
Trott Jan 1, 2018
15d0ed5
doc: move joshgav to TSC emeriti list
Trott Jan 2, 2018
6f33953
benchmark: fix timeout in write-stream-throughput
apapirovski Jan 3, 2018
1c4aa61
test: simplify test-buffer-slice.js
starkwang Jan 3, 2018
9e76028
test: fix crypto test case to use correct encoding
tniessen Jan 2, 2018
0c3f23e
test: fix flaky test-pipe-unref
apapirovski Jan 2, 2018
001b672
test: rename regression tests
tniessen Jan 2, 2018
4473c6c
test: fix flaky test-http-pipeline-flood
apapirovski Jan 3, 2018
8f80548
doc: move matthewloring to emeriti
Trott Jan 5, 2018
51bfd32
tools: do not override V8's gitignore
hashseed Jan 5, 2018
1b68986
doc: remove x86 from os.arch() options
gibfahn Dec 28, 2017
d66f469
src: minor cleanups to node_url.cc
addaleax Dec 5, 2017
1976c7c
src: move url internals into anonymous namespace
addaleax Dec 5, 2017
f306d3e
src: make url host a proper C++ class
addaleax Dec 5, 2017
57865a9
src: use correct OOB check for IPv6 parsing
addaleax Dec 5, 2017
9181fbb
src: dumb down code by removing std::move
addaleax Jan 23, 2018
fce10f7
test: fix test-tls-server-verify.js on Windows CI
Trott Jan 25, 2018
5668403
test: improve flaky test-listen-fd-ebadf.js
Trott Dec 20, 2017
694828d
test: mark test-inspector-stop-profile-after-done flaky
MylesBorins Feb 1, 2018
734ce67
test: use valid authentication tag length
tniessen Dec 9, 2017
691cd5a
crypto: warn on invalid authentication tag length
tniessen Dec 9, 2017
a4e2ced
test: decrease duration of test-cli-syntax
evanlucas Jul 12, 2017
f82065f
test: make test-cli-syntax engine agnostic
Trott Oct 17, 2017
9441526
2018-01-13, Version 6.13.0 'Boron' (LTS)
MylesBorins Jan 24, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ _UpgradeReport_Files/
ipch/
*.sdf
*.opensdf
*.VC.db
*.VC.opendb
.vs/
.vscode/
Expand All @@ -68,11 +69,9 @@ ipch/
/config_fips.gypi
*-nodegyp*
/gyp-mac-tool
/dist-osx
/npm.wxs
/tools/msvs/npm.wixobj
/tools/msvs/genfiles/
/tools/osx-pkg.pmdoc/index.xml
/test/addons/??_*/
email.md
deps/v8-*
Expand Down Expand Up @@ -100,6 +99,7 @@ deps/npm/node_modules/.bin/

# build/release artifacts
/*.tar.*
/*.pkg
/SHASUMS*.txt*

# test artifacts
Expand All @@ -115,3 +115,6 @@ icu_config.gypi
deps/uv/.github/
deps/uv/docs/code/
deps/uv/docs/src/guide/

# do not override V8's .gitignore
!deps/v8/**
3 changes: 3 additions & 0 deletions .mailmap
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,8 @@ Kathy Truong <kathy.yvy.truong@gmail.com> k3kathy <kathy.yvy.truong@gmail.com>
Kazuyuki Yamada <tasogare.pg@gmail.com>
Keith M Wesolowski <wesolows@joyent.com> <wesolows@foobazco.org>
Kelsey Breseman <ifoundthemeaningoflife@gmail.com>
Khaidi Chu <admin@xcoder.in> XadillaX <admin@xcoder.in>
Khaidi Chu <admin@xcoder.in> <i@2333.moe>
Kiyoshi Nomo <tokyoincidents.g@gmail.com> kysnm <tokyoincidents.g@gmail.com>
Koichi Kobayashi <koichik@improvement.jp>
Kris Kowal <kris.kowal@cixar.com>
Expand Down Expand Up @@ -264,6 +266,7 @@ Roman Klauke <romaaan.git@gmail.com> <romankl@users.noreply.github.com>
Roman Reiss <me@silverwind.io>
Ron Korving <ron@ronkorving.nl> <rkorving@wizcorp.jp>
Ron Korving <ron@ronkorving.nl> ronkorving <ron@ronkorving.nl>
Ruben Bridgewater <ruben@bridgewater.de> <ruben.bridgewater@fintura.de>
Russell Dempsey <sgtpooki@gmail.com> <SgtPooki@gmail.com>
Ryan Dahl <ry@tinyclouds.org>
Ryan Emery <seebees@gmail.com>
Expand Down
34 changes: 31 additions & 3 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -911,7 +911,7 @@ HUANG Wei <grubbyfans@gmail.com>
DC <dcposch@dcpos.ch>
Daniel Turing <mail@danielturing.com>
Julie Pagano <julie.pagano@gmail.com>
Ruben Bridgewater <ruben.bridgewater@fintura.de>
Ruben Bridgewater <ruben@bridgewater.de>
Felix Becker <felix.b@outlook.com>
Igor Klopov <igor@klopov.com>
Tsarevich Dmitry <dimhotepus@users.noreply.github.com>
Expand Down Expand Up @@ -1493,7 +1493,7 @@ Sreepurna Jasti <sreepurna.jasti@gmail.com>
Rafael Fragoso <rafaelfragosom@gmail.com>
Andrei Cioromila <andrei.cioromila@gmail.com>
Frank Lanitz <frank@frank.uvena.de>
XadillaX <admin@xcoder.in>
Khaidi Chu <admin@xcoder.in>
Akshay Iyer <c.m.akshay.iyer@gmail.com>
Rick Bullotta <RickBullotta@users.noreply.github.com>
Rajaram Gaunker <zimbabao@gmail.com>
Expand Down Expand Up @@ -1532,7 +1532,6 @@ Dan Homola <dan.homola@hotmail.cz>
cornholio <0@mcornholio.ru>
Tamás Hódi <tamas.hodi@risingstack.com>
DuanPengfei <2459714173@qq.com>
Ruben Bridgewater <ruben@bridgewater.de>
Lakshmi Swetha Gopireddy <lakshmiswethagopireddy@gmail.com>
Rob Wu <rob@robwu.nl>
Steven Winston <swinston100@hotmail.com>
Expand Down Expand Up @@ -2036,5 +2035,34 @@ Hannes Magnusson <hannes.magnusson@creditkarma.com>
ChungNgoops <mr.mvagusta@gmail.com>
Jose M. Palacios Diaz <jmpd1988@gmail.com>
hmammedzadeh <hasan.mammed-zadeh@commercetools.de>
IHsuan <frostyjoan0829@livemail.tw>
Francisco Gerardo Neri Andriano <on_neri@hotmail.com>
Shilo Mangam <smangam@gmail.com>
idandagan1 <idandagan1@gmail.com>
Cameron Moorehead <hello@cameronmoorehead.com>
TomerOmri <tomer92@gmail.com>
Collins Abitekaniza <abtcolns@gmail.com>
Federico Kauffman <fede.kau@gmail.com>
Benno Fünfstück <benno.fuenfstueck@gmail.com>
Ram Goli <ramsgoli@gmail.com>
babygoat <babygoat1124@gmail.com>
Will Clark <willclarktech@users.noreply.github.com>
Jem Bezooyen <jem@hipmedia.ca>
Haejin Jo <professionalhaejin@gmail.com>
Hakan Kimeiga <hak7alp@gmail.com>
Tyler <tyler.z.yang@gmail.com>
Shinya Kanamaru <mn131bb@gmail.com>
you12724 <you12724@gmail.com>
routerman <h.okano.looz@gmail.com>
April Webster <awebster@us.ibm.com>
Jure Triglav <juretriglav@gmail.com>
alnyan <qShadowp@gmail.com>
rt33 <rt33@lastcycle.com>
Ulmanb <barulman@gmail.com>
xortiz <xavier.ortiz.ch@gmail.com>
Waleed Ashraf <waleedashraf@outlook.com>
Mir Mufaqam Ali <mannanali413@gmail.com>
Nicholas Drane <nicholasdrane@gmail.com>
Shobhit Chittora <chittorashobhit@gmail.com>

# Generated by tools/update-authors.sh
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ release.
</tr>
<tr>
<td valign="top">
<b><a href="doc/changelogs/CHANGELOG_V6.md#6.12.3">6.12.3</a></b><br/>
<b><a href="doc/changelogs/CHANGELOG_V6.md#6.13.0">6.13.0</a></b><br/>
<a href="doc/changelogs/CHANGELOG_V6.md#6.12.3">6.12.3</a><br/>
<a href="doc/changelogs/CHANGELOG_V6.md#6.12.2">6.12.2</a><br/>
<a href="doc/changelogs/CHANGELOG_V6.md#6.12.1">6.12.1</a><br/>
<a href="doc/changelogs/CHANGELOG_V6.md#6.12.0">6.12.0</a><br/>
Expand Down
5 changes: 4 additions & 1 deletion CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Code of Conduct

The Node.js Code of Conduct document has moved to
https://github.com/nodejs/TSC/blob/master/CODE_OF_CONDUCT.md. Please update
https://github.com/nodejs/admin/blob/master/CODE_OF_CONDUCT.md. Please update
links to this document accordingly.

The Node.js Moderation policy can be found at
https://github.com/nodejs/admin/blob/master/Moderation-Policy.md
45 changes: 25 additions & 20 deletions COLLABORATOR_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

* [Issues and Pull Requests](#issues-and-pull-requests)
- [Managing Issues and Pull Requests](#managing-issues-and-pull-requests)
- [Welcoming First-Time Contributiors](#welcoming-first-time-contributiors)
- [Welcoming First-Time Contributors](#welcoming-first-time-contributors)
- [Closing Issues and Pull Requests](#closing-issues-and-pull-requests)
* [Accepting Modifications](#accepting-modifications)
- [Code Reviews and Consensus Seeking](#code-reviews-and-consensus-seeking)
Expand Down Expand Up @@ -33,7 +33,7 @@
- [How is an LTS release cut?](#how-is-an-lts-release-cut)

This document contains information for Collaborators of the Node.js
project regarding maintaining the code, documentation and issues.
project regarding managing the project's code, documentation, and issue tracker.

Collaborators should be familiar with the guidelines for new
contributors in [CONTRIBUTING.md](./CONTRIBUTING.md) and also
Expand All @@ -52,11 +52,11 @@ may also notify other qualified parties for more input on an issue
or a pull request.
[See "Who to CC in issues"](./doc/onboarding-extras.md#who-to-cc-in-issues)

### Welcoming First-Time Contributiors
### Welcoming First-Time Contributors

Courtesy should always be shown to individuals submitting issues and pull
requests to the Node.js project. Be welcoming to first-time contributors,
identified by the GitHub ![badge](./doc/first_timer_badge.png) badge.
identified by the GitHub ![First-time contributor](./doc/first_timer_badge.png) badge.

For first-time contributors, check if the commit author is the same as the
pull request author, and ask if they have configured their git
Expand Down Expand Up @@ -116,6 +116,11 @@ oppose the PR, it can be landed. Where there is disagreement among TSC members
or objections from one or more Collaborators, `semver-major` pull requests
should be put on the TSC meeting agenda.

#### Helpful resources

* How to respectfully and usefully review code, part [one](https://mtlynch.io/human-code-reviews-1/) and [two](https://mtlynch.io/human-code-reviews-2/)
* [How to write a positive code review](https://css-tricks.com/code-review-etiquette/)

### Waiting for Approvals

Before landing pull requests, sufficient time should be left for input
Expand All @@ -142,6 +147,7 @@ test should *fail* before the change, and *pass* after the change.
All pull requests that modify executable code should be subjected to
continuous integration tests on the
[project CI server](https://ci.nodejs.org/).
The pull request should have a CI status indicator if possible.

#### Useful CI Jobs

Expand Down Expand Up @@ -200,11 +206,10 @@ Node.js API are internal:
- Any native C/C++ APIs/ABIs exported by the Node.js `*.h` header files that
are hidden behind the `NODE_WANT_INTERNALS` flag are internal.

Exception to each of these points can be made if use or behavior of a given
internal API can be demonstrated to be sufficiently relied upon by the Node.js
ecosystem such that any changes would cause too much breakage. The threshold
for what qualifies as too much breakage is to be decided on a case-by-case
basis by the TSC.
Exceptions can be made if use or behavior of a given internal API can be
demonstrated to be sufficiently relied upon by the Node.js ecosystem such that
any changes would cause too much breakage. The threshold for what qualifies as
too much breakage is to be decided on a case-by-case basis by the TSC.

If it is determined that a currently undocumented object, property, method,
argument, or event *should* be documented, then a pull request adding the
Expand Down Expand Up @@ -243,14 +248,14 @@ properties to an options argument) are semver-minor changes.

#### Breaking Changes and Deprecations

With a few notable exceptions outlined below, when backwards incompatible
changes to a *Public* API are necessary, the existing API *must* be deprecated
*first* and the new API either introduced in parallel or added after the next
major Node.js version following the deprecation as a replacement for the
deprecated API. In other words, as a general rule, existing *Public* APIs
*must not* change (in a backwards incompatible way) without a deprecation.
With a few exceptions outlined below, when backward-incompatible changes to a
*Public* API are necessary, the existing API *must* be deprecated *first* and
the new API either introduced in parallel or added after the next major Node.js
version following the deprecation as a replacement for the deprecated API. In
other words, as a general rule, existing *Public* APIs *must not* change (in a
backward-incompatible way) without a deprecation.

Exception to this rule is given in the following cases:
Exceptions to this rule may be made in the following cases:

* Adding or removing errors thrown or reported by a Public API;
* Changing error messages;
Expand Down Expand Up @@ -351,7 +356,7 @@ recommended but not required.
### Deprecations

_Deprecation_ refers to the identification of Public APIs that should no longer
be used and that may be removed or modified in non-backwards compatible ways in
be used and that may be removed or modified in backward-incompatible ways in
a future major release of Node.js. Deprecation may be used with internal APIs if
there is expected impact on the user community.

Expand Down Expand Up @@ -491,7 +496,7 @@ Check and re-review the changes:
$ git diff upstream/master
```

Check number of commits and commit messages:
Check the number of commits and commit messages:

```text
$ git log upstream/master...master
Expand Down Expand Up @@ -652,7 +657,7 @@ commit final.
#### What is LTS?

Long Term Support (often referred to as *LTS*) guarantees application developers
a 30 month support cycle with specific versions of Node.js.
a 30-month support cycle with specific versions of Node.js.

You can find more information
[in the full release plan](https://github.com/nodejs/Release#release-plan).
Expand All @@ -665,7 +670,7 @@ certain performance improvements that can be demonstrated to not break existing
applications. Semver-minor changes are only permitted if required for bug fixes
and then only on a case-by-case basis with LTS WG and possibly Technical
Steering Committee (TSC) review. Semver-major changes are permitted only if
required for security related fixes.
required for security-related fixes.

Once a Current branch moves into Maintenance mode, only **critical** bugs,
**critical** security fixes, and documentation updates will be permitted.
Expand Down
56 changes: 42 additions & 14 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -530,8 +530,7 @@ BINARYTAR=$(BINARYNAME).tar
XZ=$(shell which xz > /dev/null 2>&1; echo $$?)
XZ_COMPRESSION ?= 9e
PKG=$(TARNAME).pkg
PACKAGEMAKER ?= /Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker
PKGDIR=out/dist-osx
MACOSOUTDIR=out/macos

release-only:
@if [ "$(DISTTYPE)" != "nightly" ] && [ "$(DISTTYPE)" != "next-nightly" ] && \
Expand Down Expand Up @@ -561,24 +560,53 @@ release-only:
fi

$(PKG): release-only
$(RM) -r $(PKGDIR)
$(RM) -r out/deps out/Release
$(RM) -r $(MACOSOUTDIR)
mkdir -p $(MACOSOUTDIR)/installer/productbuild
cat tools/macos-installer/productbuild/distribution.xml.tmpl \
| sed -E "s/\\{nodeversion\\}/$(FULLVERSION)/g" \
| sed -E "s/\\{npmversion\\}/$(NPMVERSION)/g" \
>$(MACOSOUTDIR)/installer/productbuild/distribution.xml ; \

@for dirname in tools/macos-installer/productbuild/Resources/*/; do \
lang=$$(basename $$dirname) ; \
mkdir -p $(MACOSOUTDIR)/installer/productbuild/Resources/$$lang ; \
printf "Found localization directory $$dirname\n" ; \
cat $$dirname/welcome.html.tmpl \
| sed -E "s/\\{nodeversion\\}/$(FULLVERSION)/g" \
| sed -E "s/\\{npmversion\\}/$(NPMVERSION)/g" \
>$(MACOSOUTDIR)/installer/productbuild/Resources/$$lang/welcome.html ; \
cat $$dirname/conclusion.html.tmpl \
| sed -E "s/\\{nodeversion\\}/$(FULLVERSION)/g" \
| sed -E "s/\\{npmversion\\}/$(NPMVERSION)/g" \
>$(MACOSOUTDIR)/installer/productbuild/Resources/$$lang/conclusion.html ; \
done
$(PYTHON) ./configure \
--dest-cpu=x64 \
--tag=$(TAG) \
--release-urlbase=$(RELEASE_URLBASE) \
$(CONFIG_FLAGS) $(BUILD_RELEASE_FLAGS)
$(MAKE) install V=$(V) DESTDIR=$(PKGDIR)
SIGN="$(CODESIGN_CERT)" PKGDIR="$(PKGDIR)/usr/local" bash \
$(MAKE) install V=$(V) DESTDIR=$(MACOSOUTDIR)/dist/node
SIGN="$(CODESIGN_CERT)" PKGDIR="$(MACOSOUTDIR)/dist/node/usr/local" bash \
tools/osx-codesign.sh
cat tools/osx-pkg.pmdoc/index.xml.tmpl \
| sed -E "s/\\{nodeversion\\}/$(FULLVERSION)/g" \
| sed -E "s/\\{npmversion\\}/$(NPMVERSION)/g" \
> tools/osx-pkg.pmdoc/index.xml
$(PACKAGEMAKER) \
--id "org.nodejs.pkg" \
--doc tools/osx-pkg.pmdoc \
--out $(PKG)
mkdir -p $(MACOSOUTDIR)/dist/npm/usr/local/lib/node_modules
mkdir -p $(MACOSOUTDIR)/pkgs
mv $(MACOSOUTDIR)/dist/node/usr/local/lib/node_modules/npm \
$(MACOSOUTDIR)/dist/npm/usr/local/lib/node_modules
unlink $(MACOSOUTDIR)/dist/node/usr/local/bin/npm
$(NODE) tools/license2rtf.js < LICENSE > \
$(MACOSOUTDIR)/installer/productbuild/Resources/license.rtf
cp doc/osx_installer_logo.png $(MACOSOUTDIR)/installer/productbuild/Resources
pkgbuild --version $(FULLVERSION) \
--identifier org.nodejs.node.pkg \
--root $(MACOSOUTDIR)/dist/node $(MACOSOUTDIR)/pkgs/node-$(FULLVERSION).pkg
pkgbuild --version $(NPMVERSION) \
--identifier org.nodejs.npm.pkg \
--root $(MACOSOUTDIR)/dist/npm \
--scripts ./tools/macos-installer/pkgbuild/npm/scripts \
$(MACOSOUTDIR)/pkgs/npm-$(NPMVERSION).pkg
productbuild --distribution $(MACOSOUTDIR)/installer/productbuild/distribution.xml \
--resources $(MACOSOUTDIR)/installer/productbuild/Resources \
--package-path $(MACOSOUTDIR)/pkgs ./$(PKG)
SIGN="$(PRODUCTSIGN_CERT)" PKG="$(PKG)" bash tools/osx-productsign.sh

pkg: $(PKG)
Expand Down