Skip to content

Commit

Permalink
Azure Pipelines config to build Mac updater
Browse files Browse the repository at this point in the history
This is the version I used to build the v0.1.0 release.
  • Loading branch information
slipher committed Jan 31, 2021
1 parent 383bee4 commit a67d235
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 1 deletion.
40 changes: 40 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml

trigger:
- main

pool:
vmImage: 'macOS-10.15'

steps:
- script: 'git submodule update --init'
displayName: 'Check out code'
- script: |
set -e
sudo xcode-select -s /Applications/Xcode_12.1.1.app/Contents/Developer
brew install autoconf automake pkg-config gettext
./mac-build-aria.sh
displayName: 'Build aria2'
- script: |
set -e
curl -LO https://download.qt.io/archive/qt/5.14/5.14.2/single/qt-everywhere-src-5.14.2.tar.xz
tar -xzf qt-everywhere-src-5.14.2.tar.xz
cd qt-everywhere-src-5.14.2
MODULES=qtbase,qtquickcontrols,qtquickcontrols2,qtsvg,qtgraphicaleffects
./configure -opensource -confirm-license -release -optimize-size -no-shared -no-framework -static --c++std=14 -nomake tests -nomake tools -nomake examples "--prefix=$PWD/../qt"
eval make -j`sysctl -n hw.logicalcpu` module-{$MODULES} || eval make -j`sysctl -n hw.logicalcpu` module-{$MODULES}
eval make module-{$MODULES}-install_subtargets
displayName: 'Build Qt'
- script: |
set -e
mkdir build; cd build
../qt/bin/qmake -config release ..
make
mv updater2.app 'Unvanquished Updater.app'
zip -9 -r UnvUpdaterOSX.zip 'Unvanquished Updater.app'
displayName: 'Build updater'
- publish: $(System.DefaultWorkingDirectory)/build/UnvUpdaterOSX.zip
artifact: UpdaterZip
2 changes: 1 addition & 1 deletion mac-build-aria.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ cd aria2
git clean -dXff
export MACOSX_DEPLOYMENT_TARGET=10.13 # To match Qt's target
AUTOPOINT=$(brew --prefix gettext)/bin/autopoint autoreconf -i
./configure --without-libxml2 --without-libexpat --without-sqlite3 --enable-libaria2 --without-zlib --without-libcares --enable-static=yes ARIA2_STATIC=yes --without-libssh2 --disable-websocket --disable-nls
./configure --without-libxml2 --without-libexpat --without-sqlite3 --enable-libaria2 --without-zlib --without-libcares --without-libgmp --without-libnettle --enable-static=yes ARIA2_STATIC=yes --without-libssh2 --disable-websocket --disable-nls
# Build only src/ to skip the gettext infrastructure targets which complain about
# gettext being newer than the version required in configure.ac
cd src
Expand Down

0 comments on commit a67d235

Please sign in to comment.