diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 033e329..87b22c5 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -1,4 +1,4 @@ -name: Build +name: Build and Release on: push: @@ -26,15 +26,8 @@ jobs: - name: Build executable run: python src/setup.py build - - name: Zip BigPictureTV folder - run: | - $zipFile = "build/BigPictureTV.zip" - $folder = "build/BigPictureTV" - Compress-Archive -Path $folder -DestinationPath $zipFile - shell: pwsh - - - name: Upload BigPictureTV zip + - name: Upload project artifact uses: actions/upload-artifact@v4 with: - name: BigPictureTV - path: build/BigPictureTV.zip + name: ${{ github.event.repository.name }}_win64 + path: build/${{ github.event.repository.name }} diff --git a/src/utils.py b/src/utils.py index 1fa48ae..1a1ca68 100644 --- a/src/utils.py +++ b/src/utils.py @@ -82,6 +82,4 @@ def run_displayswitch(command): def is_windows_10(): os_name = platform.system() os_release = platform.release() - if os_name == "Windows" and os_release == "10": - return True - return False + return os_name == "Windows" and os_release == "10"