- Updated package.json to include the UCS.csv file under the 'data' directory instead of the root.

- Modified MainApp.ts to resolve the path for UCS.csv from the 'data' directory.
- Deleted the unused test.wav file to clean up the repository.
This commit is contained in:
2025-11-11 11:01:43 +11:00
parent d0f7b0fe18
commit e9c679dfaf
5 changed files with 12 additions and 22 deletions

View File

@@ -129,8 +129,8 @@ AudioSort/
│ │ └── hooks/ # Custom React hooks │ │ └── hooks/ # Custom React hooks
│ ├── preload/ # Electron preload scripts │ ├── preload/ # Electron preload scripts
│ └── shared/ # Shared types and IPC definitions │ └── shared/ # Shared types and IPC definitions
├── data/ # User data directory (created at runtime) ├── data/
── UCS.csv # Universal Category System catalog │ └── UCS.csv # Universal Category System catalog
└── repoimages/ # Documentation assets └── repoimages/ # Documentation assets
``` ```
@@ -138,22 +138,12 @@ AudioSort/
### Scripts ### Scripts
```bash ```bash
npm run dev # Start development server with hot reload npm run dev # Start development server with hot reload
npm run build # Build renderer and main process npm run build # Build renderer and main process
npm run lint # Type-check with TypeScript npm run lint # Type-check with TypeScript
npm run test # Run test suite npm run pack # Package without installer
npm run pack # Package without installer npm run dist # Create distributable
npm run dist # Create distributable npm run dist:win # Create Windows installer
npm run dist:win # Create Windows installer
```
### Testing
```bash
npm test # Run all tests
npm run test:database # Database service tests
npm run test:library # Library service tests
npm run test:search # Search service tests
npm run test:tag # Tag service tests
``` ```
## Configuration ## Configuration

View File

@@ -48,7 +48,7 @@
"productName": "AudioSort", "productName": "AudioSort",
"files": [ "files": [
"dist/**/*", "dist/**/*",
"UCS.csv" "data/**/*"
], ],
"directories": { "directories": {
"output": "release" "output": "release"
@@ -63,8 +63,8 @@
}, },
"extraResources": [ "extraResources": [
{ {
"from": "UCS.csv", "from": "data/UCS.csv",
"to": "UCS.csv" "to": "data/UCS.csv"
} }
] ]
} }

View File

@@ -41,7 +41,7 @@ export class MainApp {
this.searchService this.searchService
); );
const catalogPath = this.resolveResourcePath('UCS.csv'); const catalogPath = this.resolveResourcePath(path.join('data', 'UCS.csv'));
await this.libraryService.ensureCategoriesLoaded(catalogPath); await this.libraryService.ensureCategoriesLoaded(catalogPath);
await this.libraryService.scanLibrary(); await this.libraryService.scanLibrary();

BIN
test.wav

Binary file not shown.