Skip to content

Instantly share code, notes, and snippets.

View dropafterfree's full-sized avatar

dropafterfree

View GitHub Profile
@dropafterfree
dropafterfree / patch_lmstudio_deb.sh
Created February 25, 2026 22:46
LM Studio deb package fix
#!/usr/bin/env bash
# Extracts LM Studio deb package, fixes paths and rebuilds
# This is slow but results in a clean install package, for probably any version
export LMSDEB=$1
if [[ -z "$LMSDEB" || "$LMSDEB" != *.deb ]]; then
echo "Usage $0 LM-Studio-x.x.x-x-x64.deb"
exit 1
fi
fakeroot bash -c '