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

Update macOS postinstall script to properly build executable paths #2549

Merged
merged 1 commit into from
Jun 4, 2019

Conversation

bsclifton
Copy link
Member

@bsclifton bsclifton commented May 30, 2019

Update postinstall script to properly build executable paths (install path + user data dir name)

Fixes brave/brave-browser#4600

Submitter Checklist:

Test Plan:

  1. Download the PKG file (message @bsclifton if unsure where/how to download)
  2. Rename it in a format like Brave Browser Dev-BSC123.pkg (where BSC123 is your referral promo code)
  3. Run the installer
  4. promoCode file should be created in ~/Library/BraveSoftware/Brave-Browser-Dev/promoCode
  5. Open file and verify contents are BSC123 (or whatever your promo code was)

Reviewer Checklist:

  • New files have MPL-2.0 license header.
  • Request a security/privacy review as needed.
  • Adequate test coverage exists to prevent regressions
  • Verify test plan is specified in PR before merging to source

After-merge Checklist:

  • The associated issue milestone is set to the smallest version that the
    changes has landed on.
  • All relevant documentation has been updated.

@bsclifton bsclifton self-assigned this May 30, 2019
@bsclifton
Copy link
Member Author

Gonna let PR builder run so I can get the PKG file and give it a go 😄

@bsclifton bsclifton force-pushed the bsc-channel-safe-postinstall branch from 516ac24 to 001c419 Compare June 3, 2019 05:03
@bsclifton
Copy link
Member Author

OK finally got this building properly- testing it out now

@bsclifton bsclifton force-pushed the bsc-channel-safe-postinstall branch 2 times, most recently from 9cbd08b to b00c5f1 Compare June 3, 2019 17:08
@bsclifton bsclifton added CI/skip-android Do not run CI builds for Android CI/skip-linux labels Jun 3, 2019
@bsclifton bsclifton force-pushed the bsc-channel-safe-postinstall branch 6 times, most recently from c430507 to a249869 Compare June 4, 2019 06:05
@bsclifton bsclifton changed the title WIP - Update macOS postinstall script to properly build executable paths Update macOS postinstall script to properly build executable paths Jun 4, 2019
@bsclifton bsclifton requested a review from emerick June 4, 2019 07:58
@bsclifton bsclifton force-pushed the bsc-channel-safe-postinstall branch from a249869 to 680f050 Compare June 4, 2019 08:02
@bsclifton
Copy link
Member Author

bsclifton commented Jun 4, 2019

Ready for review! I tested this out and it worked great. You can download the .pkg file from build performed with https://staging.ci.brave.com/job/brave-core-build-pr/job/PR-2549/20/

I downloaded/tested using the binaries from https://staging.ci.brave.com/job/brave-core-build-pr/job/PR-2549/18/ which are identical minus some comments which I forgot to delete from the postinstall script

You can verify the actions taken using the Installer Log menu item (and changing filter to Show All Logs):
Screen Shot 2019-06-04 at 1 09 57 AM

Copy link
Contributor

@emerick emerick left a comment

Choose a reason for hiding this comment

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

Thanks for picking this up @bsclifton, it looks really good! I had one minor comment, might be nothing.

build/mac/pkg-scripts/postinstall Outdated Show resolved Hide resolved
@bsclifton bsclifton force-pushed the bsc-channel-safe-postinstall branch from 680f050 to eb8ba30 Compare June 4, 2019 15:46
@bsclifton
Copy link
Member Author

quick note: going to stop the CI for this, as the change I made only affects the postinstall script which is not tested as part of CI (also, default builds have signing skipped, which omits the creation of the .pkg file)

Copy link
Contributor

@emerick emerick left a comment

Choose a reason for hiding this comment

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

LGTM

@bsclifton bsclifton merged commit 2c2ee29 into master Jun 4, 2019
@bsclifton bsclifton deleted the bsc-channel-safe-postinstall branch June 4, 2019 16:04
brave-builds pushed a commit that referenced this pull request Jun 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI/skip-android Do not run CI builds for Android
Projects
None yet
2 participants