detect recovery devices, cleanup code , use const pointers wherever possible, refactor img thumbnail loading, refactor gallery widget

This commit is contained in:
uncor3
2026-03-02 23:25:06 +00:00
parent df0f0f32a7
commit 35c5985f47
64 changed files with 1490 additions and 1260 deletions
+27 -72
View File
@@ -10,6 +10,10 @@
"add-ld-path": "."
}
},
"sdk-extensions": [
"org.freedesktop.Sdk.Extension.rust-stable",
"org.freedesktop.Sdk.Extension.llvm20"
],
"cleanup-commands": ["mkdir -p ${FLATPAK_DEST}/lib/ffmpeg"],
"command": "iDescriptor",
"finish-args": [
@@ -19,20 +23,8 @@
"--share=network",
"--device=all",
"--socket=system-bus",
"--filesystem=/run/usbmuxd:rw",
"--filesystem=/run/udev:ro",
"--filesystem=/dev:ro",
"--filesystem=/sys/bus:ro",
"--filesystem=/sys/class:ro",
"--filesystem=/sys/devices:ro",
"--filesystem=/run/usbmuxd",
"--system-talk-name=org.freedesktop.Avahi",
"--talk-name=org.libimobiledevice.usbmuxd",
"--system-talk-name=org.libimobiledevice.usbmuxd",
"--system-talk-name=org.freedesktop.UDisks2",
"--system-talk-name=org.freedesktop.login1",
"--system-talk-name=org.freedesktop.NetworkManager",
"--system-talk-name=org.freedesktop.UPower",
"--system-talk-name=org.freedesktop.systemd1",
"--talk-name=org.freedesktop.Platform.ffmpeg-full",
"--env=QT_MEDIA_BACKEND=ffmpeg",
"--env=AVAHI_COMPAT_NOWARN=1"
@@ -90,7 +82,6 @@
{
"name": "libplist",
"buildsystem": "autotools",
"config-opts": ["--without-cython"],
"sources": [
{
"type": "git",
@@ -98,26 +89,6 @@
}
]
},
{
"name": "libimobiledevice-glue",
"buildsystem": "autotools",
"sources": [
{
"type": "git",
"url": "https://github.com/libimobiledevice/libimobiledevice-glue.git"
}
]
},
{
"name": "libtatsu",
"buildsystem": "autotools",
"sources": [
{
"type": "git",
"url": "https://github.com/libimobiledevice/libtatsu.git"
}
]
},
{
"name": "libusb",
"config-opts": ["--disable-static", "--enable-udev"],
@@ -133,26 +104,6 @@
"install -Dm644 COPYING ${FLATPAK_DEST}/share/licenses/libusb/COPYING"
]
},
{
"name": "libusbmuxd",
"buildsystem": "autotools",
"sources": [
{
"type": "git",
"url": "https://github.com/libimobiledevice/libusbmuxd.git"
}
]
},
{
"name": "libimobiledevice",
"buildsystem": "autotools",
"sources": [
{
"type": "git",
"url": "https://github.com/libimobiledevice/libimobiledevice.git"
}
]
},
{
"name": "libdaemon",
"buildsystem": "autotools",
@@ -204,16 +155,6 @@
}
]
},
{
"name": "libirecovery",
"buildsystem": "autotools",
"sources": [
{
"type": "git",
"url": "https://github.com/libimobiledevice/libirecovery.git"
}
]
},
{
"name": "libde265",
"buildsystem": "autotools",
@@ -271,22 +212,36 @@
},
{
"name": "iDescriptor",
"buildsystem": "cmake-ninja",
"buildsystem": "simple",
"build-options": {
"append-path": "/usr/lib/sdk/rust-stable/bin",
"env": {
"CARGO_HOME": "/run/build/iDescriptor/cargo",
"CARGO_NET_OFFLINE": "true",
"RUST_BACKTRACE": "1",
"CUSTOM_LIB_PATH": "/app/lib",
"CUSTOM_INCLUDE_PATH": "/app/include",
"CUSTOM_PKGCONFIG_PATH": "/app/lib/pkgconfig",
"GO_EXECUTABLE": "/app/sdk/golang/bin/go",
"FLATPAK_BUILD": "ON"
},
"build-args": ["--share=network"]
},
"config-opts": [
"-DCUSTOM_LIB_PATH=/app/lib",
"-DCUSTOM_INCLUDE_PATH=/app/include",
"-DCUSTOM_PKGCONFIG_PATH=/app/lib/pkgconfig",
"-DGO_EXECUTABLE=/app/sdk/golang/bin/go",
"-DFLATPAK_BUILD=ON"
"build-commands": [
"cargo --offline fetch --manifest-path lib/idevice-rs/Cargo.toml --verbose",
"cargo build --offline --release --all-features --manifest-path lib/idevice-rs/Cargo.toml",
"cmake -B build -DGO_EXECUTABLE=$GO_EXECUTABLE .",
"cmake --build build --config Release",
"install -Dm0755 build/iDescriptor ${FLATPAK_DEST}/bin/iDescriptor"
],
"sources": [
{
"type": "dir",
"path": "."
}
},
"cargo-sources.idevice-rs.json",
"cargo-sources.idevice-rs.idevice.json",
"cargo-sources.idevice-rs.cpp.plist_ffi.json"
]
}
]