Repository navigation
feat(ltspice): add LTspice(com.analog.LTspice) - #849
Conversation
add LTspice, SPICE circuit simulator(com.analog.LTspice) Run the official MSI unmodified with Cellar and the shared Wine installation. Pin installer refreshes from the official release metadata and Last-Modified header. Assisted-by: OpenAI Codex
jing2uo
left a comment
There was a problem hiding this comment.
Thanks for the thorough package and validation. The structure follows the foobar2000 Wine/Cellar package closely. Below is what I checked.
Review
| Area | Result | Notes |
|---|---|---|
| Layout vs. foobar2000 template | ✅ | apply_extra.sh, manifest structure, cellar 0.5.1 pin and finish-args match the existing Wine package. |
| MSI extra-data pin | ✅ | Downloaded LTspice64.msi independently: sha256 f22163f1…c357, 144698880 bytes, matching the manifest. |
| Descriptor audit | ✅ | scripts/audit-descriptor.mjs passes locally. |
| Icon | ✅ | 256×256 RGBA PNG. |
cellar.toml method = "run" with an .msi |
✅ | cellar runs .msi sources through msiexec /i <msi>, then appends /qn /norestart (launch.go#L74-L76 @ v0.5.1). |
| Permissions | ✅ | Only xdg-documents in home, Wine dirs read-only, --allow=multiarch declared and justified. |
| x86_64 only | ✅ | Reasoning (Flathub Wine only-arches, no aarch64 cellar CLI) holds. |
| Vendor updater vs. cellar reinstall | See (1). | |
Versioning by Last-Modified |
See (2). | |
| Screenshots in metainfo | 💡 minor | None; the site's app page will look empty (foobar2000 has one). |
source_url in flatpark.yml |
💡 minor | Missing; e.g. https://www.analog.com/ltspice. |
| Per-user MSI install path | 💡 note | See (3). |
.desktop %F without MimeType |
💡 optional | .asc files won't offer LTspice from the desktop; fine to leave as is. |
| CI | ⏳ | No checks have run on this branch yet. |
(1) Vendor updater can make the app fail to launch
I dumped the MSI's tables. It is an Advanced Installer package authored as a standard major upgrade:
Upgrade:OLDPRODUCTScovers 0.0.1 to 26.1.1.2 (both inclusive) and is removed on install.- A newer installed version sets
AI_NEWERPRODUCTFOUND, andAI_DOWNGRADE(custom action type 19) aborts the install with an error.
The package keeps network access on purpose so the vendor updater works, and the updater was not exercised. Here is the failure case:
- The user upgrades in-app to, say, 26.1.2 while FlatPark still pins 26.1.1.
- The next pin refresh changes the MSI (for example a new
Last-Modified), so cellar re-runs the older MSI. msiexec then refuses to downgrade and exits non-zero. - cellar treats a non-zero installer exit as an error (reconcile.go#L142), and
apply before runfails (main.go#L567). The install fingerprint is never recorded, so every launch retries and fails until FlatPark's pin catches up.
sandboxes-and-updaters.md asks to turn an in-app updater off when the app offers a setting for it. Could you either:
- find LTspice's setting for automatic program-update checks and seed it before first launch (declared as
packaging: seeded-config), or - test the "update in-app, then let cellar run the older MSI" path and report the result?
Model library sync (writing only into the app's data) is fine either way.
(2) Timestamp in the version
26.1.1-20261022172601 is what users will see on the site and in the metainfo. It does catch silent replacements behind the rolling URL, and basics.md allows a revision suffix. Akamai NetStorage returned stable Last-Modified/ETag across repeated requests. Not using LTspice.json's "Installation" field was right, since it reads 2026-10-24 while the MSI's Last-Modified is 10-22. Fine to keep. Adding the suffix only when the same program version is re-cut would look nicer, but that is optional.
(3) Per-user MSI
The MSI sets ALLUSERS=2 and MSIINSTALLPERUSER=1. Your test shows Wine installs it under C:\Program Files\ADI\LTspice\. If a later Wine honours per-user installs, the target may move to %LOCALAPPDATA%\Programs\… and break exe in cellar.toml. No action needed now; it's just worth knowing if a future launch fails with a missing exe.
Conclusion
Close to mergeable. Packaging, pins and permissions are correct, and the validation is unusually thorough. Please address (1), either by disabling the vendor's program-update check or by testing that path, before we merge. (2) and the minor items are up to you.
|
Maintainer follow-up on the review above:
Merging this now. Thanks! |
|
About the failing link check: the four This doesn't need a change in this PR. We'll add those two hosts to the link checker's allowlist for transport errors ( |
…the PR touches (#860) com.analog.LTspice (#849) merged from a branch that predated the exec-bit guardrail in #857, so its resolve-update.sh landed 100644 and the catalog-wide audit step failed every PR since (e.g. #852). The audit still runs over every descriptor, but a hard failure on an app the PR does not touch is now a warning; a PR that changes the auditor itself stays strict catalog-wide. Co-authored-by: Claude <[email protected]>
|
Thanks for exhaustive checks, @jing2uo . I'll continue to keep an eye on the vendor updater. |
What
Add LTspice (
com.analog.LTspice), SPICE simulator and waveform viewer, using its official Windows x64 MSI under Wine.Packaging
requiresnames Flathub'sorg.winehq.Wine//stable-26.08; Wine is shared, not bundled.LTspice64.msiis extra-data, SHA-256f22163f15420e43a2d5c66440e038ef031a9f019a181f396b95edcef5eebc357, 144698880 bytes. Cellar is independently pinned extra-data.msiexec /i ... /qn /norestartin the private persistent prefix on first launch and when the MSI changes. No application files are patched and no host commands run.LTspice.json. The official MSI URL is rolling; the package version includes its Last-Modified timestamp so installer/model refreshes also trigger a new pin, even if program version and size stay the same. Initial package version:26.1.1-20261022172601(MSI ProductVersion 26.1.1.2). Between an upstream replacement and the next pin refresh, the old checksum can temporarily prevent new installs.Icon.ADI.exeicon resource. The proprietary application is downloaded directly from Analog Devices, not redistributed by FlatPark.Sandbox
Documents is writable for schematics, custom models and simulation results. X11/IPC and GPU access support Wine's display; network access supports model downloads and the vendor updater. Only the user/system installation folders of
org.winehq.Wineare additionally exposed, read-only.--allow=multiarchis declared inpolicy.dangerous_permissionsfor new-WoW64 Wine's 32-bit system calls. Other circuit folders can be granted with the override documented in the metainfo; its reset command is included.Validation
check-apply-extra.shoffline as root with no capabilities.publish.sh --verify.org.winehq.Wine//stable-26.08. Checked rendering and measuredWM_CLASS=ltspice.exe, matching the desktop entry.V(out): 10 V into equal 1 kΩ resistors measured exactly 5 V at 5 ms.CaptureAnalytics=falsepersisted after restart in the private prefix.Documents/LTspicefolder and the explicit temporary circuit test folder were created. No denied D-Bus name ownership. Tray/media checks do not apply to this circuit simulator.LTspice64_arm.msifor Windows 11 ARM64 (26.0.2), but this package advertises only x86_64: Flathub Wine'sonly-archesexcludes aarch64, the required Wine ref is absent for that architecture, and Cellar 0.5.1 has no aarch64 CLI asset.Flathub and demand
Requested by a user who already runs LTspice successfully with Wine. A Flathub name search returned other circuit tools and no LTspice listing; GitHub issue searches found no LTspice issue in
flathub/flathuborflatpark/flatpark. Upstream approval is not claimed.Prepared with OpenAI Codex.
Thanks.
Fixes #848