|
5 | 5 | export APPIMAGE_EXTRACT_AND_RUN=1 |
6 | 6 | export ARCH="$(uname -m)" |
7 | 7 |
|
8 | | -REPO="https://git.citron-emu.org/Citron/Citron.git" |
| 8 | +REPO="https://git.citron-emu.org/citron/emu.git" |
9 | 9 | LIB4BN="https://raw.githubusercontent.com/VHSgunzo/sharun/refs/heads/main/lib4bin" |
10 | 10 | URUNTIME="https://github.com/VHSgunzo/uruntime/releases/latest/download/uruntime-appimage-dwarfs-$ARCH" |
11 | 11 |
|
|
26 | 26 | UPINFO="gh-releases-zsync|$(echo "$GITHUB_REPOSITORY" | tr '/' '|')|latest|*$ARCH.AppImage.zsync" |
27 | 27 |
|
28 | 28 | # BUILD CITRON, fallback to mirror if upstream repo fails to clone |
29 | | -if ! git clone 'https://git.citron-emu.org/citron/emu.git' ./citron; then |
| 29 | +if ! git clone "$REPO" ./citron; then |
30 | 30 | echo "Using mirror instead..." |
31 | 31 | rm -rf ./citron || true |
32 | 32 | git clone 'https://github.com/pkgforge-community/git.citron-emu.org-Citron-Citron.git' ./citron |
|
46 | 46 | fi |
47 | 47 | git submodule update --init --recursive -j$(nproc) |
48 | 48 |
|
49 | | - #Replaces 'boost::asio::io_service' with 'boost::asio::io_context' for compatibility with Boost.ASIO versions 1.74.0 and later |
50 | | - #UPSTREAM FIXED THIS https://git.citron-emu.org/Citron/Citron/commit/21ca0b31191c4af56a78576c502e8382b4c128b4 |
51 | | - #TODO: Remove once a new stable release is made |
52 | | - find src -type f -name '*.cpp' -exec sed -i 's/boost::asio::io_service/boost::asio::io_context/g' {} \; |
| 49 | + # Upstream fixed this issue, but a newer version of boost came out and broke it again 🤣 |
| 50 | + find . -type f \( -name '*.cpp' -o -name '*.h' \) | xargs sed -i 's/\bboost::asio::io_service\b/boost::asio::io_context/g' |
| 51 | + find . -type f \( -name '*.cpp' -o -name '*.h' \) | xargs sed -i 's/\bboost::asio::io_service::strand\b/boost::asio::strand<boost::asio::io_context::executor_type>/g' |
| 52 | + find . -type f \( -name '*.cpp' -o -name '*.h' \) | xargs sed -i 's|#include *<boost/process/async_pipe.hpp>|#include <boost/process/v1/async_pipe.hpp>|g' |
| 53 | + find . -type f \( -name '*.cpp' -o -name '*.h' \) | xargs sed -i 's/\bboost::process::async_pipe\b/boost::process::v1::async_pipe/g' |
53 | 54 |
|
54 | 55 | # remove mysterious sse2neon library dependency |
55 | 56 | sed -i '/sse2neon/d' ./src/video_core/CMakeLists.txt |
|
0 commit comments