feat: use imajviewericon.png as app icon for both Linux and Windows
Some checks failed
Build Windows / build-windows (push) Has been cancelled
Some checks failed
Build Windows / build-windows (push) Has been cancelled
- Replace generated icon in install.sh with proper imajviewericon.png (64x64 resize) - Update deb/ icon to match source icon (64x64 PNG) - Update windows/runner/resources/app_icon.ico from imajviewericon.png (6 sizes: 16-256) - Add SetupIconFile to Inno Setup installer config
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 441 B After Width: | Height: | Size: 6.7 KiB |
36
install.sh
36
install.sh
@@ -42,31 +42,19 @@ ok "Symlink: $BIN_LINK → $INSTALL_DIR/${APP}"
|
||||
|
||||
# ── İkon (64×64 PNG) ──
|
||||
if [ ! -f "$ICON_FILE" ]; then
|
||||
info "İkon oluşturuluyor…"
|
||||
python3 -c "
|
||||
import struct, zlib, sys
|
||||
w=h=64; r=g=b=0xff
|
||||
raw=b''
|
||||
for y in range(h):
|
||||
raw+=b'\\x00'
|
||||
for x in range(w):
|
||||
d=abs(x-32)+abs(y-32)
|
||||
if d<24: r,g,b=100,140,255
|
||||
elif d<30: r,g,b=200,220,255
|
||||
else: r,g,b=40,45,50
|
||||
raw+=bytes([r,g,b,255])
|
||||
def c(t,d):
|
||||
c=t+d
|
||||
return struct.pack('>I',len(d))+c+struct.pack('>I',zlib.crc32(c)&0xffffffff)
|
||||
with open('$ICON_FILE','wb') as f:
|
||||
f.write(b'\\x89PNG\\r\\n\\x1a\\n')
|
||||
f.write(c(b'IHDR',struct.pack('>IIBBBBB',w,h,8,6,0,0,0)))
|
||||
f.write(c(b'IDAT',zlib.compress(raw)))
|
||||
f.write(c(b'IEND',b''))
|
||||
print(' İkon: $ICON_FILE')
|
||||
"
|
||||
if [ -f "$SCRIPT_DIR/imajviewericon.png" ]; then
|
||||
info "İkon kopyalanıyor (64x64)…"
|
||||
python3 -c "
|
||||
from PIL import Image
|
||||
im = Image.open('$SCRIPT_DIR/imajviewericon.png')
|
||||
im.resize((64,64), Image.LANCZOS).save('$ICON_FILE')
|
||||
" && ok "İkon: $ICON_FILE" || err "İkon dönüştürme başarısız!"
|
||||
else
|
||||
err "imajviewericon.png bulunamadı!"
|
||||
fi
|
||||
else
|
||||
ok "İkon zaten mevcut"
|
||||
fi
|
||||
ok "İkon hazır"
|
||||
|
||||
# ── .desktop dosyası ──
|
||||
info ".desktop dosyası oluşturuluyor…"
|
||||
|
||||
@@ -23,6 +23,7 @@ SolidCompression=yes
|
||||
WizardStyle=modern
|
||||
PrivilegesRequired=admin
|
||||
ArchitecturesInstallIn64BitMode=x64compatible
|
||||
SetupIconFile=..\windows\runner\resources\app_icon.ico
|
||||
|
||||
[Languages]
|
||||
Name: "turkish"; MessagesFile: "compiler:Languages\Turkish.isl"
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 104 KiB |
Reference in New Issue
Block a user