-
Notifications
You must be signed in to change notification settings - Fork 622
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ci] Create hermes-engine-darwin npm package
Notably the symbolic links need to be stripped from the framework bundle, as npm by design does not support symbolic links to exist in packages. However, seeing as we already package distinct versions of the framework in distinct npm packages, there isn't any need to support multiple versions of Hermes in a single framework bundle; so this should be fine.
- Loading branch information
Showing
5 changed files
with
45 additions
and
0 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,7 @@ workflows: | |
- android | ||
- linux | ||
- macos | ||
- build-macos-runtime | ||
- windows | ||
- test-linux | ||
- test-macos | ||
|
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 |
---|---|---|
@@ -1,6 +1,11 @@ | ||
*.tar.gz | ||
*.tgz | ||
*.sha256 | ||
android | ||
node_modules | ||
osx-bin | ||
package-lock.json | ||
destroot | ||
LICENSE | ||
README.md | ||
hermes.podspec |
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,12 @@ | ||
## Hermes | ||
|
||
Hermes is a small and lightweight JavaScript VM optimized for running React | ||
Native apps on macOS. | ||
|
||
See [hermesengine.dev](https://hermesengine.dev) for more information. | ||
|
||
This package contains a Hermes bytecode compiler for macOS, plus macOS runtime | ||
framework. | ||
|
||
Additional tools are available in | ||
[hermes-engine-cli](https://www.npmjs.com/package/hermes-engine-cli). |
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,23 @@ | ||
{ | ||
"name": "hermes-engine-darwin", | ||
"version": "%VERSION%", | ||
"private": false, | ||
"description": "A JavaScript engine optimized for running React Native on macOS", | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "git@github.com:facebook/hermes.git" | ||
}, | ||
"scripts": { | ||
"strip-symlinks-from-framework": "rm -r destroot/Library/Frameworks/hermes.framework/{Headers,Resources,hermes} && mv destroot/Library/Frameworks/hermes.framework/Versions/0/* destroot/Library/Frameworks/hermes.framework/ && rm -r destroot/Library/Frameworks/hermes.framework/Versions && install_name_tool -id @rpath/hermes.framework/hermes destroot/Library/Frameworks/hermes.framework/hermes", | ||
"prepack": "npm run-script strip-symlinks-from-framework" | ||
}, | ||
"files": [ | ||
"LICENSE", | ||
"README.md", | ||
"hermes.podspec", | ||
"destroot/bin/hermesc", | ||
"destroot/include/**/*", | ||
"destroot/Library/**/*" | ||
] | ||
} |
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