forked from mwcproject/mwcbuildpipeline
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup_macos.sh
executable file
·29 lines (23 loc) · 970 Bytes
/
setup_macos.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh
brew cleanup
brew update
brew uninstall llvm
brew install libressl
brew install coreutils
curl https://sh.rustup.rs -sSf | bash -s -- -y
# ~/.cargo/bin/rustup override set 1.37.0
echo "##vso[task.setvariable variable=PATH;]$PATH:$HOME/.cargo/bin"
# Get helper files
git clone https://github.com/mwcproject/mwcbuilder-macos-helpers
cat mwcbuilder-macos-helpers/macos_599_* | bzip2 -dc | tar xvf -
rm -rf mwcbuilder-macos-helpers
# Need to fix what installer did. Installer hardecoded paths to libs by some reasons and it is breaks the build
echo "Patching QT paths. MacOS issue"
grep -rl bay . | grep prl | xargs sed -i '' 's/-F\/Users\/bay\/Qt\/5.9.9\/clang_64\/lib//g'
echo "Patch for QT paths - DONE"
grep -rl bay . | grep prl
echo "Checking for QT paths, prl - DONE"
# It is easy to check if you need that patch:
# 1. Remove the sed command
# 2. Try to build
# 3. Check logs if they have your local paths. If you see them - it is a problem for azure.