commit 9d138882dec56d9f823a22dd2284b0f264a6b35a
Author: Wyvest <wyvestbusiness@gmail.com>
Date: Mon Feb 23 17:14:58 2026 -0500
Watch cluster dirs, toggle & custom-bundle support
Enable filesystem watches and add support for directory-based packages, toggleable packages, and custom bundles.
Highlights:
- Enable tauri-plugin-fs "watch" feature and add fs:allow-watch capability.
- Frontend: add useAllClusterDirWatch hook to watch cluster folders and call bindings.core.syncCluster on changes; add useCustomBundle to synthesize a "[Custom]" bundle for installed-but-unbundled packages and surface it in mods/datapacks/resource-packs/shaders routes via ModList/ModCard changes.
- ModCard/ModList: introduce toggle mode (useToggleMode) to treat some bundles as toggleable; implement UI toggle behavior and skip interactivity for directory-based bundles.
- Bindings: expose syncCluster and togglePackage in bindings.gen for IPC usage.
- Backend: extend sync_cluster to detect directories, register directory-based packages as local, and reconcile/unlink DB links for files removed from disk; support removing directories when unlinking packages.
- Backend API: add toggle_package to rename package files (.disabled toggling), update central store path, and return the new enabled state; add Tauri commands for sync_cluster and toggle_package.
Reason: allow resourcepacks/shaders/datapacks stored as directories to be recognized as local packages, provide automatic sync on filesystem changes, and let users enable/disable packages by toggling their filenames.
commit 1b100f7ed2242d21f3fbb6229745cddbd3199db7
Merge: 4ea4216
|
||
|---|---|---|
| .. | ||
| src | ||
| .gitignore | ||
| .prettierignore | ||
| index.html | ||
| package.json | ||
| tsconfig.json | ||
| vite.config.ts | ||