- 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
│ ├── preload/ # Electron preload scripts
│ └── shared/ # Shared types and IPC definitions
├── data/ # User data directory (created at runtime)
── UCS.csv # Universal Category System catalog
├── data/
│ └── UCS.csv # Universal Category System catalog
└── repoimages/ # Documentation assets
```
@@ -141,21 +141,11 @@ AudioSort/
npm run dev # Start development server with hot reload
npm run build # Build renderer and main process
npm run lint # Type-check with TypeScript
npm run test # Run test suite
npm run pack # Package without installer
npm run dist # Create distributable
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
### Build Configuration

View File

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

View File

@@ -41,7 +41,7 @@ export class MainApp {
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.scanLibrary();

BIN
test.wav

Binary file not shown.