v0.6.6 - Fix icone header : icon_small.png pre-generee
Changements : - icon_small.png (25x32) generee au build via Pillow LANCZOS, plus de subsample au runtime - Chargement direct de icon_small.png dans le header, sans calcul de redimensionnement - build.bat genere automatiquement icon_small.png avant la compilation - _find_icon() generalisee pour chercher n'importe quel fichier icone Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -19,13 +19,13 @@ if errorlevel 1 (
|
||||
pip install pyinstaller
|
||||
)
|
||||
|
||||
echo [*] Conversion icon.png -> icon.ico...
|
||||
python -c "from PIL import Image; img = Image.open('icon.png'); img.save('icon.ico', format='ICO', sizes=[(256,256),(128,128),(64,64),(32,32),(16,16)])"
|
||||
echo [*] Conversion icon.png -> icon.ico + icon_small.png (32x32)...
|
||||
python -c "from PIL import Image; img = Image.open('icon.png').convert('RGBA'); img.save('icon.ico', format='ICO', sizes=[(256,256),(128,128),(64,64),(32,32),(16,16)]); thumb = img.copy(); thumb.thumbnail((32,32), Image.LANCZOS); thumb.save('icon_small.png')"
|
||||
|
||||
echo [*] Compilation en cours...
|
||||
echo.
|
||||
|
||||
pyinstaller --onedir --noconsole --name "GitUpdateChecker" --icon=icon.ico --add-data "icon.png:." -y git_updater.py
|
||||
pyinstaller --onedir --noconsole --name "GitUpdateChecker" --icon=icon.ico --add-data "icon.png:." --add-data "icon_small.png:." -y git_updater.py
|
||||
|
||||
echo.
|
||||
if exist "dist\GitUpdateChecker\GitUpdateChecker.exe" (
|
||||
|
||||
Reference in New Issue
Block a user