Skip to content

Commit

Permalink
Disable updates for local build
Browse files Browse the repository at this point in the history
  • Loading branch information
RipleyTom authored and Megamouse committed Feb 12, 2024
1 parent df74d49 commit 569f72c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions rpcs3/rpcs3qt/main_window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ bool main_window::Init([[maybe_unused]] bool with_cli_boot)
}
});

#if defined(_WIN32) || defined(__linux__) || defined(__APPLE__)
#if !defined(ARCH_ARM64) && (defined(_WIN32) || defined(__linux__) || defined(__APPLE__))
if (const auto update_value = m_gui_settings->GetValue(gui::m_check_upd_start).toString(); update_value != gui::update_off)
{
const bool in_background = with_cli_boot || update_value == gui::update_bkg;
Expand Down Expand Up @@ -3033,7 +3033,7 @@ void main_window::CreateConnects()

connect(ui->updateAct, &QAction::triggered, this, [this]()
{
#if !defined(_WIN32) && !defined(__linux__) && !defined(__APPLE__)
#if (!defined(_WIN32) && !defined(__linux__) && !defined(__APPLE__)) || defined(ARCH_ARM64)
QMessageBox::warning(this, tr("Auto-updater"), tr("The auto-updater isn't available for your OS currently."));
return;
#endif
Expand Down
12 changes: 8 additions & 4 deletions rpcs3/rpcs3qt/update_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,17 @@ void update_manager::check_for_updates(bool automatic, bool check_only, bool aut
m_update_message.clear();
m_changelog.clear();

#ifdef __linux__
if (automatic && !::getenv("APPIMAGE"))
if (automatic)
{
// Don't check for updates on local builds
if (rpcs3::is_local_build())
return;
#ifdef __linux__
// Don't check for updates on startup if RPCS3 is not running from an AppImage.
return;
}
if (!::getenv("APPIMAGE"))
return;
#endif
}

m_parent = parent;
m_downloader = new downloader(parent);
Expand Down

0 comments on commit 569f72c

Please sign in to comment.