Skip to content
This repository was archived by the owner on Aug 8, 2025. It is now read-only.

Commit 28ee807

Browse files
committed
Updated / simplified install process
1 parent 1664a6f commit 28ee807

File tree

2 files changed

+21
-5
lines changed

2 files changed

+21
-5
lines changed

components/shellbridge.py

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# Installer task for both windows and linux/mac with progress and error handling
1010

1111

12-
class InstallSpicetify(QThread):
12+
class InstallSpicetifyold(QThread):
1313
progress_signal = pyqtSignal(str)
1414
finished_signal = pyqtSignal()
1515

@@ -40,6 +40,24 @@ def run(self):
4040

4141
self.finished_signal.emit()
4242

43+
class InstallSpicetify(QThread):
44+
progress_signal = pyqtSignal(str)
45+
finished_signal = pyqtSignal()
46+
47+
def run(self):
48+
try:
49+
if sys.platform == 'win32':
50+
self.progress_signal.emit("Installing Spicetify...")
51+
subprocess.run(
52+
'echo y | powershell.exe -Command "iwr -useb https://raw.githubusercontent.com/spicetify/spicetify-cli/master/install.ps1 | iex"', check=True, shell=True)
53+
self.progress_signal.emit("done")
54+
except Exception as e:
55+
print("Error detected!")
56+
print(e)
57+
self.progress_signal.emit("fail")
58+
59+
self.finished_signal.emit()
60+
4361
# Update spicetify task
4462

4563

main.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ def __init__(self):
7979
self.timer.start()
8080

8181
self.bt_master.clicked.connect(self.masterButton)
82-
self.bt_uninstall.clicked.connect(self.UninstallModal)
82+
#self.bt_uninstall.clicked.connect(self.UninstallModal)
83+
self.bt_uninstall.clicked.connect(self.startRemoval)
8384
self.bt_cmd.clicked.connect(self.Custom)
8485
self.check_noupdate.stateChanged.connect(self.DisableUpdate)
8586
self.check_watchwitch.stateChanged.connect(self.PatchWatchWitch)
@@ -355,9 +356,6 @@ def Custom(self):
355356
# Called when spicetify is installed or not
356357
def setup_finished(self):
357358
if not self.isInFaultMode:
358-
if not self.isNeverRestarting:
359-
self.iprocess = RestartSpotify()
360-
self.iprocess.start()
361359
if self.isAutoClosing:
362360
self.close()
363361

0 commit comments

Comments
 (0)