Move tauri imports behind platform abstraction, merge CUDA build into release workflow

- Add openPath and pickDirectory to PlatformFilesystem interface
- Remove direct @tauri-apps/plugin-shell and plugin-dialog imports from app
- Merge build-cuda.yml into release.yml as a parallel job
This commit is contained in:
Jamie Pine
2026-03-13 11:33:32 -07:00
parent b01076b6b3
commit 9044b986f3
6 changed files with 91 additions and 88 deletions
+9 -1
View File
@@ -1,4 +1,4 @@
import type { PlatformFilesystem, FileFilter } from '@/platform/types';
import type { FileFilter, PlatformFilesystem } from '@/platform/types';
export const webFilesystem: PlatformFilesystem = {
async saveFile(filename: string, blob: Blob, _filters?: FileFilter[]) {
@@ -12,4 +12,12 @@ export const webFilesystem: PlatformFilesystem = {
window.URL.revokeObjectURL(url);
document.body.removeChild(a);
},
async openPath(_path: string) {
// No filesystem access in browser
},
async pickDirectory(_title: string) {
return null;
},
};