mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-22 20:44:15 +00:00
Merge pull request #13429 from Chocobo1/travisCI
Fix building in macOS on TravisCI
This commit is contained in:
commit
6de2435041
35
.travis.yml
35
.travis.yml
@ -130,29 +130,17 @@ install:
|
|||||||
fi
|
fi
|
||||||
- |
|
- |
|
||||||
if [ "$libt_branch" = "RC_1_2" ] && [ "$TRAVIS_OS_NAME" = "osx" ]; then
|
if [ "$libt_branch" = "RC_1_2" ] && [ "$TRAVIS_OS_NAME" = "osx" ]; then
|
||||||
wget https://builds.shiki.hu/travis/brew/version
|
# building libtorrent manually should be faster than using the official bottle
|
||||||
if ! cmp --quiet "version" "$HOME/travis/brew/version" ; then
|
# because the bottle will also pull in a lot of updated dependencies and prolong the overall time
|
||||||
echo "Cached files are different from server. Downloading new ones."
|
pushd "$HOME"
|
||||||
# First delete old files
|
git clone --single-branch --branch RC_1_2 https://github.com/arvidn/libtorrent.git
|
||||||
rm -r "$HOME/travis/brew"
|
cd libtorrent
|
||||||
mkdir "$HOME/travis/brew"
|
git checkout tags/v1.2.10
|
||||||
cp "version" $HOME/travis/brew
|
|
||||||
cd "$HOME/travis/brew"
|
|
||||||
wget https://builds.shiki.hu/travis/brew/libtorrent-rasterbar.rb
|
|
||||||
wget https://builds.shiki.hu/travis/brew/f01f8d840b6eaf05df8df811815128ae6e7227977b1cba4825f0a1fb73a4d9f0--libtorrent-rasterbar-1.2.6.high_sierra.bottle.tar.gz
|
|
||||||
fi
|
|
||||||
# Copy custom libtorrent bottle to homebrew's download cache so it can find and install it
|
|
||||||
# Also install our custom libtorrent formula by passing the local path to it
|
|
||||||
# These 2 files are restored from Travis' cache.
|
|
||||||
cp "$HOME/travis/brew/f01f8d840b6eaf05df8df811815128ae6e7227977b1cba4825f0a1fb73a4d9f0--libtorrent-rasterbar-1.2.6.high_sierra.bottle.tar.gz" "$(brew --cache)/downloads"
|
|
||||||
brew uninstall libtorrent-rasterbar
|
|
||||||
brew install "$HOME/travis/brew/libtorrent-rasterbar.rb"
|
|
||||||
|
|
||||||
# NOTE about the bottle name
|
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=14 -Ddeprecated-functions=OFF -DOPENSSL_ROOT_DIR="$openssl_root_path" ./
|
||||||
# The part before the "--" characters is a sha256 hash of the string
|
make
|
||||||
# of the URL homebrew itself would use to download the bottle.
|
sudo make install
|
||||||
# In this case the URL is the following:
|
popd
|
||||||
# http://127.0.0.1/libtorrent-rasterbar-1.2.6.high_sierra.bottle.tar.gz
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
script:
|
script:
|
||||||
@ -168,7 +156,8 @@ script:
|
|||||||
mkdir build && cd build
|
mkdir build && cd build
|
||||||
cmake $cmake_conf ../
|
cmake $cmake_conf ../
|
||||||
fi
|
fi
|
||||||
- make && make install
|
- make
|
||||||
|
- make install
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
- if [ "$gui" = "true" ]; then qbt_exe="qbittorrent" ; else qbt_exe="qbittorrent-nox" ; fi
|
- if [ "$gui" = "true" ]; then qbt_exe="qbittorrent" ; else qbt_exe="qbittorrent-nox" ; fi
|
||||||
|
@ -125,8 +125,8 @@ TorrentHandleImpl::TorrentHandleImpl(Session *session, const lt::torrent_handle
|
|||||||
, m_seedingTimeLimit(params.seedingTimeLimit)
|
, m_seedingTimeLimit(params.seedingTimeLimit)
|
||||||
, m_hasSeedStatus(params.hasSeedStatus)
|
, m_hasSeedStatus(params.hasSeedStatus)
|
||||||
, m_hasRootFolder(params.hasRootFolder)
|
, m_hasRootFolder(params.hasRootFolder)
|
||||||
, m_useAutoTMM(params.savePath.isEmpty())
|
|
||||||
, m_hasFirstLastPiecePriority(params.firstLastPiecePriority)
|
, m_hasFirstLastPiecePriority(params.firstLastPiecePriority)
|
||||||
|
, m_useAutoTMM(params.savePath.isEmpty())
|
||||||
, m_ltAddTorrentParams(params.ltAddTorrentParams)
|
, m_ltAddTorrentParams(params.ltAddTorrentParams)
|
||||||
{
|
{
|
||||||
if (m_useAutoTMM)
|
if (m_useAutoTMM)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user