66from PyQt5 .QtGui import *
77from PyQt5 .QtWidgets import *
88from PySide2 import QtCore
9+ import glob
910import subprocess
1011import requests
1112import os
@@ -48,7 +49,7 @@ def about_message():
4849 f'Version : { LocalVersion } ' )
4950 msg_box .setDetailedText (
5051 'Source code :\n '
51- 'https://github.com/powenn/AltServer-LinuxGUI'
52+ 'https://github.com/powenn/AltServer-LinuxGUI\n '
5253 'For questions about this GUI, you can contact @powen00hsiao on Twitter' )
5354 msg_box .exec ()
5455
@@ -64,7 +65,11 @@ def Installation():
6465 if DeviceCheck .returncode == 0 :
6566 PATH = resource_path ("AltStore.ipa" )
6667 _udid = subprocess .check_output ("lsusb -v 2> /dev/null | grep -e 'Apple Inc' -A 2 | grep iSerial | awk '{print $3}'" ,shell = True ).decode ().strip ()
67- UDID = _udid [:8 ] + '-' + _udid [8 :]
68+ _udid_length = len (_udid )
69+ if _udid_length == 24 :
70+ UDID = _udid [:8 ] + '-' + _udid [8 :]
71+ if _udid_length == 40 :
72+ UDID = _udid
6873 AccountArea = QDialog ()
6974 Layout = QVBoxLayout ()
7075 Privacy_msg = QLabel (
@@ -140,7 +145,7 @@ def Button_2fa_Clicked():
140145 if CheckSuccess .returncode == 0 :
141146 Installing = False
142147 Success_msg .setVisible (True )
143- Success_msg .showMessage ("Installation Succeded" ,"AltStore was successfully installed" , QSystemTrayIcon .Information ,200 )
148+ Success_msg .showMessage ("Installation Succeded" ,"AltStore was successfully installed" ,QSystemTrayIcon .Information ,200 )
144149
145150 btn .setText ("Install" )
146151 btn .clicked .connect (ButtonClicked )
0 commit comments