Skip to content

Commit

Permalink
Fix sed to work on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
filips123 committed Aug 5, 2021
1 parent 9495643 commit de5db5f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions native/packages/brew/configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ BIN=$2
LIBEXEC=$3

# Set the correct version in the source files
sed -i "s/version = \"0.0.0\"/version = \"$VERSION\"/g" Cargo.toml
sed -i "s/DISTRIBUTION_VERSION = '0.0.0'/DISTRIBUTION_VERSION = '$VERSION'/g" userchrome/profile/chrome/pwa/chrome.jsm
sed -i"" -e "s/version = \"0.0.0\"/version = \"$VERSION\"/g" Cargo.toml
sed -i"" -e "s/DISTRIBUTION_VERSION = '0.0.0'/DISTRIBUTION_VERSION = '$VERSION'/g" userchrome/profile/chrome/pwa/chrome.jsm

# Set the path in the manifest to the Homebrew libexec directory
cp manifests/macos.json manifests/brew.json
sed -i "s@/usr/local/libexec/firefoxpwa-connector@$LIBEXEC/firefoxpwa-connector@g" manifests/brew.json
sed -i"" -e "s@/usr/local/libexec/firefoxpwa-connector@$LIBEXEC/firefoxpwa-connector@g" manifests/brew.json

0 comments on commit de5db5f

Please sign in to comment.