From c269de2207b98fde769de30a990081459164c034 Mon Sep 17 00:00:00 2001 From: xiaoniao Date: Tue, 6 Aug 2024 17:48:16 +0800 Subject: [PATCH] Fixed arm64 problem --- main.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/main.py b/main.py index ce1832e..d9d0c31 100644 --- a/main.py +++ b/main.py @@ -277,18 +277,19 @@ class SplashScreen(Handy.Window): CheckRun = subprocess.run(command, shell=True) if not os.path.isfile(f"{(altlinuxpath)}/anisette-server"): self.lbl1.set_text("Downloading anisette-server...") - if computer_cpu_platform.find('AMD64') != -1: + if computer_cpu_platform == 'AMD64': r = requests.get( "https://github.com/vyvir/AltLinux/releases/download/v0.5.0/anisette-server-x86_64", allow_redirects=True, ) - elif computer_cpu_platform.find('v8') != -1 or computer_cpu_platform.find('ARM64') != -1 or computer_cpu_platform.find('v8') != -1: + elif computer_cpu_platform == "aarch64": #Thanks, Dadoum for the anisette server! #or vyvir, do not forget to upload ur version of server. r = requests.get( "https://github.com/Dadoum/Provision/releases/download/2.2.0/anisette-server-aarch64", allow_redirects=True ) + #sorry i dont know what will arm32 output elif computer_cpu_platform.find('v7') != -1 or computer_cpu_platform.find('ARM') != -1 or computer_cpu_platform.find('hf') != -1: r = requests.get( "https://github.com/Dadoum/Provision/releases/download/2.2.0/anisette-server-armv7", @@ -344,12 +345,12 @@ class SplashScreen(Handy.Window): allow_redirects=True, ) """ - if computer_cpu_platform.find('AMD64') != -1: + if computer_cpu_platform == 'AMD64': r = requests.get( "https://github.com/NyaMisty/AltServer-Linux/releases/download/v0.0.5/AltServer-x86_64", allow_redirects=True, ) - elif computer_cpu_platform.find('v8') != -1 or computer_cpu_platform.find('v9') != -1 or computer_cpu_platform.find('ARM64') != -1: + elif computer_cpu_platform == 'aarch64': r = requests.get( "https://github.com/NyaMisty/AltServer-Linux/releases/download/v0.0.5/AltServer-aarch64", allow_redirects=True