Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 36.4k
[WIP] build: use productbuild to build .pkg files#7097
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
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| #!/bin/bash | ||
| set -e | ||
| set -x | ||
| FULLVERSION="$FULLVERSION" | ||
| NPMVERSION="$NPMVERSION" | ||
| for dir in tools/osx-pkg/languages/*; do | ||
| if [[ -d "$dir" ]]; then | ||
| d=$(basename "$dir") | ||
| mkdir -p tools/osx-pkg/resources/"$d" | ||
| cat "$dir/welcome.rtf.tmpl" \ | ||
| | sed -E "s/\\{nodeversion\\}/$FULLVERSION/g" \ | ||
| | sed -E "s/\\{npmversion\\}/$NPMVERSION/g" \ | ||
| > tools/osx-pkg/resources/"$d"/welcome.rtf | ||
| fi | ||
| done |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| {\rtf1\ansi\ansicpg1252\cocoartf1038\cocoasubrtf360 | ||
| {\fonttbl\f0\fnil\fcharset0 LucidaGrande;} | ||
| {\colortbl;\red255\green255\blue255;} | ||
| \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural\pardirnatural | ||
| \f0\fs26 \cf0 This package will install Node.js {nodeversion} and npm {npmversion} into /usr/local/.} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| <?xml version="1.0" encoding="utf-8" standalone="no"?> | ||
| <installer-gui-script minSpecVersion="2"> | ||
| <pkg-ref id="org.nodejs.node.pkg"/> | ||
| <pkg-ref id="org.nodejs.npm.pkg"/> | ||
| <title>Node.js</title> | ||
| <welcome file="welcome.rtf" mime-type="text/rtf"/> | ||
| <conclusion file="conclusion.rtf" mime-type="text/rtf"/> | ||
| <allowed-os-versions> | ||
| <os-version min="10.7.0"/> | ||
| </allowed-os-versions> | ||
| <license file="LICENSE"/> | ||
| <background file="osx_installer_logo.png" alignment="topleft" mime-type="image/png"/> | ||
| <options customize="allow" require-scripts="false"/> | ||
| <choices-outline> | ||
| <line choice="org.nodejs.node.pkg"/> | ||
| <line choice="org.nodejs.npm.pkg"/> | ||
| </choices-outline> | ||
| <choice id="org.nodejs.node.pkg" visible="true" title="Node.js" starts_selected="true" starts_enabled="true" starts_visible="true"> | ||
| <pkg-ref id="org.nodejs.node.pkg"/> | ||
| </choice> | ||
| <pkg-ref id="org.nodejs.node.pkg" version="1" onConclusion="none">org.nodejs.node.pkg</pkg-ref> | ||
| <choice id="org.nodejs.npm.pkg" visible="true" title="npm" starts_selected="true" starts_enabled="true" starts_visible="true"> | ||
| <pkg-ref id="org.nodejs.npm.pkg"/> | ||
| </choice> | ||
| <pkg-ref id="org.nodejs.npm.pkg" version="1" onConclusion="none">org.nodejs.npm.pkg</pkg-ref> | ||
| </installer-gui-script> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| {\rtf1\ansi\ansicpg1252\cocoartf1038\cocoasubrtf360 | ||
| {\fonttbl\f0\fnil\fcharset0 LucidaGrande;} | ||
| {\colortbl;\red255\green255\blue255;} | ||
| \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural\pardirnatural | ||
| \f0\fs26 \cf0 Node.js was installed at\ | ||
| \ | ||
| /usr/local/bin/node\ | ||
| \ | ||
| npm was installed at\ | ||
| \ | ||
| /usr/local/bin/npm\ | ||
| \ | ||
| Make sure that /usr/local/bin is in your $PATH.} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| #!/bin/sh | ||
| cd /usr/local/bin | ||
| ln -sf ../lib/node_modules/npm/bin/npm-cli.js npm |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| #!/bin/bash | ||
| [[ -d /usr/local/lib/node_modules/npm ]] \ | ||
| && rm -rf /usr/local/lib/node_modules/npm | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yessss!!!!