mirror of
https://github.com/LC044/WeChatMsg
synced 2025-02-23 03:22:17 +08:00
新增自动更新exe
This commit is contained in:
parent
330693e60c
commit
884a953207
@ -463,14 +463,6 @@ class MainWinController(QMainWindow, mainwindow.Ui_MainWindow, QCursorGif):
|
|||||||
error_box.exec_()
|
error_box.exec_()
|
||||||
|
|
||||||
def update_(self, url,is_update_online):
|
def update_(self, url,is_update_online):
|
||||||
if is_update_online:
|
|
||||||
print('更新软件', url)
|
|
||||||
exe_path = r'./update.exe'
|
|
||||||
self.close()
|
|
||||||
if os.path.exists(exe_path):
|
|
||||||
subprocess.run(f'start /B {exe_path} --url {url}', shell=True, check=True)
|
|
||||||
sys.exit()
|
|
||||||
else:
|
|
||||||
QDesktopServices.openUrl(QUrl("https://memotrace.cn/"))
|
QDesktopServices.openUrl(QUrl("https://memotrace.cn/"))
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user