Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Replace iojs -> nodejs, remove symlink
  • Loading branch information
fhemberger authored and rvagg committed Jun 8, 2016
commit 1db12f41ee939c19f90fdcbed4cefcf8aa7e6ed5
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,9 @@ test.tap
# Xcode workspaces and project folders
*.xcodeproj
*.xcworkspace

# mac installer files
/tools/osx-pkg/osx-pkg-out.pkgproj
/tools/osx-pkg/strings/LICENSE.txt
/tools/osx-pkg/strings/**/*.out.rtf
/tools/osx-pkg/scripts/nodejs-run-uninstall
28 changes: 18 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ BINARYTAR=$(BINARYNAME).tar
XZ=$(shell which xz > /dev/null 2>&1; echo $$?)
XZ_COMPRESSION ?= 9
PKG=$(TARNAME).pkg
PACKAGEMAKER ?= /Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker
PACKAGESBUILD=/usr/local/bin/packagesbuild
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no ?=?

PKGDIR=out/dist-osx

release-only:
Expand Down Expand Up @@ -464,7 +464,22 @@ release-only:
exit 1 ; \
fi

$(PKG): release-only
pre-pkg:
touch tools/osx-pkg/scripts/nodejs-run-uninstall # empty file for uninstall step
cp LICENSE tools/osx-pkg/strings/LICENSE.txt
cat tools/osx-pkg/osx-pkg.pkgproj | \
sed -e 's|__nodeversion__|'$(FULLVERSION)'|g' | \
sed -e 's|introduction.rtf|introduction.out.rtf|g' > \
tools/osx-pkg/osx-pkg-out.pkgproj
$(foreach dir, \
$(shell echo tools/osx-pkg/strings/*/), \
cat $(dir)introduction.rtf | \
sed -e 's|__nodeversion__|'$(FULLVERSION)'|g' | \
sed -e 's|__npmversion__|'$(NPMVERSION)'|g' > \
$(dir)introduction.out.rtf; \
)

$(PKG): release-only pre-pkg
rm -rf $(PKGDIR)
rm -rf out/deps out/Release
$(PYTHON) ./configure \
Expand All @@ -474,14 +489,7 @@ $(PKG): release-only
$(CONFIG_FLAGS) $(BUILD_RELEASE_FLAGS)
$(MAKE) install V=$(V) DESTDIR=$(PKGDIR)
SIGN="$(CODESIGN_CERT)" PKGDIR="$(PKGDIR)" 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)
$(PACKAGESBUILD) tools/osx-pkg/osx-pkg-out.pkgproj
SIGN="$(PRODUCTSIGN_CERT)" PKG="$(PKG)" bash tools/osx-productsign.sh

pkg: $(PKG)
Expand Down
8 changes: 4 additions & 4 deletions tools/osx-pkg/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Prerequisites:

* Packages: http://s.sudre.free.fr/Software/Packages/about.html

In the root io.js folder:
In the root folder:

```bash
make pkg
Expand All @@ -22,9 +22,9 @@ http://s.sudre.free.fr/Software/Packages/about.html
2. Duplicate the `strings/en` folder for reference, and rename the folder to
the language you are localizing (ex. `fr`, `ru`, etc.)
3. Translate `introduction.rtf` and `summary.rtf`. Do not modify the words
`__iojsversion__` or `__npmversion__`, as these are automatically replaced
by the build step with the io.js and npm versions, respectively.
4. In the root `io.js` folder, run `make pre-pkg`. This will generate the
`__nodeversion__` or `__npmversion__`, as these are automatically replaced
by the build step with the Node.js and npm versions, respectively.
4. In the root folder, run `make pre-pkg`. This will generate the
files needed for Packages.
5. Open `tools/osx-pkg/osx-pkg.pkgproj` in Packages. (Not
`osx-pkg-out.pkgproj`, as this is a generated file)
Expand Down
Loading