Skip to content

Commit

Permalink
v0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
sumeet-chand committed Jun 8, 2024
1 parent ebfcd28 commit 9fc1fe0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ jobs:
- name: Build for Windows
run: |
pyinstaller --onefile --noconsole --icon=assets/view_earth.ico --name=Heroes3MapLiker Heroes3MapLiker.py
icacls "build" /grant:r "Everyone:(OI)(CI)F" /T
ls build
# icacls "dist" /grant:r "Everyone:(OI)(CI)F" /T
ls dist
- name: Run Windows Tests
run: python tests.py
Expand Down Expand Up @@ -60,6 +60,7 @@ jobs:
run: |
pyinstaller --onefile --noconsole --icon=assets/view_earth.ico --name=Heroes3MapLiker_macos Heroes3MapLiker.py
chmod -R +rwx build
ls -l
ls -l build
- name: Run macOS Tests
Expand Down Expand Up @@ -95,6 +96,7 @@ jobs:
run: |
pyinstaller --onefile --noconsole --icon=assets/view_earth.ico --name=Heroes3MapLiker_linux Heroes3MapLiker.py
chmod -R +rwx build
ls -l
ls -l build
- name: Run Linux Tests
Expand Down
2 changes: 1 addition & 1 deletion tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def test_binary_execution(self):
Return code. 0 = test passed. 1 = test failed.
"""
if sys.platform == 'win32' and not running_headless: # Check if running on Windows
binary_path = 'build/Heroes3MapLiker.exe'
binary_path = 'dist/Heroes3MapLiker.exe'
elif sys.platform == 'darwin' and not running_headless: # Check if running on macOS
binary_path = 'build/Heroes3MapLiker_macos'
elif sys.platform.startswith('linux') and not running_headless: # Check if running on Linux and not headless
Expand Down

0 comments on commit 9fc1fe0

Please sign in to comment.