feat: release/ dizininde hazır binary + install.sh fallback
This commit is contained in:
1 parent
493342084a
commit
212de45d01
17 files changed
+16
-5
No files matched your search
+12
-5
@@ -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.
@@ -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