mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-12-12 19:37:01 +00:00
Make it easy to build Cemu on BSD (#1632)
This commit is contained in:
parent
955ce9b973
commit
4efa40c51c
41 changed files with 167 additions and 57 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue