Updates LM Studio to the latest Linux release and keeps its launcher icon working.
- Checks the version before downloading. It reads the real package version from just the first 2 MiB of the
.deb(an HTTP range request) and compares it to the installeddpkgversion. The full ~650 MB download andsudo dpkg -ionly happen when a newer version actually exists. - Fixes the missing app icon. LM Studio's
.debinstalls its icon into an invalidhicolor/0x0/directory that the desktop ignores, so the app ships with no icon. After installing, the script copies the package's 1024×1024 icon into~/.local/share/icons/hicolor/512x512/apps/— per-user, so it survives future upgrades (the packaging bug is not fixed by upgrading).