chore: reorganize dist/, remove release/, update install paths
Build Windows / build-windows (push) Has been cancelled
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:
1 parent
7173254857
commit
a4567af902
23 files changed
+20
-30
No files matched your search
+7
-1
@@ -44,4 +44,10 @@ app.*.map.json
|
|||||||
/android/app/profile
|
/android/app/profile
|
||||||
/android/app/release
|
/android/app/release
|
||||||
|
|
||||||
|
# Distribution binaries — only keep under dist/
|
||||||
|
*.deb
|
||||||
|
*.tar.gz
|
||||||
|
*.exe
|
||||||
|
!dist/*.deb
|
||||||
|
!dist/*.exe
|
||||||
|
release/
|
||||||
@@ -12,7 +12,18 @@ Ultra hafif görüntü izleyici. Flutter ile yazıldı — Linux & Windows deste
|
|||||||
|
|
||||||
## Linux Kurulum
|
## 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
|
```bash
|
||||||
git clone https://git.softmediadesign.com/git_alhan/imajviewer.git
|
git clone https://git.softmediadesign.com/git_alhan/imajviewer.git
|
||||||
@@ -20,22 +31,6 @@ cd imajviewer
|
|||||||
./install.sh
|
./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
|
### Kaldırma
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|||||||
File renamed without changes.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
After Width: | Height: | Size: 912 KiB |
+1
-8
@@ -21,19 +21,12 @@ 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)"
|
command -v xdg-desktop-menu >/dev/null 2>&1 || err "xdg-desktop-menu bulunamadı (xdg-utils paketi gerekli)"
|
||||||
|
|
||||||
if [ ! -f "$BUNDLE_DIR/${APP}" ]; then
|
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…"
|
info "Binary bulunamadı, Flutter build başlatılıyor…"
|
||||||
cd "$SCRIPT_DIR"
|
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."
|
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"
|
BUNDLE_DIR="${SCRIPT_DIR}/build/linux/x64/release/bundle"
|
||||||
[ -f "$BUNDLE_DIR/${APP}" ] || err "Build başarısız!"
|
[ -f "$BUNDLE_DIR/${APP}" ] || err "Build başarısız!"
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
|
|
||||||
# ── Kurulum dizinleri ──
|
# ── Kurulum dizinleri ──
|
||||||
mkdir -p "$INSTALL_DIR" "$(dirname "$BIN_LINK")" "$(dirname "$DESKTOP_FILE")" "$ICON_DIR"
|
mkdir -p "$INSTALL_DIR" "$(dirname "$BIN_LINK")" "$(dirname "$DESKTOP_FILE")" "$ICON_DIR"
|
||||||
|
|||||||
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