9 Commits
Author SHA1 Message Date
Michael Herrmann 5096a546df Fix errors in macOS .pkg postinstall script (#36483)
Eg. when installing from Brave-Browser-universal.pkg, the previous
implementation gave the following `postinstall` errors in
`/var/log/install.log`:

chmod: /Applications/Brave Browser universal.app: No such file or directory
chown: /Applications/Brave Browser universal.app: No such file or directory
chgrp: /Applications/Brave Browser universal.app: No such file or directory
2026-05-15 19:43:26 +01:00
Cepera 8602bd5556 Fix permissions for BraveSoftware folder (#18593)
Fix permissions to BraveSoftware folder
2023-05-24 19:00:18 +03:00
Kevin Kuehler f943f86bb2 macos: Fix postinstall for lowercase refcodes
For lowercase referral codes we normalize them to uppercase. When
stripping the referral code from the filename, that means we need to do
a case insensitive replacement. We use perl instead of sed because macOS
uses BSD sed, which doesn't support the "i" flag for regex.

Fixes https://github.com/brave/brave-browser/issues/9785
2020-05-14 12:48:14 -07:00
Kevin Kuehler 3ec602215e Revert "Revert "Promo services fixes""
This reverts commit f4883aa2d8.
2020-04-13 17:22:14 -07:00
Kevin Kuehler f4883aa2d8 Revert "Promo services fixes" 2020-04-11 13:46:27 -07:00
Kevin Kuehler 7646871e55 build/mac: Normalize referral code to uppercase
* If referral code is given in standard format ([a-zA-Z]{3}[0-9]{3}),
    convert to uppercase
  * Convert the script to #!/bin/bash because it is full of bash-isms
2020-04-08 12:50:15 -07:00
Emerick Rogul 7b86021cc7 Don't inadvertently confuse pkg file name with promo code 2019-07-20 20:55:28 -04:00
Brian Clifton eb8ba30e23 Update postinstall script to properly build executable paths (install path + user data dir name)
Fixes https://github.com/brave/brave-browser/issues/4600
2019-06-04 08:46:11 -07:00
Emerick Rogul 021a3e6e47 On Mac, create an install pkg to parse referral code
When run against the release channel, this creates a signed install
pkg that parses a referral code (if any) from its filename and
writes it to user-data-dir. When run against any other channel,
no pkg is created.
2018-09-24 19:11:15 -04:00