Skip to content

Commit 7d493f5

Browse files
Fix macOS builds in travis-ci
1 parent bfb1210 commit 7d493f5

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

.travis.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,14 +134,20 @@ install:
134134
cp "version" $HOME/hombebrew_cache
135135
cd "$HOME/hombebrew_cache"
136136
wget https://builds.shiki.hu/homebrew/libtorrent-rasterbar.rb
137-
wget https://builds.shiki.hu/homebrew/libtorrent-rasterbar--1.1.9+git20180812.0bcf6cef23+patched-configure.el_capitan.bottle.tar.gz
137+
wget https://builds.shiki.hu/homebrew/5146d2df7e48f321511273fb9829ebdc3a6dc519f9ef36a344a343ae524c3ae6--libtorrent-rasterbar-1.1.9+git20180812.0bcf6cef23+patched-configure.el_capitan.bottle.tar.gz
138138
fi
139139
140-
# Copy custom libtorrent bottle to homebrew's cache so it can find and install it
140+
# Copy custom libtorrent bottle to homebrew's download cache so it can find and install it
141141
# Also install our custom libtorrent formula by passing the local path to it
142142
# These 2 files are restored from Travis' cache.
143-
cp "$HOME/hombebrew_cache/libtorrent-rasterbar--1.1.9+git20180812.0bcf6cef23+patched-configure.el_capitan.bottle.tar.gz" "$(brew --cache)"
143+
cp "$HOME/hombebrew_cache/5146d2df7e48f321511273fb9829ebdc3a6dc519f9ef36a344a343ae524c3ae6--libtorrent-rasterbar-1.1.9+git20180812.0bcf6cef23+patched-configure.el_capitan.bottle.tar.gz" "$(brew --cache)/downloads"
144144
brew install "$HOME/hombebrew_cache/libtorrent-rasterbar.rb"
145+
146+
# NOTE about the bottle name
147+
# The part before the "--" characters is a sha256 hash of the string
148+
# of the URL homebrew itself would use to download the bottle.
149+
# In this case the URL is the following:
150+
# http://127.0.0.1/libtorrent-rasterbar-1.1.9+git20180812.0bcf6cef23+patched-configure.el_capitan.bottle.tar.gz
145151
146152
if [ "$build_system" = "cmake" ]; then
147153
brew outdated cmake || brew upgrade cmake

0 commit comments

Comments
 (0)