XinMatch v3.0.0 — .xinDB single-format consolidation · COD-Inorg bundled default library · internal build red-text badge
Baseline v2.0.0 | full regression 1570 passed / 4 skipped / 1 xfail (pytest tests, 12m14s, EXIT=0)
1. Default library switched to COD-Inorg (*.xinDB), and bundled into the portable package
| Item |
v2.0.0 |
v3.0.0 |
| Default library |
data/cod_inorganics.db (v2 SQLite, 712 MB) |
COD-Inorg-20261020.xinDB (v3 columnar, 113 MB) |
| Portable package usable for search directly |
No (must download the 512 MB library package separately and mount it) |
Yes (<exe>/data/ is bundled) |
| Library source resolution |
Hardcoded |
XINMATCH_XINDB_DIR → <exe>/data → <exe>/_internal/data → ../XinMatch-DataBase/data (source-tree mode) |
- Library registry
core/db/multi_db.py fully rewritten to v3-only: KIND_XINDB + four built-in ids (xindb_cod_inorg default / xindb_cod_full / xindb_pcod_inorg / xindb_tcod_inorg), picking the latest snapshot by <Prefix>-<YYYYMMDD>.xinDB; open_library() / open_search_database() return a read-only XinDBReader.
xinmatch.spec adds _find_bundled_xindb() to pull the default library into data/; tools/build_exe.ps1 moves the library from PyInstaller 6's _internal/data to <exe>/data (user can replace it directly).
2. Old-format runtime code deleted (not deprecated)
- Removed
core/db/polyxrd.py (PolyXRD phases dump conversion layer) and core/db/pdf2_index.py (PDF-2 conversion layer).
ui/dialogs/library_dialog.py 720 → ~300 lines: now only list / mount / unmount / refresh, with the build-thread and index-thread fully removed; the PDF-2 source directory config item is removed.
- CLI
libraries only keeps --add / --remove (--build / --force / --no-build removed).
core/batch.py and the top-level APIs identify_phase / full_analysis moved from raw sqlite3.connect to open_search_database() — otherwise they would fall through to the deleted v2 row-table path.
- Removed 10 v2-specific test files; added
tests/xindb_support.py (write_xindb builds a real .xinDB).
3. Internal evaluation build: status bar red bold "internal evaluation build"
_build_statusbar() uses a widget-level stylesheet: color: #d32f2f; font-weight: bold; padding: 0 6px;, objectName = internalBuildLabel, addPermanentWidget(label, 1) pins it to the far right of the status bar.
- Why a widget instead of global QSS: the status bar is repainted with the theme, and a widget-level rule has higher priority, so the color survives theme switches.
4. Attachments
| Attachment |
Contents |
XinMatch-Setup-3.0.0.exe |
Release installer (with registration mechanism, status bar shows Registered: <org> / Unregistered), bundles the COD-Inorg library |
XinMatch-Internal-3.0.0.zip |
Portable package = internal evaluation build (no install, no registration mechanism, status bar in red "internal evaluation build"), bundles the COD-Inorg library |
XinMatch-Databases-COD-Inorg-3.0.0.zip |
Standalone COD inorganic library package (*.xinDB, for swapping/supplementing the library on an existing install) |
SHA256SUMS.txt |
SHA-256 of the above attachments |
5. Upgrade notes
- Upgrading from v2.0.0: old
.db / .sqlite reference libraries are no longer usable (mounting is explicitly rejected with a notice that the format was removed). Use COD-Inorg-*.xinDB instead (bundled in this release; PCOD / TCOD are distributed via XinMatch-DataBase Releases).
- Other
*.xinDB libraries can still be mounted from any folder: Settings → Reference database… or xinmatch libraries --add <path>.