Skip to content

Commit

Permalink
Retry at version fix for Inno Setup build part
Browse files Browse the repository at this point in the history
  • Loading branch information
Minionguyjpro committed Oct 13, 2024
1 parent 55c6cf9 commit d0e8385
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,6 @@ jobs:
run: mkdir build
shell: cmd

- name: Set VERSION environment variable
run: set VERSION=${{ needs.set_version.outputs.version }}
shell: cmd

- name: Download artifact
uses: actions/download-artifact@v3
with:
Expand All @@ -89,6 +85,7 @@ jobs:

- name: Build the EXE installer
run: |
set VERSION=${{ needs.set_version.outputs.version }}
"%programfiles(x86)%\Inno Setup 6\iscc.exe" "${{ github.workspace }}\src\WinUEFI-setup.iss"
shell: cmd

Expand Down
14 changes: 9 additions & 5 deletions src/WinUEFI.py
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()

0 comments on commit d0e8385

Please sign in to comment.