File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
.github/actions/universal-package Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 4040 sed '/^[[:blank:]]*def install$/a\'$'\n ENV["CFLAGS"] = "-arch x86_64 -arch arm64"\n' | \
4141 sed '/^[[:blank:]]*def install$/a\'$'\n ENV["LDFLAGS"] = "-arch x86_64 -arch arm64"\n' >${formula}.rb
4242
43+ # Homebrew requires formula files to be placed in taps and disallows
44+ # installing from raw paths, so we manually create a taps folder for a
45+ # 'macvim-dev/deps' tap.
46+ FORMULA_DIR="$(brew --repository)/Library/Taps/macvim-dev/homebrew-deps/Formula/"
47+ mkdir -p "$FORMULA_DIR"
48+ cp ${formula}.rb "$FORMULA_DIR"
49+
4350 # Uninstall the already installed formula because we want to build our own
4451 brew uninstall --ignore-dependencies ${formula} || true
4552
7481
7582 # This will be a no-op if formula was cached. We check if the package
7683 # exists first just to avoid an "already installed" warning.
77- brew list ${formula} &>/dev/null || brew install --quiet --formula -s ./ ${formula}.rb
84+ brew list ${formula} &>/dev/null || brew install --quiet --formula -s macvim-dev/deps/ ${formula}
7885
7986 # If formula was cached, this step is necessary to relink it to brew prefix (e.g. /usr/local)
8087 brew unlink ${formula} && brew link ${formula}
You can’t perform that action at this time.
0 commit comments