2020-12-30 08:15:51 +13:00
|
|
|
#!/bin/bash -ex
|
|
|
|
|
|
|
|
BRANCH=`echo ${GITHUB_REF##*/}`
|
|
|
|
|
2020-12-30 11:52:33 +13:00
|
|
|
ver=$(cat /yuzu/README.md | grep -o 'early-access [[:digit:]]*' | cut -c 14-17)
|
2020-12-30 09:23:31 +13:00
|
|
|
title="yuzu Early Access $ver"
|
2020-12-30 08:15:51 +13:00
|
|
|
|
|
|
|
|
2020-12-30 08:39:55 +13:00
|
|
|
yuzupatch=( $(ls -d patches/* ) )
|
2020-12-30 09:14:44 +13:00
|
|
|
for i in "${yuzupatch[@]}"; do patch -p1 < "$i"; done
|
2020-12-30 08:15:51 +13:00
|
|
|
|
2020-12-31 09:25:13 +13:00
|
|
|
find . -name "CMakeLists.txt" -exec sed -i 's/^.*-Werror$/-W/g' {} +
|
|
|
|
find . -name "CMakeLists.txt" -exec sed -i 's/^.*-Werror=.*)$/ )/g' {} +
|
|
|
|
find . -name "CMakeLists.txt" -exec sed -i 's/^.*-Werror=.*$/ /g' {} +
|
|
|
|
find . -name "CMakeLists.txt" -exec sed -i 's/-Werror/-W/g' {} +
|
|
|
|
|
2021-01-14 04:10:39 +13:00
|
|
|
#Fix freezing when closing the window
|
|
|
|
sed -i -e '0,/is_thread_exiting.store(true);/! s/is_thread_exiting.store(true);/&\n cv.notify_all();/' src/video_core/shader/async_shaders.cpp
|
|
|
|
#Fix Deriving Keys window not being a child of main
|
|
|
|
sed -i -e 's/QProgressDialog prog;/QProgressDialog prog(this);/g' src/yuzu/main.cpp
|
|
|
|
|
2020-12-30 08:15:51 +13:00
|
|
|
mkdir build && cd build
|
|
|
|
|
2021-01-04 14:28:02 +13:00
|
|
|
cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=/usr/lib/ccache/gcc -DCMAKE_CXX_COMPILER=/usr/lib/ccache/g++ -DTITLE_BAR_FORMAT_IDLE="$title" -DTITLE_BAR_FORMAT_RUNNING="$title | {3}" -DENABLE_COMPATIBILITY_LIST_DOWNLOAD=ON -DGIT_BRANCH="HEAD" -DGIT_DESC="$msvc" -DUSE_DISCORD_PRESENCE=ON -DENABLE_QT_TRANSLATION=ON
|
2020-12-30 09:23:31 +13:00
|
|
|
|
|
|
|
ninja
|
|
|
|
|
|
|
|
|
|
|
|
cd /tmp
|
|
|
|
curl -sLO "https://raw.githubusercontent.com/$GITHUB_REPOSITORY/$BRANCH/.github/workflows/appimage.sh"
|
|
|
|
chmod a+x appimage.sh
|
|
|
|
./appimage.sh
|