From 564df3ef01fdf4c1d428b8cef3eaca68e12e5007 Mon Sep 17 00:00:00 2001 From: BarsTiger Date: Sat, 4 Jun 2022 19:20:20 +0300 Subject: [PATCH] now legacy --- horsy.py | 27 ++++++++++++++------------- horsy_installer.py | 14 +++++++------- horsy_installer_silent.py | 8 ++++---- horsy_updater.py | 6 +++--- horsygui.py | 10 +++++----- modules/gui.py | 6 +++--- requirements.txt | 3 ++- 7 files changed, 38 insertions(+), 36 deletions(-) diff --git a/horsy.py b/horsy.py index bca415b..045de63 100644 --- a/horsy.py +++ b/horsy.py @@ -46,7 +46,7 @@ except: print('Horsy may be not installed correctly. Please reinstall it or stop other horsy instances. ' 'If you installed it just now, please restart PC.') -if int(request.get('https://github.com/horsy-ml/horsy/raw/master/web_vars/version').text) > version: +if int(request.get('https://github.com/horsy-ml/legacy/raw/master/web_vars/version').text) > version: from ezzdl.download import dl import urllib.request print('New version available!') @@ -55,12 +55,12 @@ if int(request.get('https://github.com/horsy-ml/horsy/raw/master/web_vars/versio print('Please wait...') os.rename(horsy_vars.horsypath + "horsy.exe", horsy_vars.horsypath + "horsy.old") print('Renamed horsy.exe to horsy.old') - dl(['https://github.com/horsy-ml/horsy/raw/master/bin/horsy.exe', - 'https://github.com/horsy-ml/horsy/raw/master/bin/horsygui.exe'] + dl(['https://github.com/horsy-ml/legacy/raw/master/bin/horsy.exe', + 'https://github.com/horsy-ml/legacy/raw/master/bin/horsygui.exe'] if os.path.isfile(horsy_vars.horsypath + 'horsygui.exe') else - ['https://github.com/horsy-ml/horsy/raw/master/bin/horsy.exe'], + ['https://github.com/horsy-ml/legacy/raw/master/bin/horsy.exe'], horsy_vars.horsypath) - urllib.request.urlretrieve("https://github.com/horsy-ml/horsy/raw/master/web_vars/version", + urllib.request.urlretrieve("https://github.com/horsy-ml/legacy/raw/master/web_vars/version", horsy_vars.horsypath + '/apps/version') subprocess.Popen(str(horsy_vars.horsypath + 'horsy.exe'), shell=True, close_fds=True) sys.exit(0) @@ -73,14 +73,15 @@ isNoArgs = False def log_logo(): cls() print(''' - __ __ _______ ______ _______ __ __ -| | | || || _ | | || | | | -| |_| || _ || | || | _____|| |_| | -| || | | || |_||_ | |_____ | | -| || |_| || __ ||_____ ||_ _| -| _ || || | | | _____| | | | -|__| |__||_______||___| |_||_______| |___| - Search powered by Algolia + ___ _______ _______ _______ _______ __ __ +| | | || || _ || || | | | +| | | ___|| ___|| |_| || || |_| | +| | | |___ | | __ | || || | +| |___ | ___|| || || || _||_ _| +| || |___ | |_| || _ || |_ | | +|_______||_______||_______||__| |__||_______| |___| + Search powered by Algolia + Get the latest acryl version at horsy.ml ''') diff --git a/horsy_installer.py b/horsy_installer.py index 0385bcf..ce406f7 100644 --- a/horsy_installer.py +++ b/horsy_installer.py @@ -67,7 +67,7 @@ class Ui_MainWindow(object): self.horsy_text_lefttop = QtWidgets.QLabel(self.centralwidget) self.horsy_text_lefttop.setGeometry(QtCore.QRect(50, 10, 231, 30)) self.horsy_text_lefttop.setStyleSheet("color: white;\n" - "font: 20pt \"MS Shell Dlg 2\";\n" + "font: 18pt \"MS Shell Dlg 2\";\n" "background: none;") self.horsy_text_lefttop.setObjectName("horsy_text_lefttop") self.path_message = QtWidgets.QTextBrowser(self.centralwidget) @@ -135,10 +135,10 @@ class Ui_MainWindow(object): def retranslateUi(self, MainWindow): _translate = QtCore.QCoreApplication.translate - MainWindow.setWindowTitle(_translate("MainWindow", "horsy - installation")) + MainWindow.setWindowTitle(_translate("MainWindow", "horsy legacy - installation")) self.path_box.setPlaceholderText(_translate("MainWindow", "Installation folder, apps will be stored here")) self.choose_path_button.setText(_translate("MainWindow", "Choose path")) - self.horsy_text_lefttop.setText(_translate("MainWindow", "horsy - installation")) + self.horsy_text_lefttop.setText(_translate("MainWindow", "hlegacy - installation")) self.path_message.setHtml(_translate("MainWindow", "\n" "