Skip to content

Instantly share code, notes, and snippets.

@trnila
Created October 28, 2025 00:23
Show Gist options
  • Select an option

  • Save trnila/67aa3da5565034db5eef27f0439eb0e6 to your computer and use it in GitHub Desktop.

Select an option

Save trnila/67aa3da5565034db5eef27f0439eb0e6 to your computer and use it in GitHub Desktop.
LTspice linux runner
#!/usr/bin/env bash
set -ex
export WINEPREFIX=~/.wine-ltspice
if [ ! -d "$WINEPREFIX" ]; then
EXE=LTspice64.msi
EXE_PATH="/tmp/$EXE"
[ -f "$EXE_PATH" ] || wget https://ltspice.analog.com/software/"$EXE" -O "$EXE_PATH"
msiexec /i "$EXE_PATH" /qn
fi
wine "$WINEPREFIX/drive_c/Program Files/ADI/LTspice/LTspice.exe" "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment