File tree 3 files changed +28
-1
lines changed 3 files changed +28
-1
lines changed Original file line number Diff line number Diff line change 3
3
BUILDTYPE ?= Release
4
4
PYTHON ?= python
5
5
DESTDIR ?=
6
+ SIGN ?=
6
7
7
8
# Default to verbose builds.
8
9
# To do quiet/pretty builds, run `make V=` to set V to an empty string,
@@ -210,16 +211,18 @@ $(PKG):
210
211
rm -rf out/deps out/Release
211
212
./configure --prefix=$(PKGDIR ) /usr/local --without-snapshot --dest-cpu=x64
212
213
$(MAKE ) install V=$(V )
214
+ SIGN=" $( SIGN) " PKGDIR=" $( PKGDIR) " bash tools/osx-codesign.sh
213
215
lipo $(PKGDIR ) /32/usr/local/bin/node \
214
216
$(PKGDIR ) /usr/local/bin/node \
215
217
-output $(PKGDIR ) /usr/local/bin/node-universal \
216
218
-create
217
219
mv $(PKGDIR ) /usr/local/bin/node-universal $(PKGDIR ) /usr/local/bin/node
218
220
rm -rf $(PKGDIR ) /32
219
221
$(packagemaker ) \
220
- --id " org.nodejs.NodeJS- $( VERSION ) " \
222
+ --id " org.nodejs.Node " \
221
223
--doc tools/osx-pkg.pmdoc \
222
224
--out $(PKG )
225
+ SIGN=" $( SIGN) " PKG=" $( PKG) " bash tools/osx-productsign.sh
223
226
224
227
$(TARBALL ) : node doc
225
228
@if [ " $( shell git status --porcelain | egrep -v ' ^\?\? ' ) " = " " ]; then \
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ set -x
4
+ set -e
5
+
6
+ if ! [ -n " $SIGN " ] && [ $STEP -eq 1 ]; then
7
+ echo " No SIGN environment var. Skipping codesign." >&2
8
+ exit 0
9
+ fi
10
+
11
+ codesign -s " $SIGN " " $PKGDIR " /usr/local/bin/node
12
+ codesign -s " $SIGN " " $PKGDIR " /32/usr/local/bin/node
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ set -x
4
+ set -e
5
+
6
+ if ! [ -n " $SIGN " ]; then
7
+ echo " No SIGN environment var. Skipping codesign." >&2
8
+ exit 0
9
+ fi
10
+
11
+ productsign --sign " $SIGN " " $PKG " " $PKG " -SIGNED
12
+ mv " $PKG " -SIGNED " $PKG "
You can’t perform that action at this time.
0 commit comments