mirror of https://github.com/lukechilds/node.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
531 B
28 lines
531 B
#!/bin/sh
|
|
|
|
TOOLS=`dirname $0`
|
|
ROOT=$TOOLS/..
|
|
|
|
VERSION=`python $TOOLS/getnodeversion.py`
|
|
CONTENTS=$ROOT/dist-osx
|
|
PMDOC=$TOOLS/osx-pkg.pmdoc
|
|
VENDOR='org.nodejs'
|
|
NAME=NodeJS
|
|
|
|
# go build it in the root of the git repository
|
|
pushd $ROOT
|
|
|
|
./configure --prefix=/usr/local
|
|
make
|
|
make install DESTDIR="$CONTENTS"
|
|
|
|
popd # $ROOT
|
|
|
|
PKGID="$VENDOR.$NAME-$VERSION"
|
|
|
|
packagemaker=/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker
|
|
|
|
$packagemaker \
|
|
--id "$PKGID" \
|
|
--doc $PMDOC \
|
|
--out $CONTENTS/node-v$VERSION.pkg
|
|
|