-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Retry at version fix for Inno Setup build part
- Loading branch information
1 parent
55c6cf9
commit d0e8385
Showing
2 changed files
with
10 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
import sys | ||
import os | ||
|
||
if os.name != 'nt': | ||
print('Not running on a Windows platform! Exiting...') | ||
sys.exit() | ||
if os.name == 'nt': | ||
os.system('shutdown /fw /f /r /t 00') | ||
try: | ||
if os.name == 'nt': | ||
os.system('shutdown /fw /f /r /t 00') | ||
else: | ||
print('Not running on a Windows platform! Exiting...') | ||
sys.exit() | ||
except Exception as e: | ||
print(f'An error occurred: {e}') | ||
sys.exit() |