mirror of
				https://github.com/ryujinx-mirror/ryujinx.git
				synced 2025-11-04 08:18:58 -06:00 
			
		
		
		
	Updaters: Fix ARM Linux Updater (#6316)
* Remove Arch Checks * Fix ARM Linux updater
This commit is contained in:
		@@ -333,8 +333,6 @@
 | 
				
			|||||||
  "DialogUpdaterAddingFilesMessage": "Adding New Update...",
 | 
					  "DialogUpdaterAddingFilesMessage": "Adding New Update...",
 | 
				
			||||||
  "DialogUpdaterCompleteMessage": "Update Complete!",
 | 
					  "DialogUpdaterCompleteMessage": "Update Complete!",
 | 
				
			||||||
  "DialogUpdaterRestartMessage": "Do you want to restart Ryujinx now?",
 | 
					  "DialogUpdaterRestartMessage": "Do you want to restart Ryujinx now?",
 | 
				
			||||||
  "DialogUpdaterArchNotSupportedMessage": "You are not running a supported system architecture!",
 | 
					 | 
				
			||||||
  "DialogUpdaterArchNotSupportedSubMessage": "(Only x64 systems are supported!)",
 | 
					 | 
				
			||||||
  "DialogUpdaterNoInternetMessage": "You are not connected to the Internet!",
 | 
					  "DialogUpdaterNoInternetMessage": "You are not connected to the Internet!",
 | 
				
			||||||
  "DialogUpdaterNoInternetSubMessage": "Please verify that you have a working Internet connection!",
 | 
					  "DialogUpdaterNoInternetSubMessage": "Please verify that you have a working Internet connection!",
 | 
				
			||||||
  "DialogUpdaterDirtyBuildMessage": "You Cannot update a Dirty build of Ryujinx!",
 | 
					  "DialogUpdaterDirtyBuildMessage": "You Cannot update a Dirty build of Ryujinx!",
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -68,7 +68,8 @@ namespace Ryujinx.Modules
 | 
				
			|||||||
            }
 | 
					            }
 | 
				
			||||||
            else if (OperatingSystem.IsLinux())
 | 
					            else if (OperatingSystem.IsLinux())
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                _platformExt = "linux_x64.tar.gz";
 | 
					                var arch = RuntimeInformation.OSArchitecture == Architecture.Arm64 ? "arm64" : "x64";
 | 
				
			||||||
 | 
					                _platformExt = $"linux_{arch}.tar.gz";
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            Version newVersion;
 | 
					            Version newVersion;
 | 
				
			||||||
@@ -637,20 +638,6 @@ namespace Ryujinx.Modules
 | 
				
			|||||||
        public static bool CanUpdate(bool showWarnings)
 | 
					        public static bool CanUpdate(bool showWarnings)
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
#if !DISABLE_UPDATER
 | 
					#if !DISABLE_UPDATER
 | 
				
			||||||
            if (RuntimeInformation.OSArchitecture != Architecture.X64 && !OperatingSystem.IsMacOS())
 | 
					 | 
				
			||||||
            {
 | 
					 | 
				
			||||||
                if (showWarnings)
 | 
					 | 
				
			||||||
                {
 | 
					 | 
				
			||||||
                    Dispatcher.UIThread.InvokeAsync(() =>
 | 
					 | 
				
			||||||
                        ContentDialogHelper.CreateWarningDialog(
 | 
					 | 
				
			||||||
                            LocaleManager.Instance[LocaleKeys.DialogUpdaterArchNotSupportedMessage],
 | 
					 | 
				
			||||||
                            LocaleManager.Instance[LocaleKeys.DialogUpdaterArchNotSupportedSubMessage])
 | 
					 | 
				
			||||||
                    );
 | 
					 | 
				
			||||||
                }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
                return false;
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
            if (!NetworkInterface.GetIsNetworkAvailable())
 | 
					            if (!NetworkInterface.GetIsNetworkAvailable())
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                if (showWarnings)
 | 
					                if (showWarnings)
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -78,7 +78,8 @@ namespace Ryujinx.Modules
 | 
				
			|||||||
            }
 | 
					            }
 | 
				
			||||||
            else if (OperatingSystem.IsLinux())
 | 
					            else if (OperatingSystem.IsLinux())
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                _platformExt = "linux_x64.tar.gz";
 | 
					                var arch = RuntimeInformation.OSArchitecture == Architecture.Arm64 ? "arm64" : "x64";
 | 
				
			||||||
 | 
					                _platformExt = $"linux_{arch}.tar.gz";
 | 
				
			||||||
                artifactIndex = 0;
 | 
					                artifactIndex = 0;
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -512,16 +513,6 @@ namespace Ryujinx.Modules
 | 
				
			|||||||
        public static bool CanUpdate(bool showWarnings)
 | 
					        public static bool CanUpdate(bool showWarnings)
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
#if !DISABLE_UPDATER
 | 
					#if !DISABLE_UPDATER
 | 
				
			||||||
            if (RuntimeInformation.OSArchitecture != Architecture.X64)
 | 
					 | 
				
			||||||
            {
 | 
					 | 
				
			||||||
                if (showWarnings)
 | 
					 | 
				
			||||||
                {
 | 
					 | 
				
			||||||
                    GtkDialog.CreateWarningDialog("You are not running a supported system architecture!", "(Only x64 systems are supported!)");
 | 
					 | 
				
			||||||
                }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
                return false;
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
            if (!NetworkInterface.GetIsNetworkAvailable())
 | 
					            if (!NetworkInterface.GetIsNetworkAvailable())
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                if (showWarnings)
 | 
					                if (showWarnings)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user