Skip to content
This repository was archived by the owner on Oct 18, 2023. It is now read-only.

Commit 7d08b77

Browse files
committed
fix 24 characters UDID issue
1 parent 03b12e3 commit 7d08b77

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

AltServer/DEBIAN/control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: AltServerLinux
22
Name: AltServerLinuxGUI
3-
Version: 0.1.6
3+
Version: 0.1.7
44
Architecture: all
55
Author: powen <powen0966091716@gmail.com>
66
Maintainer: powen <powen0966091716@gmail.com>

Main.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from PyQt5.QtGui import *
77
from PyQt5.QtWidgets import *
88
from PySide2 import QtCore
9+
import glob
910
import subprocess
1011
import requests
1112
import 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)

UI.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
# import
66
from Main import *
7-
import glob
87

98
# check permission
109
if not os.access(AltServer, os.X_OK):

resources/version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
0.1.6
1+
0.1.7
22
x64

0 commit comments

Comments
 (0)