Skip to content
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

Backport podspec and binary building to v0.4.1 #299

Merged
merged 10 commits into from
Jul 29, 2020

Conversation

alloy
Copy link
Contributor

@alloy alloy commented Jul 16, 2020

Summary

Backport podspec and binary building to v0.4.1. Note that this reverts the 0.4.2-rc1 changes!

Test Plan

See steps to create a NPM package and use it with this RN macOS change.

@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Jul 16, 2020
@alloy alloy force-pushed the add-podspec-for-macos-v0.4.1 branch 3 times, most recently from 1590c59 to 4d20086 Compare July 16, 2020 21:03
@alloy alloy force-pushed the add-podspec-for-macos-v0.4.1 branch from 4d20086 to 44a3fdd Compare July 16, 2020 21:40
neildhar and others added 5 commits July 17, 2020 00:51
Summary:
The build is currently failing (possibly because 19.04 is EOL). This updates it to just use the latest Ubuntu.
Pull Request resolved: facebook#215

Reviewed By: willholen

Differential Revision: D21026727

Pulled By: neildhar

fbshipit-source-id: 3b0bd7e286e8d2b21d3b7122e495c3fa31f9e41a
Summary:
Builds are currently failing because the tzdata package requires user
input while being installed via apt-get. Setting the environment
variable `DEBIAN_FRONTEND` to `noninteractive` forces apt-get to
bypass the requirement.
Pull Request resolved: facebook#229

Reviewed By: tmikov

Differential Revision: D21242342

Pulled By: neildhar

fbshipit-source-id: 8f393ff785ec1f67e7ca9628dbb0cd85f2fff095
Summary:
This change avoids future build failures due to user input
requirements when installing packages via apt-get.
Pull Request resolved: facebook#230

Reviewed By: tmikov

Differential Revision: D21244023

Pulled By: neildhar

fbshipit-source-id: ce694c6e9b7de42a9459afe9fe2479386bbeb51c
Instead packge the binaries in an extra layer of tarball, which also
saves some bytes on-disk on platforms that don't need it.
@alloy alloy changed the title [DO NOT MERGE] Backport podspec and binary building to v0.4.1 Backport podspec and binary building to v0.4.1 Jul 21, 2020
@alloy
Copy link
Contributor Author

alloy commented Jul 21, 2020

@willholen Ok, this should be good to go; I’ve tested the build artefact and the steps to create the NPM package locally with success. Can you publish the release?

@willholen
Copy link
Contributor

Could you update this with the same changes from https://github.com/facebook/hermes/pull/297/files/3e4904476bc65de821c7bb43d602a8da8e675b36 ? (there's a few "Show resolved" buttons to see what exactly they were)

@alloy
Copy link
Contributor Author

alloy commented Jul 29, 2020

@willholen Good call 👍 Done.

@Huxpro
Copy link
Contributor

Huxpro commented Jul 29, 2020

Hey @alloy, thanks for the work!

Since we already have a 0.4.1 section in https://github.com/facebook/hermes/releases, I think we can make an 0.4.3 exclusively for macOS. Could you change the version in the code (package.json, CMakefile, .gradle, podspec) all to the 0.4.3?

The plan is that we can only npm publish the hermes-engine-darwin@0.4.3 and not the others.

project(Hermes
VERSION 0.4.2
VERSION 0.4.1
Copy link
Contributor

Choose a reason for hiding this comment

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

0.4.3


Pod::Spec.new do |spec|
spec.name = "hermes"
spec.version = "0.4.1"
Copy link
Contributor

Choose a reason for hiding this comment

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

0.4.3

@@ -0,0 +1,19 @@
{
"name": "hermes-engine-darwin",
"version": "0.4.1",
Copy link
Contributor

Choose a reason for hiding this comment

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

0.4.3

@@ -1,6 +1,6 @@
{
"name": "hermes-engine",
"version": "0.4.2-rc1",
"version": "0.4.1",
Copy link
Contributor

Choose a reason for hiding this comment

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

0.4.3

@@ -7,7 +7,7 @@

// This must be consistent with the release_version in npm/package.json
// and the HERMES_RELEASE_VERSION in CMakeLists.txt
def release_version = "0.4.2-rc1"
def release_version = "0.4.1"
Copy link
Contributor

Choose a reason for hiding this comment

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

0.4.3

@alloy
Copy link
Contributor Author

alloy commented Jul 29, 2020

@Huxpro Is it ok to not put the proxy code back that was added in the 0.4.2 RC, so it otherwise remains equal to the existing 0.4.1 release?

@Huxpro
Copy link
Contributor

Huxpro commented Jul 29, 2020

@Huxpro Is it ok to not put the proxy code back that was added in the 0.4.2 RC, so it otherwise remains equal to the existing 0.4.1 release?

Yes! The plan is to only turn on Proxy at RC releases (for now).

@Huxpro Huxpro merged commit ffecb5a into facebook:release-v0.4 Jul 29, 2020
@Huxpro
Copy link
Contributor

Huxpro commented Jul 29, 2020

Hey @alloy, since the PR looks otherwise great. I think we can just merge it and I will take care of the version bump thing. Thanks for the work!

@alloy
Copy link
Contributor Author

alloy commented Jul 30, 2020

@Huxpro Awesome, thanks so much! 🙏

@alloy alloy deleted the add-podspec-for-macos-v0.4.1 branch July 30, 2020 09:53
@alloy
Copy link
Contributor Author

alloy commented Jul 30, 2020

@Huxpro @willholen Could you give me a ping when you’ve published the macOS version of the package?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Do not delete this pull request or issue due to inactivity.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants