From 270d6ea391d3d7c1912221141364ce451eba7b45 Mon Sep 17 00:00:00 2001 From: rambros Date: Thu, 5 Mar 2026 18:07:29 +0530 Subject: [PATCH] update windows ico --- .github/workflows/release.yml | 7 ------- disco-reaper.spec | 6 +----- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0cacd64..027b7f1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -40,13 +40,6 @@ jobs: pip install -r requirements.txt pip install pyinstaller Pillow - - name: Convert Icon to ICO (Windows) - if: matrix.os == 'windows-latest' - shell: python - run: | - from PIL import Image - img = Image.open('disco-reaper-icon.png') - img.save('disco-reaper-icon.ico', format='ICO', sizes=[(256, 256)]) - name: Build with PyInstaller run: | diff --git a/disco-reaper.spec b/disco-reaper.spec index c70804f..25acfe0 100644 --- a/disco-reaper.spec +++ b/disco-reaper.spec @@ -12,11 +12,7 @@ hiddenimports = [] hiddenimports += collect_submodules('rich._unicode_data') # Determine the best icon to use -icon_file = None -if os.path.exists('disco-reaper-icon.ico'): - icon_file = 'disco-reaper-icon.ico' -elif os.path.exists('disco-reaper-icon.png'): - icon_file = 'disco-reaper-icon.png' +icon_file = 'disco-reaper-icon.ico' if os.path.exists('disco-reaper-icon.ico') else None print(f"DEBUG: Selected icon_file = {icon_file}")