fix: Autoupdater

This commit is contained in:
collecting
2025-10-24 10:36:49 +00:00
parent 20250c3e31
commit 5628d07b9c

View File

@@ -6092,20 +6092,12 @@ int main(int argc, char* argv[]) {
void GMainWindow::OnCheckForUpdates() { void GMainWindow::OnCheckForUpdates() {
#ifdef CITRON_USE_AUTO_UPDATER #ifdef CITRON_USE_AUTO_UPDATER
#ifdef _WIN32 std::string update_url = "https://api.github.com/repos/Zephyron-Dev/Citron-CI/releases";
// Use HTTP URL to bypass SSL issues (will be redirected to HTTPS but handled by updater)
// TODO: Fix SSL libraries and revert to https://releases.citron-emu.org/api/check
std::string update_url = "http://releases.citron-emu.org/api/check";
// Create and show the updater dialog auto* updater_dialog = new Updater::UpdaterDialog(this);
auto* updater_dialog = new UpdaterDialog(this);
updater_dialog->setAttribute(Qt::WA_DeleteOnClose); updater_dialog->setAttribute(Qt::WA_DeleteOnClose);
updater_dialog->show(); updater_dialog->show();
updater_dialog->CheckForUpdates(update_url); updater_dialog->CheckForUpdates(update_url);
#else
QMessageBox::information(this, tr("Updates"),
tr("The update dialog is only available on Windows in this build."));
#endif
#else #else
QMessageBox::information(this, tr("Updates"), QMessageBox::information(this, tr("Updates"),
tr("The automatic updater is not enabled in this build.")); tr("The automatic updater is not enabled in this build."));
@@ -6122,7 +6114,7 @@ void GMainWindow::CheckForUpdatesAutomatically() {
LOG_INFO(Frontend, "Checking for updates automatically..."); LOG_INFO(Frontend, "Checking for updates automatically...");
// Use HTTP URL to bypass SSL issues // Use HTTP URL to bypass SSL issues
std::string update_url = "http://releases.citron-emu.org/api/check"; std::string update_url = "https://api.github.com/repos/Zephyron-Dev/Citron-CI/releases";
// Create updater service for silent background check // Create updater service for silent background check
auto* updater_service = new Updater::UpdaterService(this); auto* updater_service = new Updater::UpdaterService(this);