Skip to content
This repository was archived by the owner on Jan 31, 2019. It is now read-only.

Commit 8565e52

Browse files
committed
Fix up frozen upgrades for Windows
1 parent 74b4152 commit 8565e52

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

proscli/upgrade.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,12 @@ def upgrade_cli():
1414

1515
def get_upgrade_command():
1616
if getattr(sys, 'frozen', False):
17-
cmd = os.path.abspath(os.path.join(sys.executable, '..', '..', 'updater.exe'))
18-
if os.path.exists(cmd):
19-
return [cmd, '-reducedgui']
17+
if sys.platform == 'win32':
18+
cmd = os.path.abspath(os.path.join(sys.executable, '..', '..', 'updater.exe'))
19+
if os.path.exists(cmd):
20+
return [cmd, '/reducedgui', '/checknow']
21+
else:
22+
return False
2023
else:
2124
return False
2225
else:

0 commit comments

Comments
 (0)