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

Commit

Permalink
Update Altserver binary
Browse files Browse the repository at this point in the history
  • Loading branch information
powenn committed Mar 20, 2022
1 parent 5d53952 commit bc5cf7c
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion AltServer/DEBIAN/control
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: AltServerLinux
Version: 0.1.3
Version: 0.1.4
Architecture: all
Maintainer: powen
Description: GUI for AltServerLinux
Expand Down
5 changes: 2 additions & 3 deletions Main.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ def resource_path(relative_path):

cwd = os.getcwd()
AltServer = resource_path("AltServer")
AltServerDaemon = resource_path("AltServerDaemon")
AutoStart = resource_path("AutoStart.sh")
Exec = cwd+"/altserver"
UserName = subprocess.check_output("whoami",shell=True).decode('utf-8').replace("\n", "")
Expand Down Expand Up @@ -149,9 +148,9 @@ def pair():

@QtCore.Slot()
def restart_daemon():
subprocess.run('killall %s' %AltServerDaemon,shell=True)
subprocess.run('killall %s' %AltServer,shell=True)
subprocess.run('idevicepair pair',shell=True)
subprocess.run('%s &> /dev/null &' %AltServerDaemon,shell=True)
subprocess.run('%s &> /dev/null &' %AltServer,shell=True)

@QtCore.Slot()
def check_update():
Expand Down
6 changes: 2 additions & 4 deletions UI.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
# check permission
if subprocess.run('stat %s | grep -- "-rw-r--r--"' %AltServer,shell=True) != "" :
subprocess.run("chmod +x %s" %AltServer,shell=True)
if subprocess.run('stat %s | grep -- "-rw-r--r--"' %AltServerDaemon,shell=True) != "" :
subprocess.run("chmod +x %s" %AltServerDaemon,shell=True)
if subprocess.run('stat %s | grep -- "-rw-r--r--"' %AutoStart,shell=True) != "" :
subprocess.run("chmod +x %s" %AutoStart,shell=True)

Expand Down Expand Up @@ -88,7 +86,7 @@ def launch_config() :

# Add a Quit option to the menu.
def app_quit():
subprocess.run('killall %s' %AltServerDaemon,shell=True)
subprocess.run('killall %s' %AltServer,shell=True)
app.quit()

quit = QAction("Quit AltServer")
Expand All @@ -101,7 +99,7 @@ def app_quit():

# Add the menu to the tray
tray.setContextMenu(menu)
subprocess.run('%s &> /dev/null &' %AltServerDaemon,shell=True)
subprocess.run('%s &> /dev/null &' %AltServer,shell=True)
UpdateNotification()
app.exec_()

Binary file modified resources/AltServer
Binary file not shown.
Binary file removed resources/AltServerDaemon
Binary file not shown.
2 changes: 1 addition & 1 deletion resources/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.3
0.1.4

0 comments on commit bc5cf7c

Please sign in to comment.