chore: reorganize dist/, remove release/, update install paths
Some checks failed
Build Windows / build-windows (push) Has been cancelled
Some checks failed
Build Windows / build-windows (push) Has been cancelled
- Move all distribution binaries to dist/ (Linux .deb + Windows .exe) - Remove release/ directory (redundant, merged into dist/) - Remove root-level .deb and .tar.gz leftovers - Update install.sh to reference dist/ instead of release/ - Update README.md with correct dist/ paths and .deb-first Linux install - Update .gitignore: ignore root binaries, keep dist/*.deb and dist/*.exe
This commit is contained in:
8
.gitignore
vendored
8
.gitignore
vendored
@@ -44,4 +44,10 @@ app.*.map.json
|
||||
/android/app/profile
|
||||
/android/app/release
|
||||
|
||||
|
||||
# Distribution binaries — only keep under dist/
|
||||
*.deb
|
||||
*.tar.gz
|
||||
*.exe
|
||||
!dist/*.deb
|
||||
!dist/*.exe
|
||||
release/
|
||||
29
README.md
29
README.md
@@ -12,7 +12,18 @@ Ultra hafif görüntü izleyici. Flutter ile yazıldı — Linux & Windows deste
|
||||
|
||||
## Linux Kurulum
|
||||
|
||||
**Flutter SDK gerekmez** — `release/` dizininde hazır binary gelir.
|
||||
**Flutter SDK gerekmez** — `dist/` dizininde hazır .deb paketi gelir.
|
||||
|
||||
### .deb paketi ile kurulum (Önerilen)
|
||||
|
||||
```bash
|
||||
git clone https://git.softmediadesign.com/git_alhan/imajviewer.git
|
||||
cd imajviewer
|
||||
sudo dpkg -i dist/imajviewer_1.0.0_amd64.deb
|
||||
sudo apt-get install -f # eksik bağımlılıklar varsa
|
||||
```
|
||||
|
||||
### install.sh ile kurulum (kaynaktan/build)
|
||||
|
||||
```bash
|
||||
git clone https://git.softmediadesign.com/git_alhan/imajviewer.git
|
||||
@@ -20,22 +31,6 @@ cd imajviewer
|
||||
./install.sh
|
||||
```
|
||||
|
||||
Script şunları yapar:
|
||||
- `release/` dizinindeki hazır binary'i kullanır (yoksa `flutter build` dener)
|
||||
- Binary ve kütüphaneleri `~/.local/lib/imajviewer/` altına kopyalar
|
||||
- `~/.local/bin/imajviewer` symlink'i oluşturur
|
||||
- `.desktop` dosyasını kaydeder
|
||||
- Tüm resim formatları için varsayılan izleyici olarak ayarlar
|
||||
|
||||
Kurulumdan sonra bir PNG/JPG dosyasına çift tıklayın veya `xdg-open <dosya>` ile test edin.
|
||||
|
||||
### .deb paketi ile kurulum
|
||||
|
||||
```bash
|
||||
sudo dpkg -i imajviewer_1.0.0_amd64.deb
|
||||
sudo apt-get install -f # eksik bağımlılıklar varsa
|
||||
```
|
||||
|
||||
### Kaldırma
|
||||
|
||||
```bash
|
||||
|
||||
Binary file not shown.
Binary file not shown.
BIN
imajviewericon.png
Normal file
BIN
imajviewericon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 912 KiB |
17
install.sh
17
install.sh
@@ -21,18 +21,11 @@ command -v xdg-mime >/dev/null 2>&1 || err "xdg-mime bulunamadı (xdg-utils pa
|
||||
command -v xdg-desktop-menu >/dev/null 2>&1 || err "xdg-desktop-menu bulunamadı (xdg-utils paketi gerekli)"
|
||||
|
||||
if [ ! -f "$BUNDLE_DIR/${APP}" ]; then
|
||||
# Önce release/ dizininde hazır binary var mı kontrol et
|
||||
RELEASE_DIR="${SCRIPT_DIR}/release"
|
||||
if [ -f "$RELEASE_DIR/${APP}" ]; then
|
||||
info "Hazır binary bulundu: release/"
|
||||
BUNDLE_DIR="$RELEASE_DIR"
|
||||
else
|
||||
info "Binary bulunamadı, Flutter build başlatılıyor…"
|
||||
cd "$SCRIPT_DIR"
|
||||
flutter build linux 2>&1 | tail -1 || err "Flutter build başarısız! Sistemde Flutter SDK yoksa önce git clone yapıp './install.sh' çalıştırın."
|
||||
BUNDLE_DIR="${SCRIPT_DIR}/build/linux/x64/release/bundle"
|
||||
[ -f "$BUNDLE_DIR/${APP}" ] || err "Build başarısız!"
|
||||
fi
|
||||
info "Binary bulunamadı, Flutter build başlatılıyor…"
|
||||
cd "$SCRIPT_DIR"
|
||||
flutter build linux 2>&1 | tail -1 || err "Flutter build başarısız! Sistemde Flutter SDK kurulu olmalı veya dist/imajviewer_*.deb paketini kullanın."
|
||||
BUNDLE_DIR="${SCRIPT_DIR}/build/linux/x64/release/bundle"
|
||||
[ -f "$BUNDLE_DIR/${APP}" ] || err "Build başarısız!"
|
||||
fi
|
||||
|
||||
# ── Kurulum dizinleri ──
|
||||
|
||||
Binary file not shown.
@@ -1 +0,0 @@
|
||||
[{"family":"MaterialIcons","fonts":[{"asset":"fonts/MaterialIcons-Regular.otf"}]}]
|
||||
Binary file not shown.
@@ -1 +0,0 @@
|
||||
{"format-version":[1,0,0],"native-assets":{}}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1 +0,0 @@
|
||||
{"app_name":"imajviewer","version":"1.0.0","build_number":"1","package_name":"imajviewer"}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1 +0,0 @@
|
||||
{"format-version":[1,0,0],"native-assets":{}}
|
||||
Reference in New Issue
Block a user