feat: release/ dizininde hazır binary + install.sh fallback

This commit is contained in:
Alhan
2026-07-22 04:07:32 +03:00
parent 493342084a
commit 212de45d01
17 changed files with 16 additions and 5 deletions

View File

@@ -21,11 +21,18 @@ 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
info "Binary bulunamadı, Flutter build başlatılıyor…"
cd "$SCRIPT_DIR"
flutter build linux 2>&1 | tail -1
BUNDLE_DIR="${SCRIPT_DIR}/build/linux/x64/release/bundle"
[ -f "$BUNDLE_DIR/${APP}" ] || err "Build başarısız!"
# Ö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
fi
# ── Kurulum dizinleri ──

Binary file not shown.

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":{}}

Binary file not shown.

View File

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

BIN
release/data/icudtl.dat Normal file

Binary file not shown.

BIN
release/imajviewer Executable file

Binary file not shown.

BIN
release/lib/libapp.so Normal 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":{}}