update windows ico
This commit is contained in:
parent
a30d02eb2e
commit
270d6ea391
2 changed files with 1 additions and 12 deletions
7
.github/workflows/release.yml
vendored
7
.github/workflows/release.yml
vendored
|
|
@ -40,13 +40,6 @@ jobs:
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
pip install pyinstaller Pillow
|
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
|
- name: Build with PyInstaller
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
|
|
@ -12,11 +12,7 @@ hiddenimports = []
|
||||||
hiddenimports += collect_submodules('rich._unicode_data')
|
hiddenimports += collect_submodules('rich._unicode_data')
|
||||||
|
|
||||||
# Determine the best icon to use
|
# Determine the best icon to use
|
||||||
icon_file = None
|
icon_file = 'disco-reaper-icon.ico' if os.path.exists('disco-reaper-icon.ico') else 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'
|
|
||||||
|
|
||||||
print(f"DEBUG: Selected icon_file = {icon_file}")
|
print(f"DEBUG: Selected icon_file = {icon_file}")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue