feat: release/ dizininde hazır binary + install.sh fallback
This commit is contained in:
17
install.sh
17
install.sh
@@ -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 ──
|
||||
|
||||
BIN
release/data/flutter_assets/AssetManifest.bin
Normal file
BIN
release/data/flutter_assets/AssetManifest.bin
Normal file
Binary file not shown.
1
release/data/flutter_assets/FontManifest.json
Normal file
1
release/data/flutter_assets/FontManifest.json
Normal file
@@ -0,0 +1 @@
|
||||
[{"family":"MaterialIcons","fonts":[{"asset":"fonts/MaterialIcons-Regular.otf"}]}]
|
||||
BIN
release/data/flutter_assets/NOTICES.Z
Normal file
BIN
release/data/flutter_assets/NOTICES.Z
Normal file
Binary file not shown.
1
release/data/flutter_assets/NativeAssetsManifest.json
Normal file
1
release/data/flutter_assets/NativeAssetsManifest.json
Normal file
@@ -0,0 +1 @@
|
||||
{"format-version":[1,0,0],"native-assets":{}}
|
||||
BIN
release/data/flutter_assets/fonts/MaterialIcons-Regular.otf
Normal file
BIN
release/data/flutter_assets/fonts/MaterialIcons-Regular.otf
Normal file
Binary file not shown.
BIN
release/data/flutter_assets/shaders/ink_sparkle.frag
Normal file
BIN
release/data/flutter_assets/shaders/ink_sparkle.frag
Normal file
Binary file not shown.
BIN
release/data/flutter_assets/shaders/stretch_effect.frag
Normal file
BIN
release/data/flutter_assets/shaders/stretch_effect.frag
Normal file
Binary file not shown.
1
release/data/flutter_assets/version.json
Normal file
1
release/data/flutter_assets/version.json
Normal file
@@ -0,0 +1 @@
|
||||
{"app_name":"imajviewer","version":"1.0.0","build_number":"1","package_name":"imajviewer"}
|
||||
BIN
release/data/icudtl.dat
Normal file
BIN
release/data/icudtl.dat
Normal file
Binary file not shown.
BIN
release/imajviewer
Executable file
BIN
release/imajviewer
Executable file
Binary file not shown.
BIN
release/lib/libapp.so
Normal file
BIN
release/lib/libapp.so
Normal file
Binary file not shown.
BIN
release/lib/libdesktop_drop_plugin.so
Normal file
BIN
release/lib/libdesktop_drop_plugin.so
Normal file
Binary file not shown.
BIN
release/lib/libflutter_linux_gtk.so
Normal file
BIN
release/lib/libflutter_linux_gtk.so
Normal file
Binary file not shown.
BIN
release/lib/libscreen_retriever_linux_plugin.so
Normal file
BIN
release/lib/libscreen_retriever_linux_plugin.so
Normal file
Binary file not shown.
BIN
release/lib/libwindow_manager_plugin.so
Normal file
BIN
release/lib/libwindow_manager_plugin.so
Normal file
Binary file not shown.
1
release/lib/native_assets.json
Normal file
1
release/lib/native_assets.json
Normal file
@@ -0,0 +1 @@
|
||||
{"format-version":[1,0,0],"native-assets":{}}
|
||||
Reference in New Issue
Block a user