Skip to content

Commit d1fe73c

Browse files
authored
test
1 parent 9cbe344 commit d1fe73c

File tree

1 file changed

+22
-49
lines changed

1 file changed

+22
-49
lines changed

citron-appimage.sh

Lines changed: 22 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -31,62 +31,35 @@ git clone --recursive "https://git.citron-emu.org/citron/emulator.git" ./citron
3131
fi
3232

3333
# Upstream fixed this issue, but a newer version of boost came out and broke it again 🤣
34-
find . -type f \( -name '*.cpp' -o -name '*.h' \) | xargs sed -i 's/\bboost::asio::io_service\b/boost::asio::io_context/g'
35-
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'
36-
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'
37-
find . -type f \( -name '*.cpp' -o -name '*.h' \) | xargs sed -i 's/\bboost::process::async_pipe\b/boost::process::v1::async_pipe/g'
38-
39-
# nonsense
40-
find . -type f \( -name '*.cpp' -o -name '*.h' \) | xargs sed -i 's|#include <QNetworkAccessManager>|#include <QtNetwork/QNetworkAccessManager>|g'
41-
find . -type f \( -name '*.cpp' -o -name '*.h' \) | xargs sed -i 's|#include <QSslConfiguration>|#include <QtNetwork/QSslConfiguration>|g'
42-
find . -type f \( -name '*.cpp' -o -name '*.h' \) | xargs sed -i 's|#include <QNetworkReply>|#include <QtNetwork/QNetworkReply>|g'
43-
find . -type f \( -name '*.cpp' -o -name '*.h' \) | xargs sed -i 's|#include <QNetworkRequest>|#include <QtNetwork/QNetworkRequest>|g'
44-
find . -type f \( -name '*.cpp' -o -name '*.h' \) | xargs sed -i 's|#include <QSslSocket>|#include <QtNetwork/QSslSocket>|g'
45-
find . -type f \( -name '*.cpp' -o -name '*.h' \) | xargs sed -i 's|#include <QSslCertificate>|#include <QtNetwork/QSslCertificate>|g'
46-
find . -type f \( -name '*.cpp' -o -name '*.h' \) | xargs sed -i 's|#include <QSslKey>|#include <QtNetwork/QSslKey>|g'
47-
48-
find . -type f \( -name '*.cpp' -o -name '*.h' \) | xargs sed -i 's|#include <QProgressDialog>|#include <QtWidgets/QProgressDialog>|g'
49-
find . -type f \( -name '*.cpp' -o -name '*.h' \) | xargs sed -i 's|#include <QMessageBox>|#include <QtWidgets/QMessageBox>|g'
50-
51-
find . -type f \( -name '*.cpp' -o -name '*.h' \) | xargs sed -i 's|#include <QThread>|#include <QtCore/QThread>|g'
52-
find . -type f \( -name '*.cpp' -o -name '*.h' \) | xargs sed -i 's|#include <QFile>|#include <QtCore/QFile>|g'
53-
find . -type f \( -name '*.cpp' -o -name '*.h' \) | xargs sed -i 's|#include <QDir>|#include <QtCore/QDir>|g'
54-
find . -type f \( -name '*.cpp' -o -name '*.h' \) | xargs sed -i 's|#include <QStandardPaths>|#include <QtCore/QStandardPaths>|g'
55-
find . -type f \( -name '*.cpp' -o -name '*.h' \) | xargs sed -i 's|#include <QCoreApplication>|#include <QtCore/QCoreApplication>|g'
56-
find . -type f \( -name '*.cpp' -o -name '*.h' \) | xargs sed -i 's|#include <QCoreApplication>|#include <QtCore/QCoreApplication>|g'
57-
34+
#find . -type f \( -name '*.cpp' -o -name '*.h' \) | xargs sed -i 's/\bboost::asio::io_service\b/boost::asio::io_context/g'
35+
#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'
36+
#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'
37+
#find . -type f \( -name '*.cpp' -o -name '*.h' \) | xargs sed -i 's/\bboost::process::async_pipe\b/boost::process::v1::async_pipe/g'
5838

5939
# remove mysterious sse2neon library dependency
6040
sed -i '/sse2neon/d' ./src/video_core/CMakeLists.txt
6141

6242
mkdir build
6343
cd build
6444
cmake .. -GNinja \
65-
-DYUZU_CMD=OFF \
66-
-DCITRON_USE_BUNDLED_VCPKG=OFF \
67-
-DCITRON_USE_BUNDLED_QT=OFF \
68-
-DENABLE_QT6=ON \
69-
-DCITRON_USE_BUNDLED_FFMPEG=OFF \
70-
-DCITRON_USE_BUNDLED_SDL2=ON \
71-
-DCITRON_USE_EXTERNAL_SDL2=OFF \
72-
-DCITRON_TESTS=OFF \
73-
-DCITRON_CHECK_SUBMODULES=OFF \
74-
-DCITRON_USE_LLVM_DEMANGLE=OFF \
75-
-DCITRON_ENABLE_LTO=ON \
76-
-DCITRON_USE_QT_MULTIMEDIA=OFF \
77-
-DCITRON_USE_QT_WEB_ENGINE=OFF \
78-
-DENABLE_QT_TRANSLATION=ON \
79-
-DUSE_DISCORD_PRESENCE=OFF \
80-
-DBUNDLE_SPEEX=ON \
81-
-DCITRON_USE_FASTER_LD=OFF \
82-
-DCMAKE_INSTALL_PREFIX=/usr \
83-
-DCMAKE_CXX_FLAGS="$ARCH_FLAGS -Wno-error -w" \
84-
-DCMAKE_C_FLAGS="$ARCH_FLAGS" \
85-
-DCMAKE_SYSTEM_PROCESSOR="$(uname -m)" \
86-
-DCMAKE_BUILD_TYPE=Release \
87-
-DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
88-
-DCITRON_USE_EXTERNAL_VULKAN_HEADERS=OFF \
89-
-DCITRON_USE_EXTERNAL_VULKAN_UTILITY_LIBRARIES=OFF
45+
-DCITRON_ENABLE_LTO=ON \
46+
-DSDL_PIPEWIRE=OFF \
47+
-DCITRON_USE_BUNDLED_VCPKG=ON \
48+
-DCITRON_TESTS=OFF \
49+
-DENABLE_QT6=ON \
50+
-DCITRON_USE_LLVM_DEMANGLE=OFF \
51+
-DCITRON_USE_PRECOMPILED_HEADERS=ON \
52+
-DCMAKE_INSTALL_PREFIX=/usr \
53+
-DUSE_DISCORD_PRESENCE=OFF \
54+
-DBUNDLE_SPEEX=ON \
55+
-DCITRON_USE_BUNDLED_FFMPEG=OFF \
56+
-DCITRON_USE_QT_MULTIMEDIA=OFF \
57+
-DCITRON_USE_QT_WEB_ENGINE=OFF \
58+
-DCMAKE_SYSTEM_PROCESSOR="$(uname -m)" \
59+
-DCMAKE_BUILD_TYPE=Release \
60+
-DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
61+
-DCMAKE_C_FLAGS="$ARCH_FLAGS" \
62+
-DCMAKE_CXX_FLAGS="$ARCH_FLAGS -Wno-error -Wno-template-body -w"
9063
ninja
9164
sudo ninja install
9265
echo "$VERSION" >~/version

0 commit comments

Comments
 (0)