Make it easy to build Cemu on BSD (#1632)

This commit is contained in:
Kevin Reinholz 2025-07-22 23:59:09 -07:00 committed by GitHub
parent 955ce9b973
commit 4efa40c51c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
41 changed files with 167 additions and 57 deletions

View file

@ -110,13 +110,13 @@ bool CemuUpdateWindow::QueryUpdateInfo(std::string& downloadUrlOut, std::string&
std::string urlStr("https://cemu.info/api2/version.php?v=");
auto* curl = curl_easy_init();
urlStr.append(_curlUrlEscape(curl, BUILD_VERSION_STRING));
#if BOOST_OS_LINUX
#if BOOST_OS_LINUX || BOOST_OS_BSD // dummy placeholder on BSD for now
urlStr.append("&platform=linux_appimage");
#elif BOOST_OS_WINDOWS
urlStr.append("&platform=windows");
#elif BOOST_OS_MACOS
urlStr.append("&platform=macos_bundle");
#elif
#else
#error Name for current platform is missing
#endif
#if defined(__aarch64__)
@ -126,6 +126,9 @@ bool CemuUpdateWindow::QueryUpdateInfo(std::string& downloadUrlOut, std::string&
#else
urlStr.append("_unknown");
#endif
#if BOOST_OS_BSD
return false; // BSD users must update from source; no binary available
#endif
const auto& config = GetWxGUIConfig();
if(config.receive_untested_updates)
@ -425,7 +428,7 @@ void CemuUpdateWindow::WorkerThread()
#if BOOST_OS_WINDOWS
const auto update_file = tmppath / L"update.zip";
#elif BOOST_OS_LINUX
#elif BOOST_OS_LINUX || BOOST_OS_BSD // dummy placeholder on BSD for now
const auto update_file = tmppath / L"Cemu.AppImage";
#elif BOOST_OS_MACOS
const auto update_file = tmppath / L"cemu.dmg";