2020-05-05 00:50:03 +00:00
version : 0.0 .0 .{build}
2020-03-23 02:34:50 +00:00
clone_depth : 1
environment :
matrix :
- APPVEYOR_BUILD_WORKER_IMAGE : Visual Studio 2019
2020-11-30 03:13:27 +00:00
QTDIR : C:\Qt\5.15
2020-03-23 02:34:50 +00:00
- APPVEYOR_BUILD_WORKER_IMAGE : macOS
BUILD_TARGET : macos
- APPVEYOR_BUILD_WORKER_IMAGE : Ubuntu1604
BUILD_TARGET : steamlink
2020-03-23 05:48:30 +00:00
- APPVEYOR_BUILD_WORKER_IMAGE : Ubuntu1604
2020-03-23 02:34:50 +00:00
BUILD_TARGET : linux
2020-03-24 05:21:30 +00:00
FFMPEG_CONFIGURE_ARGS : --enable-pic --disable-static --enable-shared --disable-all --enable-avcodec --enable-decoder=h264 --enable-decoder=hevc --enable-nvdec --enable-hwaccel=h264_nvdec --enable-hwaccel=hevc_nvdec --enable-hwaccel=h264_vaapi --enable-hwaccel=hevc_vaapi --enable-hwaccel=h264_vdpau --enable-hwaccel=hevc_vdpau
2020-03-23 02:34:50 +00:00
install :
- sh : '[ "$BUILD_TARGET" != macos ] || nvm use node'
- sh : '[ "$BUILD_TARGET" != macos ] || npm install --global create-dmg'
2020-06-07 21:14:06 +00:00
- sh : '[ "$BUILD_TARGET" != macos ] || brew install qt'
- sh : '[ "$BUILD_TARGET" != macos ] || brew link --force qt'
2020-03-23 02:34:50 +00:00
- sh : '[ "$BUILD_TARGET" != steamlink ] || sudo apt install -y libc6:i386 libstdc++6:i386'
- sh : '[ "$BUILD_TARGET" != steamlink ] || git clone --depth=1 https://github.com/ValveSoftware/steamlink-sdk.git $HOME/steamlink-sdk'
2020-04-28 00:09:52 +00:00
- sh : '[ "$BUILD_TARGET" != linux ] || sudo add-apt-repository ppa:beineri/opt-qt-5.14.2-xenial'
2020-03-23 05:48:30 +00:00
- sh : '[ "$BUILD_TARGET" != linux ] || sudo apt update'
2020-03-24 05:21:30 +00:00
- sh : '[ "$BUILD_TARGET" != linux ] || sudo apt install -y qt514base qt514quickcontrols2 qt514svg qt514wayland nasm libgbm-dev libdrm-dev libfreetype6-dev libasound2-dev libdbus-1-dev libegl1-mesa-dev libgl1-mesa-dev libgles2-mesa-dev libglu1-mesa-dev libibus-1.0-dev libpulse-dev libudev-dev libx11-dev libxcursor-dev libxext-dev libxi-dev libxinerama-dev libxkbcommon-dev libxrandr-dev libxss-dev libxt-dev libxv-dev libxxf86vm-dev wayland-protocols libopus-dev libvdpau-dev'
2020-12-22 02:30:21 +00:00
- sh : 'if [[ "$BUILD_TARGET" = linux ]]; then export SDL2_VER=2.0.14 && wget https://www.libsdl.org/release/SDL2-$SDL2_VER.tar.gz && tar -xvf SDL2-$SDL2_VER.tar.gz && cd SDL2-$SDL2_VER && ./configure && make -j$(nproc) && sudo make install && cd ..; fi'
2020-03-23 05:48:30 +00:00
- sh : 'if [[ "$BUILD_TARGET" = linux ]]; then export SDL2_TTF_VER=2.0.15 && wget https://www.libsdl.org/projects/SDL_ttf/release/SDL2_ttf-$SDL2_TTF_VER.tar.gz && tar -xvf SDL2_ttf-$SDL2_TTF_VER.tar.gz && cd SDL2_ttf-$SDL2_TTF_VER && ./configure && make -j$(nproc) && sudo make install && cd ..; fi'
2020-12-12 18:51:00 +00:00
- sh : 'if [[ "$BUILD_TARGET" = linux ]]; then export LIBVA_VER=2.10.0 && wget https://github.com/intel/libva/releases/download/$LIBVA_VER/libva-$LIBVA_VER.tar.bz2 && tar -xvf libva-$LIBVA_VER.tar.bz2 && cd libva-$LIBVA_VER && ./configure && make -j$(nproc) && sudo make install && cd ..; fi'
- sh : 'if [[ "$BUILD_TARGET" = linux ]]; then export NVHDR_VER=8.1.24.12 && wget https://github.com/FFmpeg/nv-codec-headers/releases/download/n$NVHDR_VER/nv-codec-headers-$NVHDR_VER.tar.gz && tar -xvf nv-codec-headers-$NVHDR_VER.tar.gz && cd nv-codec-headers-$NVHDR_VER && sudo make install && cd ..; fi'
2020-07-15 03:53:52 +00:00
- sh : 'if [[ "$BUILD_TARGET" = linux ]]; then export FFMPEG_VER=4.3.1 && wget https://ffmpeg.org/releases/ffmpeg-$FFMPEG_VER.tar.bz2 && tar -xvf ffmpeg-$FFMPEG_VER.tar.bz2 && cd ffmpeg-$FFMPEG_VER && ./configure $FFMPEG_CONFIGURE_ARGS && make -j$(nproc) && sudo make install && sudo ldconfig && cd ..; fi'
2020-03-23 05:48:30 +00:00
- sh : 'if [[ "$BUILD_TARGET" = linux ]]; then mkdir $HOME/bin && wget -O $HOME/bin/linuxdeployqt https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage && chmod a+x $HOME/bin/linuxdeployqt; fi'
2020-03-23 02:34:50 +00:00
before_build :
- 'git submodule update --init --recursive'
2020-11-30 03:13:27 +00:00
- cmd : 'set OLDPATH=%PATH%'
2020-05-05 00:49:57 +00:00
- cmd : 'set /p VERSION=<app\version.txt'
2020-03-23 02:34:50 +00:00
- sh : 'export VERSION=`cat app/version.txt`'
build_script :
2020-11-30 03:13:27 +00:00
- cmd : 'set PATH=%OLDPATH%;%QTDIR%\msvc2019_64\bin;%ProgramFiles(x86)%\WiX Toolset v3.11\bin'
- cmd : 'scripts\build-arch.bat Release x64'
- cmd : 'set PATH=%OLDPATH%;%QTDIR%\msvc2019\bin;%ProgramFiles(x86)%\WiX Toolset v3.11\bin'
- cmd : 'scripts\build-arch.bat Release x86'
- cmd : 'scripts\generate-bundle.bat Release'
2020-03-23 05:48:30 +00:00
- sh : '[ "$BUILD_TARGET" != linux ] || source /opt/qt514/bin/qt514-env.sh'
- sh : '[ "$BUILD_TARGET" != linux ] || PATH=$PATH:$HOME/bin scripts/build-appimage.sh'
2020-03-23 02:34:50 +00:00
- sh : '[ "$BUILD_TARGET" != macos ] || scripts/generate-dmg.sh Release'
- sh : '[ "$BUILD_TARGET" != steamlink ] || STEAMLINK_SDK_PATH=$HOME/steamlink-sdk scripts/build-steamlink-app.sh'
after_build :
2020-11-30 03:22:16 +00:00
- cmd : 'appveyor PushArtifact build\installer-x86-Release\MoonlightPortable-x86-%VERSION%.zip -FileName MoonlightPortable-x86-r%APPVEYOR_BUILD_NUMBER%.zip'
- cmd : 'appveyor PushArtifact build\symbols-x86-Release\MoonlightDebuggingSymbols-x86-%VERSION%.zip -FileName MoonlightDebuggingSymbols-x86-r%APPVEYOR_BUILD_NUMBER%.zip'
- cmd : 'appveyor PushArtifact build\installer-x64-Release\MoonlightPortable-x64-%VERSION%.zip -FileName MoonlightPortable-x64-r%APPVEYOR_BUILD_NUMBER%.zip'
- cmd : 'appveyor PushArtifact build\symbols-x64-Release\MoonlightDebuggingSymbols-x64-%VERSION%.zip -FileName MoonlightDebuggingSymbols-x64-r%APPVEYOR_BUILD_NUMBER%.zip'
2020-03-23 02:34:50 +00:00
- sh : '[ "$BUILD_TARGET" != steamlink ] || appveyor PushArtifact build/installer-release/Moonlight-SteamLink-$VERSION.zip -FileName Moonlight-SteamLink-r$APPVEYOR_BUILD_NUMBER.zip'
- sh : '[ "$BUILD_TARGET" != macos ] || appveyor PushArtifact build/installer-Release/Moonlight-$VERSION.dmg -FileName Moonlight-r$APPVEYOR_BUILD_NUMBER.dmg'
2020-03-23 05:48:30 +00:00
- sh : '[ "$BUILD_TARGET" != linux ] || appveyor PushArtifact build/installer-release/Moonlight-$VERSION-x86_64.AppImage -FileName Moonlight-r$APPVEYOR_BUILD_NUMBER-x86_64.AppImage'
2020-03-23 02:34:50 +00:00
deploy : off