Skip to content
This repository has been archived by the owner on Sep 9, 2021. It is now read-only.

Commit

Permalink
fix: 修复退出命令无法执行的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
innc11 committed Apr 23, 2021
1 parent 8638167 commit f0541b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ def main(self, response1, settingsJson):
# 开始下载过程
self.download(rootDir, workMode)

# 如果被打包就执行一下退出前命令
if inDev and command != '':
# 如果没被打包就执行一下退出前命令
if not inDev and command != '':
subprocess.call(f'cd /D "{self.e.exe.parent.parent.parent.windowsPath}" && {command}', shell=True)

webview.invokeCallback('cleanup')
Expand Down

0 comments on commit f0541b4

Please sign in to comment.