-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
Refactor Mac installer generation #776
Closed
Closed
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
97e79f5
Refactor Mac .pkg generation
remixz f186d1c
Add symlink step to Mac installer
remixz 8491b02
Merge remote-tracking branch 'origin/v1.x' into refactor-mac-installer
remixz e08d2df
Create empty files on pre-pkg, set up uninstall
remixz 2fb6c21
Add pre-pkg to .PHONY in makefile
remixz 5580022
Wrap Makefile lines at 80 characters
remixz d1c2ac7
Wrap osx-pkg README at 80 characters
remixz 1755cc8
Simplify `no_symlink` check in tools/install.py
remixz 1434328
Add uninstaller
remixz 5e2c01c
Change codesign to sign iojs, not node
remixz cb069d4
Merge remote-tracking branch 'origin/v1.x' into refactor-mac-installer
remixz 2526e1d
Remove node_modules if folder is empty
remixz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
## osx-pkg | ||
|
||
### Build | ||
|
||
Prerequisites: | ||
|
||
* Packages: http://s.sudre.free.fr/Software/Packages/about.html | ||
|
||
In the root io.js folder: | ||
|
||
```bash | ||
make pkg | ||
``` | ||
|
||
### Localization | ||
|
||
There are two files that can be localized in the OS X installer: the | ||
introduction, and the summary. | ||
|
||
1. Make sure you've installed Packages: | ||
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 | ||
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) | ||
6. In Packages, go to the Presentation tab, and if not already selected, | ||
choose "Introduction" from the dropdown on the right-hand side. | ||
![packages preview](https://s3.amazonaws.com/f.cl.ly/items/3q160p2r1X1B3i2N1W42/Screen%20Shot%202015-02-09%20at%207.26.09%20PM.png) | ||
7. Press the "+" at the bottom right. This will add a new language entry. Click | ||
on the flag, and choose which language you are localizing. | ||
8. Click on the column next to the flag, and ensure "Relative to Project" is | ||
selected. It's a rectangle with the letter "R" inside of it. | ||
9. Click on the last column, which will currently have a dash in it, and | ||
press "Choose...". | ||
10. Locate the `introduction.rtf` file you translated, and choose it. | ||
Don't worry about the `introduction.out.rtf` file, as this is an autogenerated | ||
file, and is dealt with when compiling. | ||
11. In the dropdown that says "Introduction" at the top, choose "Conclusion" | ||
and repeat this process for the `conclusion.rtf` file. | ||
12. Save the project, and commit your changes. The generated files are | ||
automatically ignored by Git, so you don't have to worry about accidentally committing them in. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Should this be added to
.PHONY
?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.
@tellnes Good catch. Fixed, thanks!