feat: .deb paketi + kurulum talimatı

This commit is contained in:
Alhan
2026-07-22 04:10:18 +03:00
parent fb85a245fd
commit 82e66a82be
25 changed files with 83 additions and 0 deletions

10
deb/DEBIAN/control Normal file
View File

@@ -0,0 +1,10 @@
Package: imajviewer
Version: 1.0.0
Section: graphics
Priority: optional
Architecture: amd64
Depends: libgtk-3-0, libx11-6, xdg-utils
Maintainer: Alhan <alhan@softmediadesign.com>
Description: Ultra hafif Linux görüntü izleyici
Flutter ile yazılmış, PNG/JPG/WebP/BMP/GIF
destekleyen hızlı ve hafif bir resim görüntüleyici.

15
deb/DEBIAN/postinst Executable file
View File

@@ -0,0 +1,15 @@
#!/bin/sh
set -e
# Varsayılan görüntü izleyici olarak ayarla
for mime in image/png image/jpeg image/jpg image/webp image/bmp image/gif; do
xdg-mime default imajviewer.desktop "$mime" 2>/dev/null || true
done
# Masaüstü veritabanını güncelle
which update-desktop-database >/dev/null 2>&1 && \
update-desktop-database /usr/share/applications/ 2>/dev/null || true
which gtk-update-icon-cache >/dev/null 2>&1 && \
gtk-update-icon-cache /usr/share/icons/hicolor/ 2>/dev/null || true
exit 0

12
deb/DEBIAN/prerm Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/sh
set -e
# Varsayılan görüntü izleyici atamasını kaldır
for mime in image/png image/jpeg image/jpg image/webp image/bmp image/gif; do
current=$(xdg-mime query default "$mime" 2>/dev/null || true)
if [ "$current" = "imajviewer.desktop" ]; then
xdg-mime default "" "$mime" 2>/dev/null || true
fi
done
exit 0

1
deb/usr/bin/imajviewer Symbolic link
View File

@@ -0,0 +1 @@
/usr/lib/imajviewer/imajviewer

View File

@@ -0,0 +1 @@
[{"family":"MaterialIcons","fonts":[{"asset":"fonts/MaterialIcons-Regular.otf"}]}]

Binary file not shown.

View File

@@ -0,0 +1 @@
{"format-version":[1,0,0],"native-assets":{}}

View File

@@ -0,0 +1 @@
{"app_name":"imajviewer","version":"1.0.0","build_number":"1","package_name":"imajviewer"}

Binary file not shown.

BIN
deb/usr/lib/imajviewer/imajviewer Executable file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1 @@
{"format-version":[1,0,0],"native-assets":{}}

View File

@@ -0,0 +1,10 @@
[Desktop Entry]
Type=Application
Name=imajViewer
Comment=Ultra hafif görüntü izleyici
Exec=/usr/bin/imajviewer %F
Icon=imajviewer
Terminal=false
Categories=Graphics;Viewer;RasterGraphics;
MimeType=image/png;image/jpeg;image/webp;image/bmp;image/gif;image/jpg;
StartupNotify=false

Binary file not shown.

After

Width:  |  Height:  |  Size: 441 B

View File

@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="image/png">
<comment>PNG image</comment>
<glob pattern="*.png"/>
</mime-type>
<mime-type type="image/jpeg">
<comment>JPEG image</comment>
<glob pattern="*.jpg"/>
<glob pattern="*.jpeg"/>
</mime-type>
<mime-type type="image/webp">
<comment>WebP image</comment>
<glob pattern="*.webp"/>
</mime-type>
<mime-type type="image/bmp">
<comment>BMP image</comment>
<glob pattern="*.bmp"/>
</mime-type>
<mime-type type="image/gif">
<comment>GIF image</comment>
<glob pattern="*.gif"/>
</mime-type>
</mime-info>