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) ──
|
# ── İkon (64×64 PNG) ──
|
||||||
if [ ! -f "$ICON_FILE" ]; then
|
if [ ! -f "$ICON_FILE" ]; then
|
||||||
info "İkon oluşturuluyor…"
|
if [ -f "$SCRIPT_DIR/imajviewericon.png" ]; then
|
||||||
python3 -c "
|
info "İkon kopyalanıyor (64x64)…"
|
||||||
import struct, zlib, sys
|
python3 -c "
|
||||||
w=h=64; r=g=b=0xff
|
from PIL import Image
|
||||||
raw=b''
|
im = Image.open('$SCRIPT_DIR/imajviewericon.png')
|
||||||
for y in range(h):
|
im.resize((64,64), Image.LANCZOS).save('$ICON_FILE')
|
||||||
raw+=b'\\x00'
|
" && ok "İkon: $ICON_FILE" || err "İkon dönüştürme başarısız!"
|
||||||
for x in range(w):
|
else
|
||||||
d=abs(x-32)+abs(y-32)
|
err "imajviewericon.png bulunamadı!"
|
||||||
if d<24: r,g,b=100,140,255
|
fi
|
||||||
elif d<30: r,g,b=200,220,255
|
else
|
||||||
else: r,g,b=40,45,50
|
ok "İkon zaten mevcut"
|
||||||
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')
|
|
||||||
"
|
|
||||||
fi
|
fi
|
||||||
ok "İkon hazır"
|
|
||||||
|
|
||||||
# ── .desktop dosyası ──
|
# ── .desktop dosyası ──
|
||||||
info ".desktop dosyası oluşturuluyor…"
|
info ".desktop dosyası oluşturuluyor…"
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ SolidCompression=yes
|
|||||||
WizardStyle=modern
|
WizardStyle=modern
|
||||||
PrivilegesRequired=admin
|
PrivilegesRequired=admin
|
||||||
ArchitecturesInstallIn64BitMode=x64compatible
|
ArchitecturesInstallIn64BitMode=x64compatible
|
||||||
|
SetupIconFile=..\windows\runner\resources\app_icon.ico
|
||||||
|
|
||||||
[Languages]
|
[Languages]
|
||||||
Name: "turkish"; MessagesFile: "compiler:Languages\Turkish.isl"
|
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