feat: release/ dizininde hazır binary + install.sh fallback
This commit is contained in:
1 parent
493342084a
commit
212de45d01
17 files changed
+12
-1
No files matched your search
+8
-1
@@ -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)"
|
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
|
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"
|
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 ──
|
||||||
|
|||||||
Binary file not shown.
@@ -0,0 +1 @@
|
|||||||
|
[{"family":"MaterialIcons","fonts":[{"asset":"fonts/MaterialIcons-Regular.otf"}]}]
|
||||||
Binary file not shown.
@@ -0,0 +1 @@
|
|||||||
|
{"format-version":[1,0,0],"native-assets":{}}
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
|
|||||||
|
{"app_name":"imajviewer","version":"1.0.0","build_number":"1","package_name":"imajviewer"}
|
||||||
Binary file not shown.
Executable
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
|
|||||||
|
{"format-version":[1,0,0],"native-assets":{}}
|
||||||
Reference in new issue
Block a user